From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6F8A2138206 for ; Wed, 17 Jan 2018 11:09:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90666E08E5; Wed, 17 Jan 2018 11:09:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5B9ACE08E5 for ; Wed, 17 Jan 2018 11:09:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D66CE335C36 for ; Wed, 17 Jan 2018 11:09:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6EBCD1A6 for ; Wed, 17 Jan 2018 11:09:40 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1516187376.f9290d2da40ec34d9ed83c5242282e47ce7361f6.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi-snapshot/, www-client/vivaldi-snapshot/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/vivaldi-snapshot/Manifest www-client/vivaldi-snapshot/files/vivaldi-snapshot-1.14.1072.3_p1-desktop.patch www-client/vivaldi-snapshot/files/vivaldi-snapshot-1.14.1072.3_p1-libffmpeg.patch www-client/vivaldi-snapshot/vivaldi-snapshot-1.14.1072.3_p1.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ www-client/vivaldi-snapshot/files/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: f9290d2da40ec34d9ed83c5242282e47ce7361f6 X-VCS-Branch: master Date: Wed, 17 Jan 2018 11:09:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f2d1858a-e39a-473a-be36-78cfd8e421e4 X-Archives-Hash: f325e06ca6f4467d23b71d3b9f60922f commit: f9290d2da40ec34d9ed83c5242282e47ce7361f6 Author: Jeroen Roovers gentoo org> AuthorDate: Wed Jan 17 11:08:25 2018 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Wed Jan 17 11:09:36 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9290d2d www-client/vivaldi-snapshot: Version 1.14.1072.3_p1. Package-Manager: Portage-2.3.19, Repoman-2.3.6 www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-1.14.1072.3_p1-desktop.patch | 7 ++ ...vivaldi-snapshot-1.14.1072.3_p1-libffmpeg.patch | 27 +++++ .../vivaldi-snapshot-1.14.1072.3_p1.ebuild | 120 +++++++++++++++++++++ 4 files changed, 157 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 506f3619265..d26e75725dc 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot-1.14.1047.3_p1-i386.deb 51347870 BLAKE2B 72dfa577d2f39bebe DIST vivaldi-snapshot-1.14.1064.3_p1-amd64.deb 50482824 BLAKE2B 08a25b11a9ba63ff731a27acaaaa83411342e94a249d3ef6b74ff8e69e877b3c6d2ccd2724469beafb81d462c5fc927ba049a42971fa854833676e2086259b62 SHA512 6930048690a6baa081a243558eea7fa70cc583b809b7d36b5f5331a5d17f62cd7f672c3c36100fb865e2fd536ab146480f28bdb75c08c3e8563c7e6b10028bfc DIST vivaldi-snapshot-1.14.1064.3_p1-armhf.deb 46248122 BLAKE2B e3cdaca603c1c6a9ca34fa50b12fc225d8e7fbac5966c2aeb8b36c4224af12c882d84f40a6213ccd966ad16b4eae93eee8dcf53ec8324d5c564ff42b90f5b0ac SHA512 46e4724c727f78d355e32e7d8dc482ec240dff2f42b10a16ea3549d83fa24149093dc4e5f85626b0059b71bdbc83323a1cdbc064e3ed63c4b29f24bbf3661960 DIST vivaldi-snapshot-1.14.1064.3_p1-i386.deb 51362530 BLAKE2B 7ce16ba32329d5428ea4c4ccc84ff9bc7a450ef3765c1c6c8929884fdce41cc1a842b3ce70881c02f4f30e5a49f90df99e40fe6e6256a0aba7aa7803f75d6e1c SHA512 c3ecb7b61a036d9e99fbe5a0bf46a87d06c73cb9be3fc1429c89bf173044c53db9c5a1d367dc38b26aeceb83ad802c70a7ada7e91cefaac80fd083c7731e52e6 +DIST vivaldi-snapshot-1.14.1072.3_p1-amd64.deb 53508988 BLAKE2B 5c9f61f6b29e507c8a2f3368f8d6154dbf1a302075af7af8a8f5ec253c44ecdf7b57d6e6c4d26818ccb41d9ec25986389487506258aaa8e26cfe2cc0077f4412 SHA512 067bb347c2064b1709bb8af2995182f659fb4dbc4199bc942e2005025aac6672ec0af9944f0692a5cfbc96b78ea42b3e268c96a72b189ffea5cc0bebc1038115 +DIST vivaldi-snapshot-1.14.1072.3_p1-armhf.deb 47312872 BLAKE2B 3581fb6a727bb6e26e92b3509d5a96536a2a16ab8d4972f84146daae945f28ac1f80962e0b0023a03053d177c8b56ee7f8ebf162db79d13344802aa3f56eb7ee SHA512 3b61f07cc7258634028f27b1a00aa44b95c3618b8b36803ecdf8e17af9ca0f432456fd758efe1ba8bacffe247e2dfa08b5092776c8f4c9a2aac963553d115293 +DIST vivaldi-snapshot-1.14.1072.3_p1-i386.deb 53069774 BLAKE2B 4f3f60cd1c3019d1c947146e90a9a1325a2c14777cf43cb3394078483d47cc8eb417c3bcd2e37db457f11eede3dd7e131b08923a6a2b79f3bb85a809c513aed2 SHA512 6983060e0db5313dee69297e50b5df256d7856440fa44f1e8074dfb3d28e43bac2f04391d6698bd1334d9d407326ffa7e8b1c550bcd0ef8ee151ff48367df794 diff --git a/www-client/vivaldi-snapshot/files/vivaldi-snapshot-1.14.1072.3_p1-desktop.patch b/www-client/vivaldi-snapshot/files/vivaldi-snapshot-1.14.1072.3_p1-desktop.patch new file mode 100644 index 00000000000..aacf5f5e2eb --- /dev/null +++ b/www-client/vivaldi-snapshot/files/vivaldi-snapshot-1.14.1072.3_p1-desktop.patch @@ -0,0 +1,7 @@ +--- a/usr/share/applications/vivaldi-snapshot.desktop ++++ b/usr/share/applications/vivaldi-snapshot.desktop +@@ -111,4 +111,3 @@ + Type=Application + Categories=Network;WebBrowser; + MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp; +-Actions=new-window;new-private-window; diff --git a/www-client/vivaldi-snapshot/files/vivaldi-snapshot-1.14.1072.3_p1-libffmpeg.patch b/www-client/vivaldi-snapshot/files/vivaldi-snapshot-1.14.1072.3_p1-libffmpeg.patch new file mode 100644 index 00000000000..9d086427fd7 --- /dev/null +++ b/www-client/vivaldi-snapshot/files/vivaldi-snapshot-1.14.1072.3_p1-libffmpeg.patch @@ -0,0 +1,27 @@ +--- a/opt/vivaldi-snapshot/vivaldi-snapshot ++++ b/opt/vivaldi-snapshot/vivaldi-snapshot +@@ -32,14 +32,14 @@ + # Chromium's FFMpeg version N-89284-gba4dfad is the oldest known working version + # chromium/third_party/ffmpeg/chromium/config/Chromium/linux/x64/libavutil/ffversion.h + if [ -r "$1" ]; then +- if [ `grep -aom1 'FFmpeg version N-[0-9]\+-' "$1" | cut -f2 -d-` -ge "89284" ]; then ++# if [ `grep -aom1 'FFmpeg version N-[0-9]\+-' "$1" | cut -f2 -d-` -ge "89284" ]; then + if [[ -n "$LD_PRELOAD" ]]; then + export LD_PRELOAD="$LD_PRELOAD:$1" + else + export LD_PRELOAD="$1" + fi + export VIVALDI_FFMPEG_FOUND=YES +- fi ++# fi + fi + fi + fi +@@ -54,6 +54,7 @@ + # Check for libs in preferred order. + # Where possible, use other files/directories to confirm it's the correct variant. + VIVALDI_FFMPEG_FOUND=NO ++checkffmpeg '/usr/lib64/chromium/libffmpeg.so' + checkffmpeg '/usr/lib/chromium-browser/libffmpeg.so' '/usr/share/doc/chromium-codecs-ffmpeg-extra' + checkffmpeg "/usr/lib/$DEBARCH/oxide-qt/libffmpeg.so" '/usr/share/doc/oxideqt-codecs-extra' + checkffmpeg '/usr/lib64/chromium-ffmpeg-extra/libffmpeg.so' '/usr/share/doc/packages/chromium-ffmpeg-extra' diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-1.14.1072.3_p1.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-1.14.1072.3_p1.ebuild new file mode 100644 index 00000000000..7998894a831 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-1.14.1072.3_p1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +CHROMIUM_LANGS=" + am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi + hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv + sw ta te th tr uk vi zh-CN zh-TW +" +inherit chromium-2 eutils gnome2-utils multilib unpacker toolchain-funcs xdg-utils + +VIVALDI_HOME="opt/${PN}" +DESCRIPTION="A new browser for our friends" +HOMEPAGE="http://vivaldi.com/" +VIVALDI_BASE_URI="https://downloads.vivaldi.com/snapshot/${PN}_${PV/_p/-}_" +SRC_URI=" + amd64? ( ${VIVALDI_BASE_URI}amd64.deb -> ${P}-amd64.deb ) + arm? ( ${VIVALDI_BASE_URI}armhf.deb -> ${P}-armhf.deb ) + x86? ( ${VIVALDI_BASE_URI}i386.deb -> ${P}-i386.deb ) +" + +LICENSE="Vivaldi" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~x86" +RESTRICT="bindist mirror" + +DEPEND=" + virtual/libiconv +" +RDEPEND=" + >=dev-libs/openssl-1.0.1:0 + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + gnome-base/gconf:2 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/speex + net-print/cups + sys-apps/dbus + sys-libs/libcap + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango[X] +" +QA_PREBUILT="*" +S=${WORKDIR} + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + iconv -c -t UTF-8 usr/share/applications/${PN}.desktop > "${T}"/${PN}.desktop || die + mv "${T}"/${PN}.desktop usr/share/applications/${PN}.desktop || die + + mv usr/share/doc/${PN} usr/share/doc/${PF} || die + chmod 0755 usr/share/doc/${PF} || die + + rm \ + _gpgbuilder \ + etc/cron.daily/${PN} \ + ${VIVALDI_HOME}/libwidevinecdm.so \ + || die + rmdir \ + etc/cron.daily/ \ + etc/ \ + || die + + local c d + for d in 16 22 24 32 48 64 128 256; do + mkdir -p usr/share/icons/hicolor/${d}x${d}/apps || die + cp \ + ${VIVALDI_HOME}/product_logo_${d}.png \ + usr/share/icons/hicolor/${d}x${d}/apps/${PN}.png || die + done + + pushd "${VIVALDI_HOME}/locales" > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die + + epatch "${FILESDIR}"/vivaldi-snapshot-1.14.1072.3_p1-desktop.patch + epatch "${FILESDIR}"/vivaldi-snapshot-1.14.1072.3_p1-libffmpeg.patch + + epatch_user +} + +src_install() { + mv * "${D}" || die + dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN} + + fperms 4711 /${VIVALDI_HOME}/vivaldi-sandbox +} +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update +}