forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
- Loading branch information
Jeroen Roovers
committed
Jun 23, 2017
1 parent
16df530
commit ab12634
Showing
2 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST vivaldi-1.10.867.38_p1-amd64.deb 49267896 SHA256 71a7865e83cc6fbb8373947a300c3558ade4f133555d60eb2c2b0fbefff371c0 SHA512 191b505f7655ef597c05f34caaed61f2877a8c25eb9c6b7d8cad7fc7abcb3db40f6a358cfe04cfb1e5e30e57f72e52501a10512a4d8d87150924a4d220e8cbbd WHIRLPOOL 3b2ce4e9a6660a581fca2c9a00f456a2955f858240c6e587cce2fc5e16188ac925b35fd4dfafff63fb24f1529cfd81e32b25c72b84abfdef32febe2d7eb52c3f | ||
DIST vivaldi-1.10.867.42_p1-amd64.deb 49254574 SHA256 5a4333775ff0ade1e348dfcc8fdd2f31ec8af8ffc477baf317702bbfdf0717f4 SHA512 1f0042b0a89550a34bbe29848f635364808a072bb879ba4637c18beee4c1612c24798b97417f68c797215ca7df7901a4c888cbdf9bd2348e33974a4708e40469 WHIRLPOOL b88dd642ed2ac0ff1b29db6362cf844d1edc3ba210987b9850c6ab9e777d1807b7d04c904bb42b7f7aab05c253825a28e22812634b7b66ff0c9c9531e43b8ffa | ||
DIST vivaldi-1.9.818.50_p1-amd64.deb 47502088 SHA256 701ceb20f6f802c4a7162c08a528b679e6ae0215c49b5e78ca12191c3d2fe3c6 SHA512 e21d0c6592aa7d9a1fe378cb9db37b503a1b269604a286d0968ebbe8ab17dec00443aa8fe265d13138f58cf2ac1efbc79238cea32277b07d7b11408017e93114 WHIRLPOOL dc289755ad9a1c2efe41a3a6eac8925a893a02c126d63edec0c2cf830aaca969b44466bdc533d0f9fa8fbe00354796536c2a9dbb01f9bf4a010cf8e921cadcaf | ||
DIST vivaldi-1.9.818.50_p1-i386.deb 47957224 SHA256 4ca0306a9336124a4ab23049be8e16f2aa5c9f48ce614b4cb551477843e952ce SHA512 858cde8ecaecd17bc732457c828e5b02e7e85d659685ef1b263c190c5430989701fad9dacb3c8f5eef8c99e51254a689d486afda8568e8c15212878b0ba9f73c WHIRLPOOL 5e569d027a4fdfe2110d95d9fd1b7342fde9cb3b506f352f9194e783fbf4f9ab03921944636dec879145bc1fc0e01516ba6a22440e0ea7d2832dbc51c565206c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# Copyright 1999-2017 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 multilib unpacker toolchain-funcs | ||
|
||
#VIVALDI_BRANCH="snapshot" | ||
|
||
VIVALDI_PN="${PN}-${VIVALDI_BRANCH:-stable}" | ||
VIVALDI_BIN="${PN}${VIVALDI_BRANCH/snapshot/-snapshot}" | ||
VIVALDI_HOME="opt/${VIVALDI_BIN}" | ||
DESCRIPTION="A new browser for our friends" | ||
HOMEPAGE="http://vivaldi.com/" | ||
VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_BRANCH:-stable}/${VIVALDI_PN}_${PV/_p/-}_" | ||
SRC_URI=" | ||
amd64? ( ${VIVALDI_BASE_URI}amd64.deb -> ${P}-amd64.deb ) | ||
" | ||
|
||
LICENSE="Vivaldi" | ||
SLOT="0" | ||
KEYWORDS="-* ~amd64" | ||
|
||
RESTRICT="bindist mirror" | ||
|
||
S=${WORKDIR} | ||
|
||
DEPEND=" | ||
virtual/libiconv | ||
" | ||
RDEPEND=" | ||
dev-libs/expat | ||
dev-libs/glib:2 | ||
dev-libs/nspr | ||
dev-libs/nss | ||
>=dev-libs/openssl-1.0.1:0 | ||
gnome-base/gconf:2 | ||
media-libs/alsa-lib | ||
media-libs/fontconfig | ||
media-libs/freetype | ||
net-misc/curl | ||
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/${VIVALDI_PN}.desktop > "${T}"/${VIVALDI_PN}.desktop || die | ||
mv "${T}"/${VIVALDI_PN}.desktop usr/share/applications/${VIVALDI_PN}.desktop || die | ||
|
||
sed -i \ | ||
-e "s|${VIVALDI_BIN}|${PN}|g" \ | ||
usr/share/applications/${VIVALDI_PN}.desktop \ | ||
usr/share/xfce4/helpers/${VIVALDI_BIN}.desktop || die | ||
|
||
mv usr/share/doc/${VIVALDI_PN} usr/share/doc/${PF} || die | ||
chmod 0755 usr/share/doc/${PF} || die | ||
|
||
rm \ | ||
_gpgbuilder \ | ||
etc/cron.daily/${VIVALDI_BIN} \ | ||
${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/vivaldi.png || die | ||
done | ||
|
||
pushd "${VIVALDI_HOME}/locales" > /dev/null || die | ||
chromium_remove_language_paks | ||
popd > /dev/null || die | ||
|
||
} | ||
|
||
src_install() { | ||
mv * "${D}" || die | ||
dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN} | ||
|
||
fperms 4711 /${VIVALDI_HOME}/${PN}-sandbox | ||
} |