summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2012-11-26 18:07:35 +0000
committerJeroen Roovers <jer@gentoo.org>2012-11-26 18:07:35 +0000
commit8004e6a87d3aed0a1de1f5daa48ded28d6c54b55 (patch)
treed631419ab83fba0385425e675afdf6ea9989f434 /www-client/opera
parentdrop SYMLINK_LIB patch since upstream has added a similar change to mainline (diff)
downloadhistorical-8004e6a87d3aed0a1de1f5daa48ded28d6c54b55.tar.gz
historical-8004e6a87d3aed0a1de1f5daa48ded28d6c54b55.tar.bz2
historical-8004e6a87d3aed0a1de1f5daa48ded28d6c54b55.zip
http://my.opera.com/desktopteam/blog/2012/11/26/2x12
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64 Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'www-client/opera')
-rw-r--r--www-client/opera/ChangeLog7
-rw-r--r--www-client/opera/Manifest12
-rw-r--r--www-client/opera/opera-12.12.1662.ebuild219
3 files changed, 233 insertions, 5 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog
index 81a1a137f209..42e13eedc152 100644
--- a/www-client/opera/ChangeLog
+++ b/www-client/opera/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-client/opera
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.774 2012/11/21 15:22:37 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.775 2012/11/26 18:06:51 jer Exp $
+
+*opera-12.12.1662 (26 Nov 2012)
+
+ 26 Nov 2012; Jeroen Roovers <jer@gentoo.org> +opera-12.12.1662.ebuild:
+ http://my.opera.com/desktopteam/blog/2012/11/26/2x12
21 Nov 2012; Jeroen Roovers <jer@gentoo.org> -opera-12.10.1652.ebuild:
Old.
diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest
index febad8abd6d8..3d7f8271c40d 100644
--- a/www-client/opera/Manifest
+++ b/www-client/opera/Manifest
@@ -4,14 +4,18 @@ Hash: SHA256
DIST opera-12.11-1661.i386.freebsd.tar.xz 13472248 SHA256 de0675401defd2caa3b40525fdf4a3cd793308017ba0545ff4a6b3fc24b5938b SHA512 48c74f9747c1b653cbdc608c852401b4d335063e7e986d2fcaca722506b9f9a9b8666e51b2a4ddab7905ee3e138c947dd45d05e6dff47534f0b44c2a58d35892 WHIRLPOOL f73ae96392525f6878059c8c2d3f6086e97e138a0eb074d87734d2fe587821a5064db0ef0ccde17e9573e6c473d4edeb9d24bb11aa45a6b6b97b9ea33bf82c34
DIST opera-12.11-1661.i386.linux.tar.xz 13552952 SHA256 735299d288c4cf55bfde50e02a685f8adb365494ec2566ca776741402d9ba22b SHA512 e051b37fccd1015ed82eff85d80c04a314ba51ec79f01d2503227f192489a31e292a1e81bb80c05b49035907b59be84cb2f0e99209c5c2ab50dcfc7373637f2b WHIRLPOOL 7b6482d7198d2f1fc5eab5770a3b481c4005fe6afb5800d840f21bbc174a23ff8184cd2b6172572171fbd692130c7f2d15b62d28aca184118485fe44b100e464
DIST opera-12.11-1661.x86_64.linux.tar.xz 13634672 SHA256 773584d3fad92516f1d22a83607cf08e7d7f63a3d999378fa8356bd52669cade SHA512 df5d1194a598428c9ec348dc815081244115f469d8c684bec624a412d18695542447298f10692dd42a5f162040c965d89f2462705d7155d0dd22f6a8a35b5111 WHIRLPOOL b4d10ece15045a2117b9439be2c7dc8b8e2c638aef3516d99f901da78060c76453ff62e4754782a5ff35ddc7ad0650ce66999730625e9a79e2429ffa61770461
+DIST opera-12.12-1662.i386.freebsd.tar.xz 13507092 SHA256 817b0c022f9df3975076a252580ba7e15b993879b185d2bc4ea615411435509c SHA512 554ae2029e3d88a104c1008200ce131a7539b9aced226be0bad77eee07b3c9aed5408c6df4179b3837ce6975729f379823d02830aade782e2d6edf4f672d985e WHIRLPOOL 370081569cca00347e9ce5dd9e8b82a64c3421fb3ea60d34c446a846f7a4442bb92702f2c2c3ee82827ae00e1824b376fbd443793e00ff499a03c5b5635c7a58
+DIST opera-12.12-1662.i386.linux.tar.xz 13553860 SHA256 1828f7ebd2448d462cf38713ba5602210efc7104d2533e822f40c8817a817c1a SHA512 872269ba50af0a2d95a6b67200d6788d2ce07a2b882afd944f9bf0b99b0f15250052c2f3cdab87097017fd713223dcc85a2af1d9957b52dfdaa407bfa618275f WHIRLPOOL 798749db07b418099f777902990a1bc9a0d43fa9e528209b68f9d865bcc3136a67a16e584162d787b275198a9e46573c8930fa4860ed736fc1e05f2082086664
+DIST opera-12.12-1662.x86_64.linux.tar.xz 13633220 SHA256 73bbb4a1c06adae416fd5e56f67c23da98287509099d3f652c47e6c9f8753585 SHA512 256671eddb22fffba73061cdd4488272f70a33647e28760efc5535614e9eeff85a55c853d7a14d0078ff11592562855a8798e8f12f4bf91a53fa1c521a82a815 WHIRLPOOL 0c165d21bc011d347457847d83a31b00899d80eeaee47abd1d3bd1bd4898b7629a51aa5072b156476b7f9b25abf3e122e299882d47547d07e720233776b493d5
EBUILD opera-12.11.1661.ebuild 5530 SHA256 0ba798d6eced3bb9588758abe200e4e765a6cd052227d44206d48833e33717d2 SHA512 3dd55ef17f21cbbe5bb0c5a74fca6b39f0e3a41c4ca9ab9da7149854aa1f5fe0eca299292e5245c1329964e5f1f6e4966db44d1e2a7ca644594331a0fa648a24 WHIRLPOOL f3b55c8b17fc9a598f09c1caec56c84d279c4a499a84195d027ab0eb98d1a01ab12c76ec18d143df04eea266b2d1661cf54da46995f4164a3ca9de184aa6c834
-MISC ChangeLog 32088 SHA256 06b9efa13b52141fbcf1c2440aeb361bc306e72e025a06ab1608f94150c3a5b6 SHA512 134c445ffb0965e35dc03eeb6b5ea7001a631a6e9fb3128dad4e836cb6fe97f5dfcd83209fc7fca37500690bcde52f5afff6bbb2af8299c40777faf964da092d WHIRLPOOL b9a8a18a2ce5dde79f4dd9d53059f114423170ddfad98e74d1560a1439df8672009ab68f52cfdd4fe8945b734ba4dcf181b752b6eea2cc4ca80c93abd5e04b98
+EBUILD opera-12.12.1662.ebuild 5546 SHA256 f8f9a2a8b5b3f7fd22d97ce54d19f4c6707f677041ac4c2f4070ca14cd5b7b2d SHA512 06acdc4f3380f4258ed72763f32f9964a5c505f2c02165d757bc2335b99805349dc869e0ecb1d8862cdeffd11ba980cf0cded10b772455b42ae0285e76813cde WHIRLPOOL 1c583497a4bc8c9e77c4f1a9470f0afb3570e28e710c0d56fa9cb1a01d700c99a047c7f4efe323e5bfc67a3f2bf74dc475587df3ec9df9b881dbf1f1e4d8d551
+MISC ChangeLog 32250 SHA256 f351ba039c1f00a9c65a29539810955bb6b2dae34a26893bac0aa98430bfae4d SHA512 480211e7970320bd2310578ff4ae6742154385aa9da7904a292d9f11a0c99e7f01191b74afbc06b9dd76a95bd31bf039fde166917cfabbac4365269664aa629d WHIRLPOOL 88a2e29e52b1fdf16e91bfba4932a639272760088f02033efa022f140884eab9c7cc586d4310bad41fcbc59dd5047876170347b33c05a14602e4d62986aee3b5
MISC ChangeLog-2010 112299 SHA256 5c3b5c58119b4a6b1911d840892c42234f25dae57452287fb0a9e6cca78ed171 SHA512 9dc4dc7e7508bb1621c390837ec2e47d9e96075906b2060be419ee64e505c8f0da9e4d3a8bc7cc2de66c6efc383f026afb8fa5e886afa15da6349514a93c9edb WHIRLPOOL edaf1c2e810e91d37b2d90847640900374b447a12e2e0e927654966cc18c3a14f332ce6daa07c5a0049da06f5e89bfd0daddb5f73a4d79b334ded4397349cf7a
MISC metadata.xml 672 SHA256 3fdb3d81bfb1c469bdf86811329eb4888ce909cce63d2aa71257b91a6f8f012e SHA512 4aae9fbf8a753b30b7ef5868b0084c1eb55ed34cc9e1ece8814db13230e07b455f45be936c810bc8a9426ce6c9eaa7449612ac50b47aad253dcae57a683b5b6a WHIRLPOOL 9dc490f6cffad6c3ff1beb27a74818fc66a194856b7d5a84972d387a6bcdf81cda95bb2d1f2b5cb9d58f47cf898bcede39b2a68fdaa5405c5efbffaa51986f3d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlCs8b4ACgkQVWmRsqeSphOwAACfend5GHFgZ6DknTr4iQdD4toc
-MncAnR7QF8ju87BrJ2n4kRj1Cq0kVt/P
-=d/RX
+iEYEAREIAAYFAlCzr78ACgkQVWmRsqeSphPZNwCfdIv/ziCG/7g0KvdEyZHR2IVx
+r80An2nDy1DxHyGp+/Gyt16jlgXYixPm
+=b715
-----END PGP SIGNATURE-----
diff --git a/www-client/opera/opera-12.12.1662.ebuild b/www-client/opera/opera-12.12.1662.ebuild
new file mode 100644
index 000000000000..24914900d825
--- /dev/null
+++ b/www-client/opera/opera-12.12.1662.ebuild
@@ -0,0 +1,219 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-12.12.1662.ebuild,v 1.1 2012/11/26 18:06:51 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
+
+O_D="mantismech_${O_V}-${O_B}"
+O_P="${PN}-${O_V}-${O_B}"
+O_U="http://snapshot.opera.com/unix/"
+
+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 )
+"
+
+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
+"
+
+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
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+"
+GSTRDEPEND="
+ dev-libs/glib:2
+ dev-libs/libxml2
+ media-libs/gst-plugins-base
+ media-libs/gstreamer
+ media-plugins/gst-plugins-meta
+"
+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} )
+"
+src_unpack() {
+ unpack ${A}
+ mv -v ${PN}* "${S}" || die
+}
+
+src_prepare() {
+ export OPREFIX="/usr/$(get_libdir)"
+ export QA_PREBUILT="${OPREFIX}/${PN}/.*"
+ export QA_PRESTRIPPED="${OPREFIX}/${PN}/.*"
+
+ 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
+ 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
+}