diff options
author | Jeroen Roovers <jer@gentoo.org> | 2013-08-10 14:11:25 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2013-08-10 14:11:25 +0000 |
commit | 6101e58db92ca1dadfa7bce4c9f9d9ed7bef0697 (patch) | |
tree | ab9c86e213893b9def878c33516382d5111ac677 /www-client/opera | |
parent | Version bump. Fixes bug #465482 (diff) | |
download | historical-6101e58db92ca1dadfa7bce4c9f9d9ed7bef0697.tar.gz historical-6101e58db92ca1dadfa7bce4c9f9d9ed7bef0697.tar.bz2 historical-6101e58db92ca1dadfa7bce4c9f9d9ed7bef0697.zip |
Add ~amd64-fbsd by Yuta SATOH (bug #477594).
Package-Manager: portage-2.2.0_alpha196/cvs/Linux x86_64
Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'www-client/opera')
-rw-r--r-- | www-client/opera/ChangeLog | 7 | ||||
-rw-r--r-- | www-client/opera/Manifest | 10 | ||||
-rw-r--r-- | www-client/opera/opera-12.16_p1860-r1.ebuild | 245 |
3 files changed, 257 insertions, 5 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index 89617774b5b9..d05d799099f0 100644 --- a/www-client/opera/ChangeLog +++ b/www-client/opera/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-client/opera # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.817 2013/07/06 12:10:36 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.818 2013/08/10 14:11:23 jer Exp $ + +*opera-12.16_p1860-r1 (10 Aug 2013) + + 10 Aug 2013; Jeroen Roovers <jer@gentoo.org> +opera-12.16_p1860-r1.ebuild: + Add ~amd64-fbsd by Yuta SATOH (bug #477594). 06 Jul 2013; Jeroen Roovers <jer@gentoo.org> -opera-12.15_p1748.ebuild: Old. diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index ce54742731dd..2a11def822d3 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -1,17 +1,19 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +DIST opera-12.16-1860.amd64.freebsd.tar.xz 13312684 SHA256 ecc001605c45baa4acf60e0182fb85df9011b2c0c1c34cc73f377f25c9110a59 SHA512 e08547a8c966ec64c00e7058cb17856c9e2174b8b6e327d3e8b4c69226c9d1a1ff98f07557b607d8db68811b8a4f94a349ec9c882b480a706d3f28f7430e5ff8 WHIRLPOOL 83241aa6eab0a646292fdbfe497e227b24e1c8122b6f61f6d47dc81597f07db25d73bd58c1e7ac1fe4455d7387afd99b0ffc8e2e7a995653ea96e0fa20db234b DIST opera-12.16-1860.i386.freebsd.tar.xz 13385696 SHA256 dcd80ea7a8f090a47007fc630495817feeb167220b9a9bbffbf349687f3e29d3 SHA512 0bb2c0548765ea476cdb8be6c84faf1d60dddb5a2c08b7312027f4cd17fa8ebd4fbc1a97657bbcb0ac07733e5f3b340b181a307a778c38543140adbfe7f8b844 WHIRLPOOL 5703b2c736694cf6ffcf808872e72585b81c7fed9d2263d5679ee54f667f4eb6b9d34a73b80c8efc0a8640daf03da60dafa0defe0c560d3ef78f2a8a68cbb960 DIST opera-12.16-1860.i386.linux.tar.xz 13154668 SHA256 df640656a52b7c714faf25de92d84992116ce8f82b7a67afc1121eb3c428489d SHA512 a13ec53311e3e78f35103a9dd5337c0e9a555362860213080211ee9d21de88fbd6aae03bed20b7515874d5a09dfbab108954213745fb82175f5e48e555152613 WHIRLPOOL ae1af6858847fe51dcac8cb076a67099846ad66b734ecf92780e953daec963754c9e4352e979a636eac70e785a62bd94e084124080d7fe0f59b420a99a2133cc DIST opera-12.16-1860.x86_64.linux.tar.xz 14018800 SHA256 b3b5cada3829d2b3b0e2da25e9444ce9dff73dc6692586ce72cfd4f6431e639e SHA512 c1289f352ea5fc8133b105771f48fdc56ccd770920330b1a0ed939ff909abc68081447673572eabeb1aae6db5194b6ab35c93afad78a91d8f7a9a0f91e81ef8b WHIRLPOOL 539cdf43b4c8175c664fbf786b27ede1d33e58c44f75229a1a50612951136f526d646f3e0444b6cc69961259c3e3ef7dbf722b520abb4d4dbb98032c4de335d1 +EBUILD opera-12.16_p1860-r1.ebuild 6470 SHA256 cd602b2c50734c962fbaac78dc6a3ec525abb95f4c952f62acc8eab4af2617c5 SHA512 517b1366abfc67a82517ad8cddf51f1dc3ef4bc85e8108e4f5555a827445131efefc1b7d63c61baedd4505652d99f114c3ba3283bcc9ed4987587512103f113e WHIRLPOOL ff3fc9b2b9e817536f11bdf9f24ea7fc25d1c6261be56f45e8c631a240f0d6c5707332cb73401aa148573b8a00036c85dbe044ea5b64a61c977280b102267120 EBUILD opera-12.16_p1860.ebuild 6195 SHA256 9da1e334c742bf79d2ada2542b9cd2fa174ca60c1bdef5ed80c244bc303e8ef8 SHA512 0162da8859c4d3c46952703d316b7e95d03ff7a88607b4897918e03396b2dbe1304a7b2b381e3d38eefb28057f2946d4cfc3dd817d4ff36fb3ffb55fc8113c46 WHIRLPOOL 624675a1b1d0bbae4f1dd513b960c5f693078901fd32548d4ccd367644b9f7a7f8831135479842947c569d999d45d831879f403f5b2883d482f6243c03edeb70 -MISC ChangeLog 38114 SHA256 180ecffe32439327e36e6dc322c4225162d5b22edfb8fed11c2033f078f9b352 SHA512 5227e515c607fce3b882011889b4eaac1391829dc947cc9b5568844985f3477788a457c581bf94ef234b85df486f667e23f17a021584bcc0d88e5a44f5456f50 WHIRLPOOL c0b80648e88163763589a46ddfd4835b24c7ce8b9efa0cb771f3a4dff9c7235b365199ae8828743e071c773879a2bf3fd3b2d4cc1efa7fa7fcc02117f2fe6605 +MISC ChangeLog 38276 SHA256 d227d353e72577403b4b55daf9e6b5bb677e45245edcd6f88a657d8af9367e8b SHA512 c7b2a1793991c3806cb723833721eee20d9784c48755c272208fbb03158f635eb342bcb8d25a4b199886acbb0c2ca2c21b73c7f55e9179b351f2734f2a960730 WHIRLPOOL 8e7ff1bde3b4c72b4130622ba50fb6afbb059c16e0feb0b597dfe169f8ba76da61742ff43e44d4e20fc1931fa34c4388d40371d39a513e1dc07aa186268dfd04 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.20 (GNU/Linux) -iEYEAREIAAYFAlHYCT0ACgkQVWmRsqeSphMptQCfc5vSmZa5NPHCFwOjO9qnOYE9 -ocwAniuF0hCiGug3e+bVeXkGgTy1gccj -=tXzu +iEYEAREIAAYFAlIGSg0ACgkQVWmRsqeSphNDyACfcMLQ2/wcg8BioIj1Ym4MbrF7 +xqcAn13AbKk+CrJPgYhRTnUZRFhH7+MX +=Med6 -----END PGP SIGNATURE----- diff --git a/www-client/opera/opera-12.16_p1860-r1.ebuild b/www-client/opera/opera-12.16_p1860-r1.ebuild new file mode 100644 index 000000000000..62465ff92a3f --- /dev/null +++ b/www-client/opera/opera-12.16_p1860-r1.ebuild @@ -0,0 +1,245 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-12.16_p1860-r1.ebuild,v 1.1 2013/08/10 14:11:24 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 ~amd64-fbsd ~x86-fbsd" +IUSE="elibc_FreeBSD gtk kde kernel_linux +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="noserch" # 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 ) + amd64-fbsd? ( ${O_U}${O_D}/${O_P}.amd64.freebsd.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 ) + amd64-fbsd? ( ${O_U}unix/${O_D}/${O_P}.amd64.freebsd.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+: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 + kernel_linux? ( 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 + x11-misc/xdg-utils + 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 + 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 libfreetype.so.9 to libfreetype.so.6 for Gentoo/FreeBSD, bug #477594 + if use elibc_FreeBSD; then + scanelf -qR -N libfreetype.so.9 -F "#N" lib/${PN}/ | \ + while read i; do + if [[ $(strings "$i" | fgrep -c libfreetype.so.9) -ne 1 ]]; + then + export SANITY_CHECK_LIBFREETYPE_FAILED=1 + break + fi + sed -i \ + "$i" \ + -e 's/libfreetype\.so\.9/libfreetype.so.6/g' + done + [[ "$SANITY_CHECK_LIBFREETYPE_FAILED" = "1" ]] && die + fi +} + +src_install() { + # We install into usr instead of opt as Opera does not support the latter + dodir /usr + if ! use elibc_FreeBSD; then + rm lib/${PN}/opera_autoupdatechecker || die + fi + 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 +} |