summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2012-05-15 18:30:57 +0000
committerJeroen Roovers <jer@gentoo.org>2012-05-15 18:30:57 +0000
commit0eeb4e83971cf279556143a75dca6fbf8bd5f570 (patch)
tree20fe3c2832e09c732b1b22081561168547344cf2 /www-client
parentx11-misc/screen-message: Update homepage (bug #416117) (diff)
downloadhistorical-0eeb4e83971cf279556143a75dca6fbf8bd5f570.tar.gz
historical-0eeb4e83971cf279556143a75dca6fbf8bd5f570.tar.bz2
historical-0eeb4e83971cf279556143a75dca6fbf8bd5f570.zip
http://my.opera.com/desktopteam/blog/2012/05/15/new-opera-12-snapshot
Package-Manager: portage-2.2.0_alpha105/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.1413.ebuild223
3 files changed, 237 insertions, 5 deletions
diff --git a/www-client/opera-next/ChangeLog b/www-client/opera-next/ChangeLog
index 099f3cee0487..8ed251bb84a1 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.82 2012/05/14 19:42:50 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.83 2012/05/15 18:30:57 jer Exp $
+
+*opera-next-12.00.1413 (15 May 2012)
+
+ 15 May 2012; Jeroen Roovers <jer@gentoo.org> +opera-next-12.00.1413.ebuild:
+ http://my.opera.com/desktopteam/blog/2012/05/15/new-opera-12-snapshot
14 May 2012; Jeroen Roovers <jer@gentoo.org> -opera-next-12.00.1387.ebuild:
Old.
diff --git a/www-client/opera-next/Manifest b/www-client/opera-next/Manifest
index d65477a225c2..8f97be0aa769 100644
--- a/www-client/opera-next/Manifest
+++ b/www-client/opera-next/Manifest
@@ -4,13 +4,17 @@ Hash: SHA1
DIST opera-next-12.00-1406.i386.freebsd.tar.xz 12214140 RMD160 a6e862f3faaa0513ff13e071c1513a8e95961fc5 SHA1 0dfaa66e974d6fe90d5fdc5113083daf1f600c9a SHA256 80cf49021cd207159fc360e166f9c5767809b61f4210c40c3a8f449f85202170
DIST opera-next-12.00-1406.i386.linux.tar.xz 12286012 RMD160 d341bbfe199bc8b624bf342aa5b5ec7bb1a3999e SHA1 64dc52c9d51c86f7afd1de404618928292c7401f SHA256 0cbb280c4049cc3e51445885f19b84dbfd0fd4e49ea14f2dc8b5603d84658705
DIST opera-next-12.00-1406.x86_64.linux.tar.xz 13373980 RMD160 c124a53925efb1aa83243f3b560df8dc73c03ab3 SHA1 3d8951bc791b00300a6b995b2f565d6cc6ecd96a SHA256 d76f2ff03eb6a7f1e7558afecddd66502d747baa1e8fba171edbaeef5c11f53b
+DIST opera-next-12.00-1413.i386.freebsd.tar.xz 12193348 RMD160 d00013423993688af7a9f8a8c81c445aa7ffb0cc SHA1 5840c4161646b56c157c496962216ef36ee14d2e SHA256 6a0c291366d0645d7c141b5697c9457c1f693a5df2f892d5d6a060dd2cff1c9c
+DIST opera-next-12.00-1413.i386.linux.tar.xz 12278896 RMD160 403f3ccff0aa9182d127bea0204e07d62edffa82 SHA1 293f97c9aae8c1481cd55fcb2842ea726c7011de SHA256 ae7ab6cea5d6dbed4d0b61f61f30566346c423527f3447da86cb2c3b351a9e39
+DIST opera-next-12.00-1413.x86_64.linux.tar.xz 13365428 RMD160 411eebdb3e7bf72fc3dacd4310a14cb2f40bcfa2 SHA1 cad3a8adf9339789233f8d62bbf87f09e875c1f0 SHA256 196d7804eb4053e089cc32f9cff8c08d5ed59a12915692c896a0a097fbd2bf46
EBUILD opera-next-12.00.1406.ebuild 5504 RMD160 57fdbd65ec5c182e40134709860ca5519215f4a1 SHA1 6ea0539e49fad53b506f99a97cef32835003db53 SHA256 aa936fbdf46f6a53947266078e8e983ce860f31df5ac9c8e49aaf63511687e95
-MISC ChangeLog 17044 RMD160 ad5630c39a49c9c5d0835e2caa2f56bd8752c0df SHA1 0ea1690f402e7dc590e9e311edce04d5ae35d0ca SHA256 827e10411a13b5cafdabfecb10d90e144962c5f2186bcc3ef400d322baba81b5
+EBUILD opera-next-12.00.1413.ebuild 5507 RMD160 817d6a2d889eacc3fa1c10239e96a1a05c6077de SHA1 6b1d371df7e5d36e85d7d8998125ed7f538c08f6 SHA256 0194e61e913ab6dc73bed758fed7231eea65e3cad2d3261c34c605afc57ff020
+MISC ChangeLog 17233 RMD160 d9da4bf29835a63f512ddacc557687b824c0a453 SHA1 5b1f27101cd88f30e637ff5719010bc4bc0a6f10 SHA256 64c7b9e15bcbec0152cbdccffe5c0661b922d2a830e0fea35cf3858530e5aa8b
MISC metadata.xml 1583 RMD160 dd5554bed2dcc35aecefd6128071453321f0fe72 SHA1 23df98cede689a9f06fdf2f82288ac7f59b23c3a SHA256 bdd625fc4e2581a5b7449ad13b227a1991da039d9c1d07b459eace4771429359
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk+xYEAACgkQVWmRsqeSphNxJQCePIlauvLkHe+4keEJzugX53oN
-pyAAni/SiHMesmfAzM+ATYMM9HJ2daPW
-=m1c8
+iEYEARECAAYFAk+yoOYACgkQVWmRsqeSphM28gCePBy0HwuFyhq5Agt657OmjB+n
+QkMAniEUHb/pp05x4WPWkfTF/tF7RsMo
+=jUrP
-----END PGP SIGNATURE-----
diff --git a/www-client/opera-next/opera-next-12.00.1413.ebuild b/www-client/opera-next/opera-next-12.00.1413.ebuild
new file mode 100644
index 000000000000..6ffd0ae4f8b7
--- /dev/null
+++ b/www-client/opera-next/opera-next-12.00.1413.ebuild
@@ -0,0 +1,223 @@
+# 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.1413.ebuild,v 1.1 2012/05/15 18:30:57 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"
+
+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="family_${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
+
+ # 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
+}