summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2013-04-05 16:09:50 +0000
committerJeroen Roovers <jer@gentoo.org>2013-04-05 16:09:50 +0000
commitb30430a62f8323ea2f0df29846f89ec300b86b4f (patch)
tree9d87d2a2e6c12605d18811bfc78ac7da91a9b733 /www-client/opera-next
parentVersion bump on behalf of Christian Affolter. (diff)
downloadhistorical-b30430a62f8323ea2f0df29846f89ec300b86b4f.tar.gz
historical-b30430a62f8323ea2f0df29846f89ec300b86b4f.tar.bz2
historical-b30430a62f8323ea2f0df29846f89ec300b86b4f.zip
Old.
Package-Manager: portage-2.2.0_alpha171/cvs/Linux x86_64 Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'www-client/opera-next')
-rw-r--r--www-client/opera-next/ChangeLog6
-rw-r--r--www-client/opera-next/Manifest16
-rw-r--r--www-client/opera-next/opera-next-12.14_pre1737.ebuild241
-rw-r--r--www-client/opera-next/opera-next-12.15_pre1742.ebuild241
4 files changed, 9 insertions, 495 deletions
diff --git a/www-client/opera-next/ChangeLog b/www-client/opera-next/ChangeLog
index 644f2e910379..210966a97e20 100644
--- a/www-client/opera-next/ChangeLog
+++ b/www-client/opera-next/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for www-client/opera-next
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.176 2013/03/22 19:30:59 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.177 2013/04/05 16:09:49 jer Exp $
+
+ 05 Apr 2013; Jeroen Roovers <jer@gentoo.org> -opera-next-12.14_pre1737.ebuild,
+ -opera-next-12.15_pre1742.ebuild:
+ Old.
*opera-next-12.15_pre1745 (22 Mar 2013)
diff --git a/www-client/opera-next/Manifest b/www-client/opera-next/Manifest
index d968a41e696d..51401d1b279d 100644
--- a/www-client/opera-next/Manifest
+++ b/www-client/opera-next/Manifest
@@ -1,24 +1,16 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-DIST opera-next-12.14-1737.i386.freebsd.tar.xz 13519432 SHA256 709bc515c1a92002db2fe5c308932d47196311632a2bc1d29584187807f798af SHA512 de9b2cb584981dcfe4742f747a2d774f5ddb25e36a16d3f6d618420f3bf55a2b4e226c484aea1895dad092de6da031dbc95b2b8ce199449d111f7bf21254a49e WHIRLPOOL d4d94031cd24b9e368081a79a508eb54adc44ad74adbcc07a8457ebed491dbaa1e7550989dff3800b5380d8357fc660a92d846ae7907104582837f996af4726d
-DIST opera-next-12.14-1737.i386.linux.tar.xz 13554708 SHA256 cba39bf41c676394f3adeaa61f96ddfed28607366651370f7ab230a8ce6e25c8 SHA512 1fe25d3cf16c787c7c59a8de05097a99aced99b999af08e9890ed9d945f420c4174ea1a17c8619c87ddf156f526bf803c12f82a1e1be500a46c0014276cb53ad WHIRLPOOL 1ac1c239ff51daa56810ce24a0093b419a69301aa7b8cd8f75c65254cc4b2b20ef9adc94bf59463a788be48713b9cf4c4c6c6c1db21c0e87952ce1d8e7b26a30
-DIST opera-next-12.14-1737.x86_64.linux.tar.xz 13679612 SHA256 0e0153158a4836b76e3134b94a53e8141527f3ff86b27c682cb3c48307d041e9 SHA512 981c6480cfc4d548ffe81286024039159d82ade75c6cbc03b4fd01b656e1e7dc11c9ed158ff6d2b326ea19eb4584f136577fc2335ba51771f156bba28c6f7893 WHIRLPOOL a1ab4f5bb3c0482404050946a48474c414779d041a60dc3c53d3860a1c2c7a0d76a093fef1a41bd9b267b94aa03e5db307076d7fe6e13a26d6188f1342239d9c
-DIST opera-next-12.15-1742.i386.freebsd.tar.xz 13527956 SHA256 816aa67a6d72c549b9184225d16dd603da8c1aa60fcf8ccc344d0bfe97e973b9 SHA512 64ccece32b4a6eeb37835fc6ff4b70089af8048730ac81906a01f2f0f67620bfab6f5b41e5844990c30cfb60db4746591f0cb84d20e44cfa6b08db5cecf101e5 WHIRLPOOL eca2ecda9dfe078ecf6eeb215ff66f6c7c1ef410bcb9ac245943c8fd9c9407b01d544ecc6eda7ad09563e5d449c2a4c5c55b15e52061600d4d2eb1737fd9514f
-DIST opera-next-12.15-1742.i386.linux.tar.xz 13601084 SHA256 0c64067772477000ced635d4c3c4574d9308ad3d1e6016ca051d8a31fda7078e SHA512 3269a26e0cb43285e02968ef77dee59dbd6ecc5ae18320d58db67585d20035255206457576f721f5441a513c97726da69beacc6da1a6a767d7b24bb928e8fcf2 WHIRLPOOL 10b9c54a8203756ed167c48c524556a15a49454928394507dbbaccc912442f921e270ab58a94bce20fe014a6706fdefb9b411eca7f313fec65be3cd9e4348d15
-DIST opera-next-12.15-1742.x86_64.linux.tar.xz 13687272 SHA256 9a05570fa0c57a7226149f3d3cd538b541eaa649eb2a3aa23e475819b262ba62 SHA512 1f787a2d8835efd4fa54385270fc876568319cf20e7683c1b112c648a32d78c7b283fa8221c89ca085858b70b257a4ba6dddef789aa9fc7259414fbac41f8cb7 WHIRLPOOL 2d1b0d94cad3e3122d8c86a24c24c1dd4a661ed718e0d7e5c48ca52c669579fa11ac3f47dd16ca6ea84231d78c828b2828ec80841302ba5ea38b58bd971dd436
DIST opera-next-12.15-1745.i386.freebsd.tar.xz 13523764 SHA256 ff7046d2d792c783ed87cadc34b286f5c0f2df02c6ece9be7204c5e494c6daa6 SHA512 5ef21ab370033945bd07e1febd4f4a029626499bb45daa8073a30277cbae8acd85af76a84b2714b4e7e298b7cf6170d4f12aff1c76ee6a67a03bdc707c39ec26 WHIRLPOOL 3657dba8ebeee9ccfbc866feaeb18894f3bb82ab626f1bbdd99e08506ad8bdeb9a776e77060513cf7e660e0a8c8975ed5aed96278607ede3b7f592bb0cae2c48
DIST opera-next-12.15-1745.i386.linux.tar.xz 13558700 SHA256 dbd7b8ac526134d997498d52731e3378746831b48ded1c14bbf3b6d4686d6e8d SHA512 fd9fae0010979cbcc01b19028e5117d9364bc8dbd1ff2f9a00e137bcf9ebef99c022f066549f7f14b670669c3dd523bdf664f5167499883d7bc9659799e32e3b WHIRLPOOL c3c3e30fb34f5b16ceb6972cae451534111fe565b36c3723f2d8a7565f9b0c1dd7b7c6e3a89759bbbc00169bd41e22135ec51f62752f0af8723899715286a0d1
DIST opera-next-12.15-1745.x86_64.linux.tar.xz 13686644 SHA256 711da1fc51e255fbb15bfd88e317e5e3a942a8f2346bcdbd157361966a4a3a13 SHA512 759260539b677cb15a51aa4cb2557f531933b1a79abfa7f5c533b7f96c69816cde9e9a407ef5faa23e429986db79a1fd1b0a54fbedd2ce9e6c6d3dc3b2d3fc17 WHIRLPOOL 3ecdacc4207bd638a9f63851dcee103a5fb81d0585a9859c5eafeaf1edbc4ef587f75dd741aa7022079b9e093c9026ca411df9b5cd7596c30af63f2adcd293e1
-EBUILD opera-next-12.14_pre1737.ebuild 6257 SHA256 b8d2bda58e6eb9e732da36930c2d6a5243d104c1371aa380092b902aa890b76c SHA512 3cc2fa57744f0384e40cc955abc78d8fb1fb324b726eedccabd4a417428b9eb2522cccd0c6e76b4b33936bd509a8ae4ac062289ad998193fe8aec48416615972 WHIRLPOOL c9db7d163b99623a38f48685cd0e1683f9882f3beba39b55764f875a71e7269ba1d2111a18386bf3de5b8c5d19899f9087a272a142c0548274f65c09b971b3db
-EBUILD opera-next-12.15_pre1742.ebuild 6247 SHA256 4cea037bc6be0343a48b3977ec211071abb0f31305c3614babb29766bf3cc20c SHA512 00d42ff16826ab0c8a7dfd7badfb8256f4454cfb0516fd6400cf741450c39a018e9c29485bf7977aa2fc49b85feeb8308e9a1292f96061ee4068131f75888200 WHIRLPOOL 227e3a4fc1ab9719ebd67709d70994995a5eb0dd6e0bac247f763efb5a80ac51e228f741409720acd8ec26178dfa2a1cae87f60edf1da05487736623c69df63f
EBUILD opera-next-12.15_pre1745.ebuild 6249 SHA256 5a5737ccfdf65a3add4f6e0cbe9517f405bb65e3e1378f46e050b9c538b32ef1 SHA512 5183cec6c1eccb69f9a1ca4849895d9dabda2ab661de3e6841bdd1d71b0b670a76c06b4b73b3ef60e2ab495d8eaf164ef6334722ed984e5fe3a527d388ee738a WHIRLPOOL 0f9a5bbae627014e7a6c7987d277441b71ffd8d985671bcf763b59a79848ed4407e8e6baf5c8457077da984d55414d08db76dcf3597844d3a25996f1ae3e9cb0
-MISC ChangeLog 35365 SHA256 6b810662c57a4b2d6ac0a0322827351ee1ff695d3cd0eea5a544300cb9fe0600 SHA512 1c70e7402c6a93692f1e5c7c411a0e9029b313aa0c9262315648089b702147199b0e4f02d293ea09f6e19dfe9883fe182c2d8730e50092fd1a49e71da48c56d0 WHIRLPOOL 9717784b62ab98f5f4a75e1c4a8c24f8e091196a09f2c409689cff1621277665e9a020836100c3d264b74ec11e0be0831683ded570133cab8f96e412b8061efb
+MISC ChangeLog 35490 SHA256 ad21293b5ab9c5bfa4916e51ec149ab9232b566284fc97a6395130b2b7a6e4ef SHA512 d84224d079a18a7da7b6a6af105cc0a32fdc3b159675c352a867f698c546e1fc1308de57ca36534c2403da6822fc34327545a34034a0dae01ca6805855d08dc4 WHIRLPOOL c177cf351e9c7ad0e7736d61a1ba01aa4d9ea21795a9d000d25626b82808584a3d119fe74c4efc2bbeea36bac9b234afcec1478ccf65afeec79aa8e3fe1247ed
MISC metadata.xml 1523 SHA256 425b559a6232d98e76a1dd960c7518aa27509021792868ffe3bd6928ec18d68b SHA512 b2d0a81b199eab70512105df691525d969865950e16f0f3646c1ef5307177391d34d157b02436fe6d156431b6727e4bb07cb7210e03a284abb531d22c8f723d7 WHIRLPOOL 7bbb0acf3ea48057939f6e652c2112d2a294030109bda2b0bab114a8922ecc67a5b9f807530ff0a2854225ad09dd98e90e3e8b510109b403cb51c1bf405f6d3e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlFMsXUACgkQVWmRsqeSphO+gACeLcpvlVIKseBmrk9QASappIBT
-2BoAn14bjn7VZi+cac0lH+guodm83oSU
-=LpAF
+iEYEAREIAAYFAlFe904ACgkQVWmRsqeSphNwrQCdFbzRg+673ly2AB9i8p+nCyEY
+eE0AnRMomjYHdaLnlkutylcVWFcY4rL1
+=jDPb
-----END PGP SIGNATURE-----
diff --git a/www-client/opera-next/opera-next-12.14_pre1737.ebuild b/www-client/opera-next/opera-next-12.14_pre1737.ebuild
deleted file mode 100644
index 4cb2d1c02b31..000000000000
--- a/www-client/opera-next/opera-next-12.14_pre1737.ebuild
+++ /dev/null
@@ -1,241 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/opera-next-12.14_pre1737.ebuild,v 1.4 2013/03/02 23:40:43 hwoarang Exp $
-
-EAPI=4
-inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator
-
-DESCRIPTION="A fast and secure web browser and Internet suite"
-HOMEPAGE="http://www.opera.com/"
-
-SLOT="0"
-LICENSE="OPERA-12 LGPL-2 LGPL-3"
-KEYWORDS="~amd64 ~x86 ~x86-fbsd"
-IUSE="elibc_FreeBSD gtk kde +gstreamer multilib"
-
-O_V="$(get_version_component_range 1-2)" # Version, i.e. 11.00
-O_B="$(get_version_component_range 3)" # Build number, i.e. 1156
-
-# == Variables that often change ==
-# All other variables should be accounted for by _pre/_p
-
-O_K="BlackOops" # The key to the snapshot URL
-
-O_LINGUAS="
- af ar az be bg bn cs da de el en-GB es-ES es-LA et fa fi fr fr-CA fy gd he
- hi hr hu id it ja ka kk ko lt lv me mk ms nb nl nn pa pl pt pt-BR ro ru sk
- sr sv sw ta te th tl tr uk ur uz vi zh-CN zh-TW zu
-" # Supported linguas
-
-# == End of variables that often change ==
-
-if [[ "pre${O_B/pre/}" = "${O_B}" ]]; then # snapshot: _pre
- HOMEPAGE="http://my.opera.com/desktopteam/blog/"
-
- O_D="${O_K}_${O_V}-${O_B/pre}" # directory string
- O_P="${PN}-${O_V}-${O_B/pre}" # package string
- O_U="http://snapshot.opera.com/unix/" # base URI
-
- SRC_URI="
- amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz )
- x86? ( ${O_U}${O_D}/${O_P}.i386.linux.tar.xz )
- x86-fbsd? ( ${O_U}${O_D}/${O_P}.i386.freebsd.tar.xz )
- "
-else # release: _p
- O_D="${O_V/./}" # directory string
- O_P="${PN}-${O_V}-${O_B/p}" # package string
- O_U="mirror://opera/" # base URI
-
- SRC_URI="
- amd64? ( ${O_U}linux/${O_D}/${O_P}.x86_64.linux.tar.xz )
- x86? ( ${O_U}linux/${O_D}/${O_P}.i386.linux.tar.xz )
- x86-fbsd? ( ${O_U}unix/${O_D}/${O_P}.i386.freebsd.tar.xz )
- "
-fi
-
-for O_LINGUA in ${O_LINGUAS}; do
- IUSE+=" linguas_${O_LINGUA/-/_}"
-done
-
-DEPEND="
- >=sys-apps/sed-4
- app-arch/xz-utils
-"
-GTKRDEPEND="
- dev-libs/atk
- dev-libs/glib:2
- x11-libs/cairo
- x11-libs/gdk-pixbuf
- gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
- x11-libs/pango
- x11-libs/pixman
-"
-KDERDEPEND="
- kde-base/kdelibs
- dev-qt/qtcore:4
- dev-qt/qtgui:4
-"
-GSTRDEPEND="
- dev-libs/glib:2
- dev-libs/libxml2
- media-libs/gst-plugins-base:0.10
- media-libs/gstreamer:0.10
- media-plugins/gst-plugins-meta:0.10
-"
-RDEPEND="
- media-libs/fontconfig
- media-libs/freetype
- sys-apps/util-linux
- sys-libs/zlib
- virtual/opengl
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXft
- x11-libs/libXrender
- x11-libs/libXt
- gtk? ( ${GTKRDEPEND} )
- kde? ( ${KDERDEPEND} )
- gstreamer? ( ${GSTRDEPEND} )
-"
-
-OPREFIX="/usr/$(get_libdir)"
-QA_PREBUILT="*"
-
-src_unpack() {
- unpack ${A}
- mv -v ${PN}* "${S}" || die
-}
-
-src_prepare() {
- local LNGDIR="share/${PN}/locale"
-
- # Count linguas
- count() { echo ${#}; }
- local lingua_count=$(count ${O_LINGUAS} en)
- local locale_count=$(count ${LNGDIR}/*)
- [[ ${lingua_count} = ${locale_count} ]] \
- || die "Number of LINGUAS does not match number of locales"
- unset count
-
- # Remove unwanted linguas
- for LINGUA in ${O_LINGUAS}; do
- if ! use linguas_${LINGUA/-/_}; then
- LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
- rm -r "${LINGUA}" || die "The list of linguas needs to be fixed"
- fi
- done
-
- # Remove doc directory but keep the LICENSE under another name (bug #315473)
- mv share/doc/${PN}/LICENSE share/${PN}/defaults/license.txt
- rm -rf share/doc
- for locale in share/${PN}/locale/*; do
- rm -f "${locale}/license.txt"
- ln -sn /usr/share/${PN}/defaults/license.txt "${locale}/license.txt" \
- || die
- done
-
- # Remove package directory
- rm -rf share/${PN}/package
-
- # Optional libraries
- if ! use gtk; then
- rm lib/${PN}/liboperagtk2.so || die
- rm lib/${PN}/liboperagtk3.so || die
- fi
- if ! use kde; then
- rm lib/${PN}/liboperakde4.so || die
- fi
- if ! use gstreamer; then
- rm -r lib/${PN}/gstreamer || die
- fi
- if use amd64 && ! use multilib; then
- rm lib/${PN}/pluginwrapper/operapluginwrapper-ia32-linux || die
- fi
-
- # Unzip the man pages before sedding
- gunzip share/man/man1/* || die
-
- local OPERA_SUFFIX= OPERA__SUFFIX= OPERAU_SUFFIX=
- if [[ ${PN} = opera-next ]]; then
- OPERA_SUFFIX="-next"
- OPERA__SUFFIX=" Next"
- OPERA_USUFFIX="-NEXT"
- fi
-
- # Replace PREFIX, SUFFIX and PN in various files
- sed -i \
- -e "s:@@{PREFIX}:/usr:g" \
- -e "s:@@{SUFFIX}:${OPERA_SUFFIX}:g" \
- -e "s:@@{_SUFFIX}:${OPERA__SUFFIX}:g" \
- -e "s:@@{USUFFIX}:${OPERA_USUFFIX}:g" \
- share/man/man1/* \
- share/mime/packages/* \
- share/applications/${PN}-*.desktop \
- || die
-
- # Create /usr/bin/opera wrapper
- echo '#!/bin/sh' > ${PN}
- echo 'export OPERA_DIR="/usr/share/'"${PN}"'"' >> ${PN}
- echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \
- >> ${PN}
- echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN}
-
- # Change libz.so.3 to libz.so.1 for gentoo/freebsd
- if use elibc_FreeBSD; then
- scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \
- while read i; do
- if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
- then
- export SANITY_CHECK_LIBZ_FAILED=1
- break
- fi
- sed -i \
- "$i" \
- -e 's/libz\.so\.3/libz.so.1/g'
- done
- [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die
- fi
-}
-
-src_install() {
- # We install into usr instead of opt as Opera does not support the latter
- dodir /usr
- rm lib/${PN}/opera_autoupdatechecker || die
- mv lib/ "${D}/${OPREFIX}" || die
- mv share/ "${D}/usr/" || die
-
- # Install startup scripts
- dobin ${PN}
-
- # Stop revdep-rebuild from checking opera binaries
- dodir /etc/revdep-rebuild
- echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" \
- > "${D}"/etc/revdep-rebuild/90${PN}
-
- # Set PaX markings for hardened/PaX (bug #344267)
- pax-mark m $( list-paxables $( find "${D}"/${OPREFIX}/${PN}/ ) )
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- if use elibc_FreeBSD; then
- elog
- elog "To improve shared memory usage please set:"
- elog "$ sysctl kern.ipc.shm_allow_removed=1"
- fi
-
- # Update desktop file database and gtk icon cache (bug #334993)
- gnome2_icon_cache_update
- fdo-mime_desktop_database_update
-}
-
-pkg_postrm() {
- # Update desktop file database and gtk icon cache (bug #334993)
- gnome2_icon_cache_update
- fdo-mime_desktop_database_update
-}
diff --git a/www-client/opera-next/opera-next-12.15_pre1742.ebuild b/www-client/opera-next/opera-next-12.15_pre1742.ebuild
deleted file mode 100644
index 153de5ddae42..000000000000
--- a/www-client/opera-next/opera-next-12.15_pre1742.ebuild
+++ /dev/null
@@ -1,241 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/opera-next-12.15_pre1742.ebuild,v 1.1 2013/03/21 16:40:43 jer Exp $
-
-EAPI=4
-inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator
-
-DESCRIPTION="A fast and secure web browser and Internet suite"
-HOMEPAGE="http://www.opera.com/"
-
-SLOT="0"
-LICENSE="OPERA-12 LGPL-2 LGPL-3"
-KEYWORDS="~amd64 ~x86 ~x86-fbsd"
-IUSE="elibc_FreeBSD gtk kde +gstreamer multilib"
-
-O_V="$(get_version_component_range 1-2)" # Version, i.e. 11.00
-O_B="$(get_version_component_range 3)" # Build number, i.e. 1156
-
-# == Variables that often change ==
-# All other variables should be accounted for by _pre/_p
-
-O_K="sepr" # The key to the snapshot URL
-
-O_LINGUAS="
- af ar az be bg bn cs da de el en-GB es-ES es-LA et fa fi fr fr-CA fy gd he
- hi hr hu id it ja ka kk ko lt lv me mk ms nb nl nn pa pl pt pt-BR ro ru sk
- sr sv sw ta te th tl tr uk ur uz vi zh-CN zh-TW zu
-" # Supported linguas
-
-# == End of variables that often change ==
-
-if [[ "pre${O_B/pre/}" = "${O_B}" ]]; then # snapshot: _pre
- HOMEPAGE="http://my.opera.com/desktopteam/blog/"
-
- O_D="${O_K}_${O_V}-${O_B/pre}" # directory string
- O_P="${PN}-${O_V}-${O_B/pre}" # package string
- O_U="http://snapshot.opera.com/unix/" # base URI
-
- SRC_URI="
- amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz )
- x86? ( ${O_U}${O_D}/${O_P}.i386.linux.tar.xz )
- x86-fbsd? ( ${O_U}${O_D}/${O_P}.i386.freebsd.tar.xz )
- "
-else # release: _p
- O_D="${O_V/./}" # directory string
- O_P="${PN}-${O_V}-${O_B/p}" # package string
- O_U="mirror://opera/" # base URI
-
- SRC_URI="
- amd64? ( ${O_U}linux/${O_D}/${O_P}.x86_64.linux.tar.xz )
- x86? ( ${O_U}linux/${O_D}/${O_P}.i386.linux.tar.xz )
- x86-fbsd? ( ${O_U}unix/${O_D}/${O_P}.i386.freebsd.tar.xz )
- "
-fi
-
-for O_LINGUA in ${O_LINGUAS}; do
- IUSE+=" linguas_${O_LINGUA/-/_}"
-done
-
-DEPEND="
- >=sys-apps/sed-4
- app-arch/xz-utils
-"
-GTKRDEPEND="
- dev-libs/atk
- dev-libs/glib:2
- x11-libs/cairo
- x11-libs/gdk-pixbuf
- gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
- x11-libs/pango
- x11-libs/pixman
-"
-KDERDEPEND="
- kde-base/kdelibs
- dev-qt/qtcore:4
- dev-qt/qtgui:4
-"
-GSTRDEPEND="
- dev-libs/glib:2
- dev-libs/libxml2
- media-libs/gst-plugins-base:0.10
- media-libs/gstreamer:0.10
- media-plugins/gst-plugins-meta:0.10
-"
-RDEPEND="
- media-libs/fontconfig
- media-libs/freetype
- sys-apps/util-linux
- sys-libs/zlib
- virtual/opengl
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXft
- x11-libs/libXrender
- x11-libs/libXt
- gtk? ( ${GTKRDEPEND} )
- kde? ( ${KDERDEPEND} )
- gstreamer? ( ${GSTRDEPEND} )
-"
-
-OPREFIX="/usr/$(get_libdir)"
-QA_PREBUILT="*"
-
-src_unpack() {
- unpack ${A}
- mv -v ${PN}* "${S}" || die
-}
-
-src_prepare() {
- local LNGDIR="share/${PN}/locale"
-
- # Count linguas
- count() { echo ${#}; }
- local lingua_count=$(count ${O_LINGUAS} en)
- local locale_count=$(count ${LNGDIR}/*)
- [[ ${lingua_count} = ${locale_count} ]] \
- || die "Number of LINGUAS does not match number of locales"
- unset count
-
- # Remove unwanted linguas
- for LINGUA in ${O_LINGUAS}; do
- if ! use linguas_${LINGUA/-/_}; then
- LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
- rm -r "${LINGUA}" || die "The list of linguas needs to be fixed"
- fi
- done
-
- # Remove doc directory but keep the LICENSE under another name (bug #315473)
- mv share/doc/${PN}/LICENSE share/${PN}/defaults/license.txt
- rm -rf share/doc
- for locale in share/${PN}/locale/*; do
- rm -f "${locale}/license.txt"
- ln -sn /usr/share/${PN}/defaults/license.txt "${locale}/license.txt" \
- || die
- done
-
- # Remove package directory
- rm -rf share/${PN}/package
-
- # Optional libraries
- if ! use gtk; then
- rm lib/${PN}/liboperagtk2.so || die
- rm lib/${PN}/liboperagtk3.so || die
- fi
- if ! use kde; then
- rm lib/${PN}/liboperakde4.so || die
- fi
- if ! use gstreamer; then
- rm -r lib/${PN}/gstreamer || die
- fi
- if use amd64 && ! use multilib; then
- rm lib/${PN}/pluginwrapper/operapluginwrapper-ia32-linux || die
- fi
-
- # Unzip the man pages before sedding
- gunzip share/man/man1/* || die
-
- local OPERA_SUFFIX= OPERA__SUFFIX= OPERAU_SUFFIX=
- if [[ ${PN} = opera-next ]]; then
- OPERA_SUFFIX="-next"
- OPERA__SUFFIX=" Next"
- OPERA_USUFFIX="-NEXT"
- fi
-
- # Replace PREFIX, SUFFIX and PN in various files
- sed -i \
- -e "s:@@{PREFIX}:/usr:g" \
- -e "s:@@{SUFFIX}:${OPERA_SUFFIX}:g" \
- -e "s:@@{_SUFFIX}:${OPERA__SUFFIX}:g" \
- -e "s:@@{USUFFIX}:${OPERA_USUFFIX}:g" \
- share/man/man1/* \
- share/mime/packages/* \
- share/applications/${PN}-*.desktop \
- || die
-
- # Create /usr/bin/opera wrapper
- echo '#!/bin/sh' > ${PN}
- echo 'export OPERA_DIR="/usr/share/'"${PN}"'"' >> ${PN}
- echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \
- >> ${PN}
- echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN}
-
- # Change libz.so.3 to libz.so.1 for gentoo/freebsd
- if use elibc_FreeBSD; then
- scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \
- while read i; do
- if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
- then
- export SANITY_CHECK_LIBZ_FAILED=1
- break
- fi
- sed -i \
- "$i" \
- -e 's/libz\.so\.3/libz.so.1/g'
- done
- [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die
- fi
-}
-
-src_install() {
- # We install into usr instead of opt as Opera does not support the latter
- dodir /usr
- rm lib/${PN}/opera_autoupdatechecker || die
- mv lib/ "${D}/${OPREFIX}" || die
- mv share/ "${D}/usr/" || die
-
- # Install startup scripts
- dobin ${PN}
-
- # Stop revdep-rebuild from checking opera binaries
- dodir /etc/revdep-rebuild
- echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" \
- > "${D}"/etc/revdep-rebuild/90${PN}
-
- # Set PaX markings for hardened/PaX (bug #344267)
- pax-mark m $( list-paxables $( find "${D}"/${OPREFIX}/${PN}/ ) )
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- if use elibc_FreeBSD; then
- elog
- elog "To improve shared memory usage please set:"
- elog "$ sysctl kern.ipc.shm_allow_removed=1"
- fi
-
- # Update desktop file database and gtk icon cache (bug #334993)
- gnome2_icon_cache_update
- fdo-mime_desktop_database_update
-}
-
-pkg_postrm() {
- # Update desktop file database and gtk icon cache (bug #334993)
- gnome2_icon_cache_update
- fdo-mime_desktop_database_update
-}