diff options
author | Jeroen Roovers <jer@gentoo.org> | 2012-06-08 03:53:52 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2012-06-08 03:53:52 +0000 |
commit | a15fb579e9eeaefefd5d9ba061e69071075b0852 (patch) | |
tree | a259da03ed65a9bbabf411869c30def18bf42d0b /www-client | |
parent | http://my.opera.com/desktopteam/blog/2012/06/07/plugged-in-to-twelve (diff) | |
download | historical-a15fb579e9eeaefefd5d9ba061e69071075b0852.tar.gz historical-a15fb579e9eeaefefd5d9ba061e69071075b0852.tar.bz2 historical-a15fb579e9eeaefefd5d9ba061e69071075b0852.zip |
http://my.opera.com/desktopteam/blog/2012/06/07/plugged-in-to-twelve
Package-Manager: portage-2.2.0_alpha110/cvs/Linux x86_64
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/opera-next/ChangeLog | 7 | ||||
-rw-r--r-- | www-client/opera-next/Manifest | 12 | ||||
-rw-r--r-- | www-client/opera-next/opera-next-12.00.1448.ebuild | 226 |
3 files changed, 240 insertions, 5 deletions
diff --git a/www-client/opera-next/ChangeLog b/www-client/opera-next/ChangeLog index 2d801156655d..b4134de766d5 100644 --- a/www-client/opera-next/ChangeLog +++ b/www-client/opera-next/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-client/opera-next # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.95 2012/06/06 18:03:50 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.96 2012/06/08 03:53:52 jer Exp $ + +*opera-next-12.00.1448 (08 Jun 2012) + + 08 Jun 2012; Jeroen Roovers <jer@gentoo.org> +opera-next-12.00.1448.ebuild: + http://my.opera.com/desktopteam/blog/2012/06/07/plugged-in-to-twelve 06 Jun 2012; Jeroen Roovers <jer@gentoo.org> opera-next-12.00.1445.ebuild: Introduce USE=multilib to not install operapluginwrapper-ia32-linux on diff --git a/www-client/opera-next/Manifest b/www-client/opera-next/Manifest index 4a8057017fdb..c7f6f2d891a1 100644 --- a/www-client/opera-next/Manifest +++ b/www-client/opera-next/Manifest @@ -16,17 +16,21 @@ DIST opera-next-12.00-1441.x86_64.linux.tar.xz 13715908 RMD160 a4e64beb99272a851 DIST opera-next-12.00-1445.i386.freebsd.tar.xz 12629092 RMD160 af68e6e1df01457af23ab8c5f87c810b5af0c6c2 SHA1 f5696686c4434dbe8420a4a8d4ded0fe0fbcfa7b SHA256 2e72373d276c763dd59e896e93a4163bbfcb295f3374d3822338336c5dc36601 DIST opera-next-12.00-1445.i386.linux.tar.xz 12656308 RMD160 edcc2543fed187e80f73fe814286932051f13166 SHA1 39a69f2b94495c3a63b5df586b4bda00d165edd7 SHA256 3b94724086e9fb3c5e168978a6a5396c0c2f306feb02ae0a606e05b5a1b213c0 DIST opera-next-12.00-1445.x86_64.linux.tar.xz 13712924 RMD160 d1f4b690b5fcce150df5499daaa4633e6362e4b2 SHA1 7d80391031484e5c43df6665e96c32dd8e772e53 SHA256 11e1eca6b97cf59a79a8bbce152e3e164b656e73cd8ccad40f700b30536c46e6 +DIST opera-next-12.00-1448.i386.freebsd.tar.xz 12596020 RMD160 1ee5cebdf0e3fdc4af850b508012259754cbd115 SHA1 ab1283eb69af2456820ca4022464abe99d988433 SHA256 04478ae2a9b80172fe35689b8c39a361002f6586b895e8502bb608068f58d864 +DIST opera-next-12.00-1448.i386.linux.tar.xz 12603472 RMD160 83f8c830a64018daf19c6aeb7d3b0c72b5176598 SHA1 4ff3d14f67deadb9e95ab43a6dabc13bf9081c4b SHA256 e01065842f77730677b091b3184d8fbb3930ca7286b13ed982f8315231832ef4 +DIST opera-next-12.00-1448.x86_64.linux.tar.xz 13682184 RMD160 ce8241db98ca3e463922e918221a89f30a50aa3a SHA1 3b7890f12f18060836240c485f2a5f8623f1b3ee SHA256 799f4b76d71b1c08f74a918fbfe8a07dd6f7710822ada92fb9bf2734a8660367 EBUILD opera-next-12.00.1438.ebuild 5505 RMD160 ee8817d3cf75868a19cbd9b7e9c559464ab105e3 SHA1 7f1412a84d280c225bf503771df7b8ec2b8506fc SHA256 b41c2f18018cde12c45fc0f4313f9147316b78648d5cd99b4089fa5002394be7 EBUILD opera-next-12.00.1439.ebuild 5505 RMD160 c09a33ff72075d2148f21ceff89d26de0c9da481 SHA1 bedc8813b82767c4c785ad8eb6524d13043b013b SHA256 08ece6c9d7219bcb0bd38e75b4ed14a0d269e9d38c091f2835634c9c8204176e EBUILD opera-next-12.00.1440.ebuild 5508 RMD160 c340c18430359653a051b07b8390e82664a12689 SHA1 148f6ddcb9ab6e24fd615caa434b34e6e49950a7 SHA256 c6d7aac6d212a8fb3a099f306ce901b949b9729bbc87ceb83541a4d5dfff4c3c EBUILD opera-next-12.00.1441.ebuild 5506 RMD160 0c009a2d62f129adf48b1f6f61b9d3c3197f4318 SHA1 97204681c15bf5744bdba49ca50d87e99b7e65b2 SHA256 1b7fda037a4a2e43f7d6c6ed6e086fa171467ac72c090edea8456ffd21d1a01b EBUILD opera-next-12.00.1445.ebuild 5629 RMD160 233fcafc3be6f23d9150d63307a5e9c01ce680d3 SHA1 2d131d801bf5e379ec8a907b66d48016635ae444 SHA256 d6341d4abec78e88606a431ba7f9509f4e2affa5ffffa93a6da0ce1aaa44547b -MISC ChangeLog 19790 RMD160 2222d20ff1ab210f81fc578f6a852350f550afcc SHA1 3bd77030d9320b574adc0eb4224b6fd074a0bce9 SHA256 92b3f7182d272ff584c7cf45325ab7442fb02a29831b87774383c0bbc2c08cfb +EBUILD opera-next-12.00.1448.ebuild 5625 RMD160 affc2ce562357a3c0ed5c61b8fd288f126ca3423 SHA1 3b9c5c2b92bc59529a752ef18cd5c1fb5f0f752e SHA256 64064976b84022a0c793df6d722fc41fe6ebc32d35fcbe9b4183303aa69e64c4 +MISC ChangeLog 19978 RMD160 9bba9bfdb8d212f549b0be6e363d3536cf8ad0f7 SHA1 720298fd29c24ebaea3f47cd678de7ec01449167 SHA256 fab631aff3cf6be80a070655abbe34ce6425a6fd43baf9c8d6de80583dbacbba MISC metadata.xml 1583 RMD160 dd5554bed2dcc35aecefd6128071453321f0fe72 SHA1 23df98cede689a9f06fdf2f82288ac7f59b23c3a SHA256 bdd625fc4e2581a5b7449ad13b227a1991da039d9c1d07b459eace4771429359 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk/Pm4wACgkQVWmRsqeSphNskgCdHomMeEGuId21W/qfNBd8BDAF -FGUAn3FaE0obc/vvLTFO0ZCTZV9zufyO -=gDQ0 +iEYEARECAAYFAk/Rd1UACgkQVWmRsqeSphNOOwCffLMo2rnwJMehMvcEHUPKVQYS +HFMAn2mu4OECUVtqUCrQNcP657Lalo8f +=9vHw -----END PGP SIGNATURE----- diff --git a/www-client/opera-next/opera-next-12.00.1448.ebuild b/www-client/opera-next/opera-next-12.00.1448.ebuild new file mode 100644 index 000000000000..8818ae27ac95 --- /dev/null +++ b/www-client/opera-next/opera-next-12.00.1448.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2012 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.00.1448.ebuild,v 1.1 2012/06/08 03:53:52 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-11 LGPL-2 LGPL-3" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="elibc_FreeBSD gtk gtk3 kde +gstreamer multilib" + +O_V="$(get_version_component_range 1-2)" # Major version, i.e. 11.00 +O_B="$(get_version_component_range 3)" # Build version, i.e. 1156 + +O_D="cortana_${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 ) +" + +OPREFIX="/usr/$(get_libdir)" + +QA_DT_HASH="${OPREFIX}/${PN}/.*" +QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" + +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 ko lt 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="${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+:2 ) + gtk3? ( x11-libs/gtk+:3 ) + x11-libs/pango + x11-libs/pixman +" +KDERDEPEND=" + kde-base/kdelibs + x11-libs/qt-core + x11-libs/qt-gui +" +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} ) + gtk3? ( ${GTKRDEPEND} ) + kde? ( ${KDERDEPEND} ) + gstreamer? ( ${GSTRDEPEND} ) +" +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 + einfo "Keeping these locales (linguas): ${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 + fi + if ! use gtk3; then + 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 "${D}"/${OPREFIX}/${PN}/opera* +} + +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 +} |