From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- www-client/opera/Manifest | 6 + www-client/opera/metadata.xml | 17 ++ www-client/opera/opera-12.16_p1860-r1.ebuild | 244 +++++++++++++++++++++++++++ www-client/opera/opera-30.0.1835.125.ebuild | 84 +++++++++ www-client/opera/opera-31.0.1889.99.ebuild | 84 +++++++++ 5 files changed, 435 insertions(+) create mode 100644 www-client/opera/Manifest create mode 100644 www-client/opera/metadata.xml create mode 100644 www-client/opera/opera-12.16_p1860-r1.ebuild create mode 100644 www-client/opera/opera-30.0.1835.125.ebuild create mode 100644 www-client/opera/opera-31.0.1889.99.ebuild (limited to 'www-client/opera') diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest new file mode 100644 index 000000000000..752e5059d8a4 --- /dev/null +++ b/www-client/opera/Manifest @@ -0,0 +1,6 @@ +DIST opera-12.16-1860.amd64.freebsd.tar.xz 13312684 SHA256 ecc001605c45baa4acf60e0182fb85df9011b2c0c1c34cc73f377f25c9110a59 SHA512 e08547a8c966ec64c00e7058cb17856c9e2174b8b6e327d3e8b4c69226c9d1a1ff98f07557b607d8db68811b8a4f94a349ec9c882b480a706d3f28f7430e5ff8 WHIRLPOOL 83241aa6eab0a646292fdbfe497e227b24e1c8122b6f61f6d47dc81597f07db25d73bd58c1e7ac1fe4455d7387afd99b0ffc8e2e7a995653ea96e0fa20db234b +DIST opera-12.16-1860.i386.freebsd.tar.xz 13385696 SHA256 dcd80ea7a8f090a47007fc630495817feeb167220b9a9bbffbf349687f3e29d3 SHA512 0bb2c0548765ea476cdb8be6c84faf1d60dddb5a2c08b7312027f4cd17fa8ebd4fbc1a97657bbcb0ac07733e5f3b340b181a307a778c38543140adbfe7f8b844 WHIRLPOOL 5703b2c736694cf6ffcf808872e72585b81c7fed9d2263d5679ee54f667f4eb6b9d34a73b80c8efc0a8640daf03da60dafa0defe0c560d3ef78f2a8a68cbb960 +DIST opera-12.16-1860.i386.linux.tar.xz 13154668 SHA256 df640656a52b7c714faf25de92d84992116ce8f82b7a67afc1121eb3c428489d SHA512 a13ec53311e3e78f35103a9dd5337c0e9a555362860213080211ee9d21de88fbd6aae03bed20b7515874d5a09dfbab108954213745fb82175f5e48e555152613 WHIRLPOOL ae1af6858847fe51dcac8cb076a67099846ad66b734ecf92780e953daec963754c9e4352e979a636eac70e785a62bd94e084124080d7fe0f59b420a99a2133cc +DIST opera-12.16-1860.x86_64.linux.tar.xz 14018800 SHA256 b3b5cada3829d2b3b0e2da25e9444ce9dff73dc6692586ce72cfd4f6431e639e SHA512 c1289f352ea5fc8133b105771f48fdc56ccd770920330b1a0ed939ff909abc68081447673572eabeb1aae6db5194b6ab35c93afad78a91d8f7a9a0f91e81ef8b WHIRLPOOL 539cdf43b4c8175c664fbf786b27ede1d33e58c44f75229a1a50612951136f526d646f3e0444b6cc69961259c3e3ef7dbf722b520abb4d4dbb98032c4de335d1 +DIST opera-stable_30.0.1835.125_amd64.deb 42222316 SHA256 762d1bfb8575c66d9528ebe77dd83c264c59598b9f972143f8c8d18aa9195a45 SHA512 c2c081b225fd327ad1697c52308dfc474ace6c692a94290079ef4f88262e59aae20cd93a7306a34abac96d0b226539b20d8a4a038f39c841e615f0bd20a68bcc WHIRLPOOL ddee6f69ebfa06434175530db7acbf8f08d323277ff84b27cb5ad6e008aa5c1922f84134edf9e627b8fb713a3efe77d2fabceaba900c455a294bd13ece477110 +DIST opera-stable_31.0.1889.99_amd64.deb 42518088 SHA256 51dc961957cd1b7169c6922f5433feee2320300f7c52f96bf349fa478b2b9745 SHA512 7acb4b03850925b1b3d9083cdb436f7d3de13d73e95baf68294343cc0af9da2e6217d6cd685cdc0acdea1bb1173fe06065d9c7f1eedde98b4c0e8e14cc196656 WHIRLPOOL 83e2af8acafd9ad0c69b8b667fadcb34c9b6a0cabcacfa8adcc1a1f96d9680395d9190c3319e27d4b205eea5e27f018bb862110e6a96f0d7da68cf92b7ac52f3 diff --git a/www-client/opera/metadata.xml b/www-client/opera/metadata.xml new file mode 100644 index 000000000000..30de8e3d5ae7 --- /dev/null +++ b/www-client/opera/metadata.xml @@ -0,0 +1,17 @@ + + + + +jer@gentoo.org +Jeroen Roovers + + +Opera is a graphical Web browser available on several platforms. The desktop +version runs on GNU/Linux and FreeBSD. Versions for Macintosh and +Windows are also available. + + +Install support libraries and runtime dependencies to support GTK+/GNOME desktop integration +Install support libraries and runtime dependencies to support KDE desktop integration + + diff --git a/www-client/opera/opera-12.16_p1860-r1.ebuild b/www-client/opera/opera-12.16_p1860-r1.ebuild new file mode 100644 index 000000000000..b206145f294c --- /dev/null +++ b/www-client/opera/opera-12.16_p1860-r1.ebuild @@ -0,0 +1,244 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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-12 LGPL-2 LGPL-3" +KEYWORDS="amd64 x86 ~amd64-fbsd ~x86-fbsd" +IUSE="elibc_FreeBSD gtk kde +gstreamer multilib" + +O_V="$(get_version_component_range 1-2)" # Version, i.e. 11.00 +O_B="$(get_version_component_range 3)" # Build number, i.e. 1156 + +# == Variables that often change == +# All other variables should be accounted for by _pre/_p + +O_K="noserch" # The key to the snapshot URL + +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 kk ko lt lv 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 +" # Supported linguas + +# == End of variables that often change == + +if [[ "pre${O_B/pre/}" = "${O_B}" ]]; then # snapshot: _pre + HOMEPAGE="http://my.opera.com/desktopteam/blog/" + + O_D="${O_K}_${O_V}-${O_B/pre}" # directory string + O_P="${PN}-${O_V}-${O_B/pre}" # package string + O_U="http://snapshot.opera.com/unix/" # base URI + + SRC_URI=" + amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz ) + amd64-fbsd? ( ${O_U}${O_D}/${O_P}.amd64.freebsd.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 ) + " +else # release: _p + O_D="${O_V/./}" # directory string + O_P="${PN}-${O_V}-${O_B/p}" # package string + O_U="mirror://opera/" # base URI + + SRC_URI=" + amd64? ( ${O_U}linux/${O_D}/${O_P}.x86_64.linux.tar.xz ) + amd64-fbsd? ( ${O_U}unix/${O_D}/${O_P}.amd64.freebsd.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 ) + " +fi + +for O_LINGUA in ${O_LINGUAS}; do + 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 ) + x11-libs/pango + x11-libs/pixman +" +KDERDEPEND=" + kde-base/kdelibs + dev-qt/qtcore:4 + dev-qt/qtgui:4 +" +GSTRDEPEND=" + dev-libs/glib:2 + dev-libs/libxml2 + media-libs/gst-plugins-base:0.10 + media-libs/gstreamer:0.10 + media-plugins/gst-plugins-meta:0.10 +" +RDEPEND=" + media-libs/fontconfig + media-libs/freetype + 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 + x11-misc/xdg-utils + gtk? ( ${GTKRDEPEND} ) + kde? ( ${KDERDEPEND} ) + gstreamer? ( ${GSTRDEPEND} ) +" + +OPREFIX="/usr/$(get_libdir)" +QA_PREBUILT="*" + +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 + 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 kde; then + rm lib/${PN}/liboperakde4.so || die + fi + if ! use gstreamer; then + rm -r lib/${PN}/gstreamer || die + fi + if use amd64 && ! use multilib; then + rm lib/${PN}/pluginwrapper/operapluginwrapper-ia32-linux || 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 libfreetype.so.9 to libfreetype.so.6 for Gentoo/FreeBSD, bug #477594 + if use elibc_FreeBSD; then + scanelf -qR -N libfreetype.so.9 -F "#N" lib/${PN}/ | \ + while read i; do + if [[ $(strings "$i" | fgrep -c libfreetype.so.9) -ne 1 ]]; + then + export SANITY_CHECK_LIBFREETYPE_FAILED=1 + break + fi + sed -i \ + "$i" \ + -e 's/libfreetype\.so\.9/libfreetype.so.6/g' + done + [[ "$SANITY_CHECK_LIBFREETYPE_FAILED" = "1" ]] && die + fi +} + +src_install() { + # We install into usr instead of opt as Opera does not support the latter + dodir /usr + if ! use elibc_FreeBSD; then + rm lib/${PN}/opera_autoupdatechecker || die + fi + 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 $( list-paxables $( find "${D}"/${OPREFIX}/${PN}/ ) ) +} + +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 +} diff --git a/www-client/opera/opera-30.0.1835.125.ebuild b/www-client/opera/opera-30.0.1835.125.ebuild new file mode 100644 index 000000000000..cc6ee2635ac7 --- /dev/null +++ b/www-client/opera/opera-30.0.1835.125.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +CHROMIUM_LANGS=" + af az be bg bn ca cs da de el en_GB en_US es_419 es fil fi fr_CA fr fy gd + hi hr hu id it ja kk ko lt lv me mk ms nb nl nn pa pl pt_BR pt_PT ro ru sk + sr sv sw ta te th tr uk uz vi zh_CN zh_TW zu +" +inherit chromium multilib unpacker + +DESCRIPTION="A fast and secure web browser" +HOMEPAGE="http://www.opera.com/" +LICENSE="OPERA-2014" +SLOT="0" +SRC_URI_BASE="http://get.geo.opera.com/pub/" +SRC_URI=" + amd64? ( "${SRC_URI_BASE}${PN}/desktop/${PV}/linux/${PN}-stable_${PV}_amd64.deb" ) +" +KEYWORDS="~amd64" + +RDEPEND=" + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + >=dev-libs/openssl-1.0.1:0 + gnome-base/gconf:2 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + net-misc/curl + net-print/cups + sys-apps/dbus + sys-libs/libcap + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango[X] +" + +QA_PREBUILT="*" +S=${WORKDIR} +OPERA_HOME="usr/$(get_libdir)/${PN}" + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die + rm -r usr/lib || die + + rm usr/bin/${PN} || die + + rm usr/share/doc/${PN}-stable/copyright || die + mv usr/share/doc/${PN}-stable usr/share/doc/${PF} || die + + pushd "${OPERA_HOME}/localization" > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die + + sed -i \ + -e 's|^TargetEnvironment|X-&|g' \ + usr/share/applications/${PN}.desktop || die +} + +src_install() { + mv * "${D}" || die + dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN} + fperms 4711 /usr/$(get_libdir)/${PN}/opera_sandbox +} diff --git a/www-client/opera/opera-31.0.1889.99.ebuild b/www-client/opera/opera-31.0.1889.99.ebuild new file mode 100644 index 000000000000..cc6ee2635ac7 --- /dev/null +++ b/www-client/opera/opera-31.0.1889.99.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +CHROMIUM_LANGS=" + af az be bg bn ca cs da de el en_GB en_US es_419 es fil fi fr_CA fr fy gd + hi hr hu id it ja kk ko lt lv me mk ms nb nl nn pa pl pt_BR pt_PT ro ru sk + sr sv sw ta te th tr uk uz vi zh_CN zh_TW zu +" +inherit chromium multilib unpacker + +DESCRIPTION="A fast and secure web browser" +HOMEPAGE="http://www.opera.com/" +LICENSE="OPERA-2014" +SLOT="0" +SRC_URI_BASE="http://get.geo.opera.com/pub/" +SRC_URI=" + amd64? ( "${SRC_URI_BASE}${PN}/desktop/${PV}/linux/${PN}-stable_${PV}_amd64.deb" ) +" +KEYWORDS="~amd64" + +RDEPEND=" + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + >=dev-libs/openssl-1.0.1:0 + gnome-base/gconf:2 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + net-misc/curl + net-print/cups + sys-apps/dbus + sys-libs/libcap + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango[X] +" + +QA_PREBUILT="*" +S=${WORKDIR} +OPERA_HOME="usr/$(get_libdir)/${PN}" + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die + rm -r usr/lib || die + + rm usr/bin/${PN} || die + + rm usr/share/doc/${PN}-stable/copyright || die + mv usr/share/doc/${PN}-stable usr/share/doc/${PF} || die + + pushd "${OPERA_HOME}/localization" > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die + + sed -i \ + -e 's|^TargetEnvironment|X-&|g' \ + usr/share/applications/${PN}.desktop || die +} + +src_install() { + mv * "${D}" || die + dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN} + fperms 4711 /usr/$(get_libdir)/${PN}/opera_sandbox +} -- cgit v1.2.3-65-gdbad