summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-08-16 19:59:48 +0000
committerJeroen Roovers <jer@gentoo.org>2011-08-16 19:59:48 +0000
commita1e7915d53078028d44b093277606a60787cf2a4 (patch)
treeecefc49b8a8855b7b6536ba7b9866ce021f3751d /www-client
parentBump to 3.0.2, from gnome overlay for GNOME 3 (diff)
downloadhistorical-a1e7915d53078028d44b093277606a60787cf2a4.tar.gz
historical-a1e7915d53078028d44b093277606a60787cf2a4.tar.bz2
historical-a1e7915d53078028d44b093277606a60787cf2a4.zip
http://my.opera.com/desktopteam/blog/2011/08/16/certificate-unbroken
Package-Manager: portage-2.2.0_alpha51/cvs/Linux x86_64
Diffstat (limited to 'www-client')
-rw-r--r--www-client/opera-next/ChangeLog7
-rw-r--r--www-client/opera-next/Manifest12
-rw-r--r--www-client/opera-next/opera-next-12.00.1047.ebuild232
3 files changed, 246 insertions, 5 deletions
diff --git a/www-client/opera-next/ChangeLog b/www-client/opera-next/ChangeLog
index ee5488fe2582..f0f1da13db26 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-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.37 2011/08/07 03:02:03 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.38 2011/08/16 19:59:48 jer Exp $
+
+*opera-next-12.00.1047 (16 Aug 2011)
+
+ 16 Aug 2011; Jeroen Roovers <jer@gentoo.org> +opera-next-12.00.1047.ebuild:
+ http://my.opera.com/desktopteam/blog/2011/08/16/certificate-unbroken
*opera-next-12.00.1042-r1 (07 Aug 2011)
diff --git a/www-client/opera-next/Manifest b/www-client/opera-next/Manifest
index c49a1fe64fcd..c43ea7de2931 100644
--- a/www-client/opera-next/Manifest
+++ b/www-client/opera-next/Manifest
@@ -22,6 +22,9 @@ DIST opera-next-12.00-1039.x86_64.linux.tar.xz 11932384 RMD160 af4d41db283c2564e
DIST opera-next-12.00-1042.i386.freebsd.tar.xz 11232784 RMD160 da78aaa10ec8cb1414f15482bcd2807f8e9e6ad1 SHA1 24b0e485f8ac1743c799f12e37fce9e56eff0c8c SHA256 83480385ecd2f4df07a8796e9727d3ff61917af2d3da38bcf24e4454f4f82ae1
DIST opera-next-12.00-1042.i386.linux.tar.xz 11164156 RMD160 b505eb3dd058b7d6798444dfb28805a84abcbba0 SHA1 54edbe6bb40ab7a54dfec11c176310aca65ee2e3 SHA256 d0802cfef9a94e48d0b7dcbec5e950600737c968be3eb90392b257d1bba400b8
DIST opera-next-12.00-1042.x86_64.linux.tar.xz 11933032 RMD160 9f818af166586bfee71751ffd92d4f8cf8360d0b SHA1 23ec930c4888d29f7e496687363edf89c5e59e1b SHA256 ed8794fad0ad6c6ecfe9296fe5a0d5ac2f7d878f1aa80d50d009d26bdf9daca4
+DIST opera-next-12.00-1047.i386.freebsd.tar.xz 11240576 RMD160 d4ad7ea735675e54f4a567e6e461e071bf5c5930 SHA1 8a366b54886ae0104f823728db9e7176f2b78240 SHA256 8fc719b2bd35cb233cd156da9d3cd862121bf75647fd030c868c40aab210c4b7
+DIST opera-next-12.00-1047.i386.linux.tar.xz 11168232 RMD160 bd190a4d2e90250e64aeac71cac89e6206796939 SHA1 ff529aa486df5c08cd8a37bd5c87895f3bf4e175 SHA256 36bedc08fe5feb371731f301bfc9c1bc131802d4e64915ea286f7c1f2f38e88f
+DIST opera-next-12.00-1047.x86_64.linux.tar.xz 11931752 RMD160 214b954e62dfccf2c95bc581fee6a992c30d3f2a SHA1 ea8de68952c60acf94faf445f28c87aa1d36d016 SHA256 2b04ae1f14f39c80c394b673d66adfae522f8b29513fc7065028d7403d60439a
EBUILD opera-next-11.50.1074.ebuild 6199 RMD160 790193982d0445f3087cea0b03dfe01e3febdbb8 SHA1 f70964c6766a606c1d3289354cfc89adef27d2c9 SHA256 c3400782dba0fd46968d2ef7c0d43a2692156212cb7b7c8e10ba4733c9944438
EBUILD opera-next-12.00.1017.ebuild 6201 RMD160 d789458dbd1a8d4e35f03dfb4b8f40d3888c0415 SHA1 9da734fd4d669f0023e753e3f0345b0157320ec2 SHA256 4a3bcdf39cfdf1282ed2bc8317d9641d03a291b913860b73c673e35a1b14b549
EBUILD opera-next-12.00.1020.ebuild 6186 RMD160 d110707d9cdd8fbc9ddd5bd6aea81ed1fe922e40 SHA1 8e16d17d0f7e4371d671b79f8358c1c00e1942d0 SHA256 f114223c77d02c55af3f55de0f313d72bc2304d7625a644450509e08e37bd82e
@@ -31,12 +34,13 @@ EBUILD opera-next-12.00.1033.ebuild 6182 RMD160 0fb21fd9ebd851169e8e2a0b5d95a432
EBUILD opera-next-12.00.1039.ebuild 5891 RMD160 cb7a9e7b42dcf9749afe37f9aada761dcb683827 SHA1 ff073969b75642a5f10c219a5d744db8aa9640fa SHA256 a9cc17e80aff866c0872cfc69529fb9d199e75a24751a2a32cd3af9fc9fe9117
EBUILD opera-next-12.00.1042-r1.ebuild 6065 RMD160 f7448d789cf5ea0bc2750347bbce2c50ca1ce5b9 SHA1 d018ca2d013d6ccf4f5473612e75263efe123fe6 SHA256 7afc244d3286a26fa5fa0f169587ca41a95e8cd8104142f8901b0a4a074bf36f
EBUILD opera-next-12.00.1042.ebuild 5893 RMD160 f682c18d6313f95e340ff9cffca847d9538aa177 SHA1 45040adb7e36b5c90d259f1e8058f3f0da660621 SHA256 95ecf514091d93465aa7e5334aa15102e1490a1d12e7ef15e629d8605a30df54
-MISC ChangeLog 7389 RMD160 016560e772d6a8e72edb75520476fe2990d21878 SHA1 7fa44be26cdc09018443d279422f8113fba47a07 SHA256 641c5a745e9ae59f162d5f5833b9aa68ba1e1148cfdfa05130cd8b1f88114713
+EBUILD opera-next-12.00.1047.ebuild 6061 RMD160 cf89bce579c85763153389e05ef235e638970c05 SHA1 c872339674e5bd3ac95f9049415b76c7bf53d09e SHA256 b162ff6368e08deee2c696749a25cc84ab39ce9efcfde447d9e4a417b0ebf4f2
+MISC ChangeLog 7577 RMD160 f105a2d3a2fb5890ddab2fb7200f29e8ed9f720e SHA1 774a93396ecf643336e2bdad452356992eb4783c SHA256 c187444572b38530c089097f3aabd4399927c8de89191facb68bd7b7a427098f
MISC metadata.xml 1547 RMD160 465d146bcfdb6553f7f0ab2dddd68c4dcb2e7731 SHA1 1afb7e0ccc0833ba0eb73be38b282b66ad629ff6 SHA256 5cfc6e7cbf3c454d563eb407b4569f0f5a9b3ce7770026d6055f27211d481915
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk4+ADAACgkQVWmRsqeSphMvWgCeKgJ8MXyN/w5Zqx1ZoEWrxZqK
-+KwAn2geGqWQk4Rr6zpFRwsWnd7fG+pI
-=CUfm
+iEYEARECAAYFAk5KzDoACgkQVWmRsqeSphNq5gCeLxZKAw3MLk68RCxaL3SJMPrV
+CNgAn1uId/eyp1btQ/5qyxIG7SqfvmDe
+=iBB1
-----END PGP SIGNATURE-----
diff --git a/www-client/opera-next/opera-next-12.00.1047.ebuild b/www-client/opera-next/opera-next-12.00.1047.ebuild
new file mode 100644
index 000000000000..8d00063e0a3b
--- /dev/null
+++ b/www-client/opera-next/opera-next-12.00.1047.ebuild
@@ -0,0 +1,232 @@
+# Copyright 1999-2011 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.1047.ebuild,v 1.1 2011/08/16 19:59:48 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 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="bergen_${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 az be bg bn 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 pa pl pt pt-BR ro ru sk sr sv sw ta te
+th tl tr uk 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
+ 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() {
+ 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 "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}/liboperagtk2.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/man/man1/* \
+ share/applications/${PN}-*.desktop \
+ || die "sed failed"
+
+ # Replace "Opera" with "Opera Next"
+ if [[ ${PN} = opera-next ]]; then
+ sed -i share/applications/${PN}-*.desktop \
+ -e "/^Name=Opera\|^ Next/s:Opera:& Next:" || die
+ fi
+
+ # 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}
+
+ # 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}
+
+ # 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() {
+ 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
+}