diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-12-21 15:37:19 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-12-21 15:37:19 +0000 |
commit | 8f0374946f54320bec275bf67cb8d404050ad64f (patch) | |
tree | f96940862e7b5dc6e5d48b95a67696bffd57987b /www-client/opera | |
parent | set deps to older version (diff) | |
download | historical-8f0374946f54320bec275bf67cb8d404050ad64f.tar.gz historical-8f0374946f54320bec275bf67cb8d404050ad64f.tar.bz2 historical-8f0374946f54320bec275bf67cb8d404050ad64f.zip |
Switch to a hopefully better lasting versioning scheme. Use xz compressed sources.
Package-Manager: portage-2.2.0_alpha9/cvs/Linux i686
Diffstat (limited to 'www-client/opera')
-rw-r--r-- | www-client/opera/ChangeLog | 8 | ||||
-rw-r--r-- | www-client/opera/Manifest | 6 | ||||
-rw-r--r-- | www-client/opera/opera-11.00.1156.ebuild | 209 |
3 files changed, 221 insertions, 2 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index 3cc24e9d0a23..8857c58ffa78 100644 --- a/www-client/opera/ChangeLog +++ b/www-client/opera/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-client/opera # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.578 2010/12/18 12:08:02 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.579 2010/12/21 15:37:19 jer Exp $ + +*opera-11.00.1156 (21 Dec 2010) + + 21 Dec 2010; Jeroen Roovers <jer@gentoo.org> +opera-11.00.1156.ebuild: + Switch to a hopefully better lasting versioning scheme. Use xz compressed + sources. 18 Dec 2010; Markos Chandras <hwoarang@gentoo.org> opera-11.00_pre1156.ebuild: diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index d2c375a996be..1f2048037a72 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -1,6 +1,10 @@ DIST opera-11.00-1156.i386.freebsd.tar.bz2 11348121 RMD160 30db9d0891e557f1e150b5eb279316d0011b13f7 SHA1 576e5f4c7a45b90180652eac54d725d61dd4468a SHA256 deed77052091ba232fb12d819eed585af1eb4927ab5300bef94b7a9c58a4d5d5 +DIST opera-11.00-1156.i386.freebsd.tar.xz 9692000 RMD160 57b99bc5771267f9e1d943aaba6e8164ee6bba9f SHA1 1cf1317788d6d984770b1735ecc9e52ff0f64968 SHA256 504fd4e0e661f4aeac6d379967a973a8f374ee285f89eaf0b3ae455332904411 DIST opera-11.00-1156.i386.linux.tar.bz2 11625554 RMD160 3955e17bbcb5be3244803a154cc1147fdfc0bb94 SHA1 e28f416a18b04248e9a1e9a99fd8b373df3d0499 SHA256 951a5ed3f2ff5095533ade447ad4046265899b13256cbe46fdb2054795edbf65 +DIST opera-11.00-1156.i386.linux.tar.xz 10032844 RMD160 a23f1bb734a0539a35739314f4c28e5187070663 SHA1 c0827b2b6a67b76cb6f75b036eb8d85621606a99 SHA256 c49a97d68569f63c543fd66a340c4719c0ea2fd5703c5b3f2ec0e4ff0dcb60ed DIST opera-11.00-1156.x86_64.linux.tar.bz2 12858732 RMD160 2d06fcd4f8ff3e03ebdfd982d17d436c74d5448c SHA1 53d001dd5e9afad32da78c158913d83ac027650f SHA256 46e6055369703acbab6ffebef321ca327e339d5f9a5dcd7e7ad909aa72d7b1c8 +DIST opera-11.00-1156.x86_64.linux.tar.xz 10736488 RMD160 feb61d84cff376e1a7bbc0378c584ca2aec20089 SHA1 1920c7ece83d94adfb1499443cc14be2c7e98154 SHA256 5b3a9a1c5cf54e5e28313e8b0b4238857a166232674688e888ca9bf52e0a9aed +EBUILD opera-11.00.1156.ebuild 5469 RMD160 d1b76b5a80a6e62e78ac7d3cb3b4a3baf6dfbd4d SHA1 a110bbbe88f23e4e440eead68479488ee8a3e198 SHA256 0d2c2c5fffeddd7ad1487b025b94437e83bc77078ab6f5cea7bc4493159935ab EBUILD opera-11.00_pre1156.ebuild 5323 RMD160 e5c15c36e11945f8e9d1e8c9d8c08bc9373de5c4 SHA1 c3e93e13a11edb96da1b1cc1558a384c83273b03 SHA256 6037158e91c5bf5a77d32a0e02d42f06f75b9cbc718f05efc4643906531bed58 -MISC ChangeLog 111829 RMD160 62d31c82541754c789b638aff5e649779fc7be48 SHA1 baa0606af6dc896a5bb228a2425f4257517c241a SHA256 b464a361432515eeb4254c9b05ec0208a417937c850067f988b24facbedff3c3 +MISC ChangeLog 112018 RMD160 7f61774a919d96f6a36918ef0d540534d57ca216 SHA1 648a1511b3d5bf74c3afcded27fe9f2cc8e3a11e SHA256 755fc5b99bfedcbef0bca4cde8777350eb8968254258f16a7a54c6c0bd35e17d MISC metadata.xml 651 RMD160 5b15e2f22dc49ee158b4c76f4760219c1f85c096 SHA1 1de6dff612ef2667f194ed57d352e09a0879fbc1 SHA256 84accea33d9ad1436d9a425ddf5de328d31af559b7c9764d54546d3b357c7a10 diff --git a/www-client/opera/opera-11.00.1156.ebuild b/www-client/opera/opera-11.00.1156.ebuild new file mode 100644 index 000000000000..075eb11f59b5 --- /dev/null +++ b/www-client/opera/opera-11.00.1156.ebuild @@ -0,0 +1,209 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-11.00.1156.ebuild,v 1.1 2010/12/21 15:37:19 jer Exp $ + +EAPI="3" + +inherit eutils multilib versionator + +DESCRIPTION="A standards-compliant graphical Web browser" +HOMEPAGE="http://www.opera.com/" + +SLOT="0" +LICENSE="OPERA-10.53 LGPL-2 LGPL-3" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="elibc_FreeBSD gtk kde +gstreamer" + +RESTRICT="test" + +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_U="mirror://opera/" +O_D="${O_V/.}" +O_P="${PN}-${O_V}-${O_B}" + +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=" + be bg cs da de el en-GB es-ES es-LA et fi fr fr-CA fy hi hr hu id it ja ka + ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk vi zh-CN zh-HK + zh-TW +" + +for O_LINGUA in ${O_LINGUAS}; do + IUSE="${IUSE} linguas_${O_LINGUA/-/_}" +done + +DEPEND=" + >=sys-apps/sed-4 + app-arch/xz-utils +" +RDEPEND=" + gtk? ( + =x11-libs/gtk+-2* + dev-libs/atk + dev-libs/glib + x11-libs/cairo + x11-libs/pango + x11-libs/pixman + ) + kde? ( + kde-base/kdelibs + ) + dev-libs/expat + media-libs/fontconfig + media-libs/freetype + gstreamer? ( media-plugins/gst-plugins-meta ) + sys-apps/util-linux + sys-libs/zlib + virtual/opengl + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXt + x11-libs/libxcb + x11-libs/xcb-util +" + +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} + if [[ ! -d ${S} ]]; then + cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" + S="$(pwd)" + einfo "Setting WORKDIR to ${S}" + fi +} + +src_prepare() { + # Remove doc directory but keep the LICENSE under another name (bug #315473) + mv share/doc/opera/LICENSE share/opera/defaults/license.txt + rm -rf share/doc + for license in share/opera/locale/*/license.txt; do + rm -v "${license}" + ln -svn /usr/share/opera/defaults/license.txt "${license}" \ + || die "mv license" + done + + # Remove package directory + rm -rf share/opera/package + + # Leave libopera*.so only if the user chooses + if ! use gtk; then + rm lib/opera/liboperagtk.so || die "rm liboperagtk.so failed" + fi + if ! use kde; then + rm lib/opera/liboperakde4.so || die "rm liboperakde4.so failed" + fi + + # Unzip the man pages before sedding + gunzip share/man/man1/* || die "gunzip failed" + + # Replace PREFIX and SUFFIX in various files + sed -i \ + -e "s:@@{PREFIX}:/usr:g" \ + -e "s:@@{SUFFIX}::g" \ + -e "s:@@{_SUFFIX}::g" \ + -e "s:@@{USUFFIX}::g" \ + share/mime/packages/opera-widget.xml \ + share/man/man1/* \ + share/applications/opera-browser.desktop \ + share/applications/opera-widget-manager.desktop \ + || die "sed failed" + + # Create /usr/bin/opera wrapper + echo '#!/bin/bash' > opera + echo 'export OPERA_DIR=/usr/share/opera' >> opera + echo 'exec '"${OPREFIX}"'/opera/opera "$@"' >> opera + + # Fix libdir in defaults/pluginpath.ini + sed -i \ + share/opera/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() { + # Remove unwanted linguas + LNGDIR="share/${PN}/locale" + einfo "Installing 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}" + fi + done + + # 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/90opera +} + +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/opera/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 +} |