diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-10-15 15:15:41 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-10-15 15:15:41 +0000 |
commit | f1184476de8c7a2a8542def8b475ab770fbbd6ba (patch) | |
tree | 04c4ae0c6162d5883cb1772debd397de494780b8 | |
parent | Remove old vulnerable version. (diff) | |
download | historical-f1184476de8c7a2a8542def8b475ab770fbbd6ba.tar.gz historical-f1184476de8c7a2a8542def8b475ab770fbbd6ba.tar.bz2 historical-f1184476de8c7a2a8542def8b475ab770fbbd6ba.zip |
http://my.opera.com/desktopteam/blog/2010/10/15/font-fixes-for-nix-the-last-10-70-build
Package-Manager: portage-2.2_rc96/cvs/Linux i686
-rw-r--r-- | www-client/opera/ChangeLog | 8 | ||||
-rw-r--r-- | www-client/opera/Manifest | 6 | ||||
-rw-r--r-- | www-client/opera/opera-10.70_pre9071.ebuild | 201 |
3 files changed, 213 insertions, 2 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index e1b9b1b15ef1..903b09344835 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.556 2010/10/15 02:03:20 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.557 2010/10/15 15:15:41 jer Exp $ + +*opera-10.70_pre9071 (15 Oct 2010) + + 15 Oct 2010; Jeroen Roovers <jer@gentoo.org> +opera-10.70_pre9071.ebuild: + http://my.opera.com/desktopteam/blog/2010/10/15/font-fixes-for-nix-the-las + t-10-70-build 15 Oct 2010; Jeroen Roovers <jer@gentoo.org> -opera-10.61.ebuild, opera-10.63.ebuild, -files/opera: diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index 3a2afcd0ade9..3108a0ce4742 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -8,8 +8,12 @@ DIST opera-10.70-9053.x86_64.linux.tar.bz2 13893652 RMD160 6dab049b87edc428f57f8 DIST opera-10.70-9067.i386.freebsd.tar.bz2 12821205 RMD160 8217ac28118220fd33cc7312703fa17a6cc6c293 SHA1 050ee7f84ab6cba83d08a809b3acfe4a5fd6ac88 SHA256 0adae250fa0c1b681e3a1c3591093f60f927d88e9f345908e6c1ad3034f830e9 DIST opera-10.70-9067.i386.linux.tar.bz2 12777722 RMD160 c26ae4ad892753318dc9dcf8c025eca8d118b002 SHA1 12ba8fd1c0f7a854801259c9dbb54edcdbcbf1e9 SHA256 d209ca769c4115c2ccdada9771a4747ab17ceac33a4184e55d2241c27a3eaa7d DIST opera-10.70-9067.x86_64.linux.tar.bz2 14023895 RMD160 4e232c9daf5e3435d9804d55d5a8f76798420151 SHA1 b184b5b5590c42e2da9e2de8132e3e80b4dd7184 SHA256 03e178852b865b5199e72ee59e04681ada8e510aa54081e15701c47fc6b39c9f +DIST opera-10.70-9071.i386.freebsd.tar.bz2 12810000 RMD160 9200dd7c4bb2eb0ea51b5dff2c7ad8bdd48253d8 SHA1 a66f06e2eb350f0afab8191ae57a491461738ff5 SHA256 2dd18ca83a155b706006d54faf2ae6b9da4cdfc9e07eaa0c01067f005a97dd93 +DIST opera-10.70-9071.i386.linux.tar.bz2 12772664 RMD160 17e474894f243b5c0c2df3b0b85bd44ffc4d288c SHA1 903acc8fd1fb7181b6cd51f755bd35a4165ebafc SHA256 b55f5474b0a6ce2484bd987d11b78300e5b4d23d326408fe927422123c57713a +DIST opera-10.70-9071.x86_64.linux.tar.bz2 14006598 RMD160 81368591a1a0b7653721f0ff8b41cd3c6de5467e SHA1 e54a9c74178df8e1ab223e4ae3edaed195336cc9 SHA256 aac28f49abd18d7d8ce8e4cb15201aac8661bbb4700b13162c62acde047693ed EBUILD opera-10.63.ebuild 5166 RMD160 d52ef73523b10587e0055bf5ec38ad7fd96c8e4b SHA1 c94be988f8a3cfbe890277a8c066af0d78d09e4f SHA256 d3ff285a9311123019acf5649f4a8e09c8c6482bfba5735d569e84965bddcc62 EBUILD opera-10.70_pre9053.ebuild 5138 RMD160 6609eba4c9d6caff37f0cdee1a3193942a03bca2 SHA1 31e11518e8141af950a13b9c0e9dfb18bae19a5c SHA256 38fd2590a666ea5186446305da0a18131bd02865d4b3baab12bc726aaf75b6ea EBUILD opera-10.70_pre9067.ebuild 5137 RMD160 f1a8c54b0d9e498f6b0037998e97f290f768fea6 SHA1 3308fb8b5e4cb2f42526bddc4f8bcb5bfd27a8a5 SHA256 e6ce1d1871f3b9e14622abaf5a3b083224c04029c3ca6baba876ef86e3750650 -MISC ChangeLog 107085 RMD160 3733ddb348e691fb8c32c460bafad8c8eb7ce3e2 SHA1 0711c0026e14744f1176455719009f4d3450ab8a SHA256 1cca19e73984941f71d031d1c6c9a53eea0453d06c356d70ac5fcf528dcfeca7 +EBUILD opera-10.70_pre9071.ebuild 5176 RMD160 0c9c281da80c7d03d837048e8284856727242bf7 SHA1 e836890b7b36c9abf917878223f1d5ff6a101272 SHA256 ec08f7dad0a327f15ca1be3e2f4a89d1c15eeec98abf43ca557a32d28efaac34 +MISC ChangeLog 107291 RMD160 e2366339dbc7f0a17fe565de835f18e7f75fa872 SHA1 eedc510a432981141f9186a2059c63216ba6b2ba SHA256 2004c8ee173bcc3cd35596417481c3dcc3637e9321c1ef22a0d4771f47c1b94e MISC metadata.xml 651 RMD160 5b15e2f22dc49ee158b4c76f4760219c1f85c096 SHA1 1de6dff612ef2667f194ed57d352e09a0879fbc1 SHA256 84accea33d9ad1436d9a425ddf5de328d31af559b7c9764d54546d3b357c7a10 diff --git a/www-client/opera/opera-10.70_pre9071.ebuild b/www-client/opera/opera-10.70_pre9071.ebuild new file mode 100644 index 000000000000..7dcb2b604cb2 --- /dev/null +++ b/www-client/opera/opera-10.70_pre9071.ebuild @@ -0,0 +1,201 @@ +# 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-10.70_pre9071.ebuild,v 1.1 2010/10/15 15:15:41 jer Exp $ + +EAPI="2" + +inherit eutils multilib + +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="mirror test" + +O_PWD="This-Is-Not-Yet-11.00-So-No-Extentions-Yet" +O_V="${PV/_pre/-}" +O_P="${PN}-${O_V}" +O_HTTP="http://snapshot.opera.com/" +O_U="${O_HTTP}unix/${O_PWD}_${O_V}/" + +SRC_URI=" + amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 ) + x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 ) + x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 ) +" + +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" + +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 "license directory" (bug #315473) + rm -rf share/doc/opera + + # 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 'export OPERA_PERSONALDIR="${HOME}/.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 +} |