summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-05-31 07:16:06 +0000
committerJeroen Roovers <jer@gentoo.org>2011-05-31 07:16:06 +0000
commit4e981d86eac6bccd66487ed5c244477491558378 (patch)
tree021d78449035598c3d86334d4b0ee4f84f3ed041 /www-client/opera
parentfix ChangeLog encoding (diff)
downloadhistorical-4e981d86eac6bccd66487ed5c244477491558378.tar.gz
historical-4e981d86eac6bccd66487ed5c244477491558378.tar.bz2
historical-4e981d86eac6bccd66487ed5c244477491558378.zip
http://my.opera.com/desktopteam/blog/2011/05/31/swordfish-beta
Package-Manager: portage-2.2.0_alpha37/cvs/Linux i686
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-11.50.1027.ebuild226
3 files changed, 240 insertions, 5 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog
index 35af0a15ad2e..1c3123fbe608 100644
--- a/www-client/opera/ChangeLog
+++ b/www-client/opera/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-client/opera
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.632 2011/05/25 00:53:14 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.633 2011/05/31 07:16:06 jer Exp $
+
+*opera-11.50.1027 (31 May 2011)
+
+ 31 May 2011; Jeroen Roovers <jer@gentoo.org> +opera-11.50.1027.ebuild:
+ http://my.opera.com/desktopteam/blog/2011/05/31/swordfish-beta
25 May 2011; Jeroen Roovers <jer@gentoo.org> opera-11.11.2109.ebuild:
Remove unneeded RESTRICT="test".
diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest
index c8e1f43dc81d..416393351d5c 100644
--- a/www-client/opera/Manifest
+++ b/www-client/opera/Manifest
@@ -4,13 +4,17 @@ Hash: SHA1
DIST opera-11.11-2109.i386.freebsd.tar.xz 10308384 RMD160 f7387349f5c4d2d616d6604241eb338a82dd97b6 SHA1 62eb4beb5efd7fb43a42b841e279ae9c1f06f9b3 SHA256 5384fc3f2cd2aa47009da12898ad28dbbcdc9c2db6f4626a5a931a7c0edab09e
DIST opera-11.11-2109.i386.linux.tar.xz 10289384 RMD160 dc5a929ea87e9818c6b43bbda4ac55dacaaa883d SHA1 4719065a71f7c37a5b39d58619cc5c1ec9bae689 SHA256 16b738b5b83cbcb5d2a72efeceaa5ef11122b7c0c6cc2988e13ec0fb97d671a0
DIST opera-11.11-2109.x86_64.linux.tar.xz 11054024 RMD160 1f35dd5c69d7bcfc1152e8a3066919ad9503d63a SHA1 0407c2d747f60e1d6e9150b919f1554ac45dc639 SHA256 b5b2157315b9af6a41d0fef6d6b8d671d138105e694b8041c5ae9df89bc6edbb
+DIST opera-11.50-1027.i386.freebsd.tar.xz 10862228 RMD160 2b7c43738aa1aa5a1ff337d7f628594e555ad774 SHA1 edbd94dc587cc30087e2c225d483fae6e6e65ad9 SHA256 c4b62b72cca6447a4e67fe7fc6a00e49464b91bbe0fcece5ccc01b97bb84dfd3
+DIST opera-11.50-1027.i386.linux.tar.xz 10802300 RMD160 642959388d61f5b8d7d9e11fd2c786d6443bfa73 SHA1 829ad2683414e6ba33d437ba0dda063ca3974f0f SHA256 7f0c7a6ebf23b707761b86ed1691631f507a4b7b28ff499b4006895475fff832
+DIST opera-11.50-1027.x86_64.linux.tar.xz 11593196 RMD160 af35b45018e1636272f227a1945a759da204c32a SHA1 b1d57a27dc7fd70fab72cc7703112f1d7139ea8c SHA256 bcd1a162858b34b7f3265009d26c0aaaf3d218fb197b60037dfa74599e9af188
EBUILD opera-11.11.2109.ebuild 5982 RMD160 fa51701f78d7626f86aa6d2d4f6cf6053c575097 SHA1 1a21b68af084e24f601738adff9a2d5a0265880e SHA256 feec3fd2a5eacd098500de16febd5206aaeb8ffa8e4ad93b4d5a483848516e77
-MISC ChangeLog 121253 RMD160 6030238c583b7661d70f19483f5462cbd3597338 SHA1 587a24b5a444804446810c5e4ecdd3d01856d812 SHA256 6afc176183e1814d0160f7336e8bfcb529cba06b89c64c9186f8e3d2f17e6d4e
+EBUILD opera-11.50.1027.ebuild 6038 RMD160 ca41811cd06ca2f08ca6fb00a5bf74caf50d9d4f SHA1 8a137bcc1b3b022377929a7034cd67bc9b49b408 SHA256 018a0ff708da9fe76b2a98a84ab2bad2c1139f67d52521b9aa97a5d197a41fcf
+MISC ChangeLog 121425 RMD160 776a70ca837f383ced831db6466b20e4e572b14a SHA1 fbbf4dbaa34663fdab7c2ee1140e083ec270ab48 SHA256 8c929e28ee13481335022c8e84557a06b7c23cc1ba01413ff8688ae7a710a288
MISC metadata.xml 641 RMD160 b02a2c03b42c19da338fc0d2c2460ae393b832e3 SHA1 b9225680d057968296b8828308f76fa8d9ea9c56 SHA256 37369b30382e2fb8c54d23e112070997135689468d3cd865ed194a55bb87ed58
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk3cUwAACgkQVWmRsqeSphNzwwCdEbvA1sX0FS3TYeGnAjjkwueL
-nwAAnR4Np/j8m+gqzmgVkzKxwufFRg9/
-=c2B3
+iEYEARECAAYFAk3klbsACgkQVWmRsqeSphNV1gCfak5vnxvjm36GibBzIQifJnEG
+wXwAnAnhr2L/q3bG9ThAlSetDvcYeuiJ
+=W7c5
-----END PGP SIGNATURE-----
diff --git a/www-client/opera/opera-11.50.1027.ebuild b/www-client/opera/opera-11.50.1027.ebuild
new file mode 100644
index 000000000000..9fbf24a2cdf7
--- /dev/null
+++ b/www-client/opera/opera-11.50.1027.ebuild
@@ -0,0 +1,226 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-11.50.1027.ebuild,v 1.1 2011/05/31 07:16:06 jer Exp $
+
+EAPI="3"
+
+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 kde +gstreamer"
+
+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="${O_V/.}b1"
+O_P="${PN}-${O_V}-${O_B}"
+O_U="mirror://opera/"
+
+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 )
+"
+
+OPREFIX="/usr/$(get_libdir)"
+
+QA_DT_HASH="${OPREFIX}/${PN}/.*"
+QA_PRESTRIPPED="${OPREFIX}/${PN}/.*"
+
+O_LINGUAS="
+ af az be bg cs da de el en-GB es-ES es-LA et fi fr fr-CA fy gd hi hr hu id
+ it ja ka ko lt me mk ms nb nl nn pl pt pt-BR ro ru sk sr sv ta te th tl tr
+ uk uz vi zh-CN zh-TW
+"
+
+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
+ x11-libs/gtk+:2
+ x11-libs/pango
+ x11-libs/pixman
+"
+KDERDEPEND="
+ kde-base/kdelibs
+ x11-libs/qt-core
+ x11-libs/qt-gui
+"
+GSTRDEPEND="
+ dev-libs/glib
+ dev-libs/libxml2
+ media-plugins/gst-plugins-meta
+ media-libs/gstreamer
+"
+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
+ gtk? ( ${GTKRDEPEND} )
+ kde? ( ${KDERDEPEND} )
+ gstreamer? ( ${GSTRDEPEND} )
+"
+
+pkg_setup() {
+ echo -e \
+ " ${GOOD}****************************************************${NORMAL}"
+ elog "If you seek support, please file a bug report at"
+ elog "https://bugs.gentoo.org and post the output of"
+ elog " \`emerge --info =${CATEGORY}/${P}'"
+ echo -e \
+ " ${GOOD}****************************************************${NORMAL}"
+}
+
+src_unpack() {
+ unpack ${A}
+ mv -v ${PN}* "${S}" || die
+}
+
+src_prepare() {
+ # Remove unwanted linguas
+ LNGDIR="share/${PN}/locale"
+ 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 "ln -sn license.txt"
+ done
+
+ # Remove package directory
+ rm -rf share/${PN}/package
+
+ # Leave libopera*.so only if the user chooses
+ if ! use gtk; then
+ rm lib/${PN}/liboperagtk.so || die "rm liboperagtk.so failed"
+ fi
+ if ! use kde; then
+ rm lib/${PN}/liboperakde4.so || die "rm liboperakde4.so failed"
+ fi
+
+ # Unzip the man pages before sedding
+ gunzip share/man/man1/* || die "gunzip failed"
+
+ # Replace PREFIX, SUFFIX and PN in various files
+ sed -i \
+ -e "s:@@{PREFIX}:/usr:g" \
+ -e "s:@@{SUFFIX}::g" \
+ -e "s:@@{_SUFFIX}::g" \
+ -e "s:@@{USUFFIX}::g" \
+ -e "s:opera:${PN}:g" \
+ share/mime/packages/${PN}-widget.xml \
+ share/man/man1/* \
+ share/applications/${PN}-browser.desktop \
+ share/applications/${PN}-widget-manager.desktop \
+ || die "sed failed"
+
+ # Create /usr/bin/${PN} 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}
+
+ # Fix libdir in defaults/pluginpath.ini
+ sed -i \
+ share/${PN}/defaults/pluginpath.ini \
+ -e "s|/usr/lib32|${OPREFIX}|g" \
+ -e '/netscape/{s|[0-1]|2|g}' \
+ || die "sed pluginpath.ini failed"
+
+ # 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 "failed to change libz.so.3 to libz.so.1"
+ 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 lib/ failed"
+ mv share/ "${D}/usr/" || die "mv share/ failed"
+
+ # Install startup scripts
+ dobin ${PN} ${PN}-widget-manager || die "dobin failed"
+
+ # 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}/${PN}" \
+ "${D}/${OPREFIX}/${PN}/operaplugincleaner" \
+ "${D}/${OPREFIX}/${PN}/operapluginwrapper"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog "To change the UI language, choose [Tools] -> [Preferences], open the"
+ elog "[General] tab, click on [Details...] then [Choose...] and point the"
+ elog "file chooser at /usr/share/${PN}/locale/, then enter the"
+ elog "directory for the language you want and [Open] the .lng file."
+
+ 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
+}