Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/opera/
Date: Tue, 27 Aug 2019 17:36:27
Message-Id: 1566927381.b3a0e18ff342920f240470dddc347471f35a7c9b.jer@gentoo
1 commit: b3a0e18ff342920f240470dddc347471f35a7c9b
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 27 17:35:45 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 27 17:36:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3a0e18f
7
8 www-client/opera: Old
9
10 Package-Manager: Portage-2.3.73, Repoman-2.3.17
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 www-client/opera/Manifest | 4 -
14 www-client/opera/metadata.xml | 3 -
15 www-client/opera/opera-12.16_p1860-r1.ebuild | 238 ---------------------------
16 3 files changed, 245 deletions(-)
17
18 diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest
19 index 16c51fc52f9..9f6a63551a4 100644
20 --- a/www-client/opera/Manifest
21 +++ b/www-client/opera/Manifest
22 @@ -1,5 +1 @@
23 -DIST opera-12.16-1860.amd64.freebsd.tar.xz 13312684 BLAKE2B 2c4cd52a07999c5beabec8474d6d855d04e06b4e3264ff1f279822e7cf89311fb49cab9254f4c2d83fa01e98c7597372cf439c4d5b9e9b8a6a0b1f444c4e67e8 SHA512 e08547a8c966ec64c00e7058cb17856c9e2174b8b6e327d3e8b4c69226c9d1a1ff98f07557b607d8db68811b8a4f94a349ec9c882b480a706d3f28f7430e5ff8
24 -DIST opera-12.16-1860.i386.freebsd.tar.xz 13385696 BLAKE2B 35fef5a5d1784941ce11ff3fed440d9c8f83ce5f9a0a8aad3f68deb470a7d82accfe7c9c93be225b458c0fc8e738ca7841d3d14abcaa201801321f3280f2b58f SHA512 0bb2c0548765ea476cdb8be6c84faf1d60dddb5a2c08b7312027f4cd17fa8ebd4fbc1a97657bbcb0ac07733e5f3b340b181a307a778c38543140adbfe7f8b844
25 -DIST opera-12.16-1860.i386.linux.tar.xz 13154668 BLAKE2B 7f9ef54f44bc143c13173bce92543351c39288058455baf3fde19f9f8766c9acd72971216c8c340fd89e918f18e89320eb8d13c4be9ec71635e2073c94c90067 SHA512 a13ec53311e3e78f35103a9dd5337c0e9a555362860213080211ee9d21de88fbd6aae03bed20b7515874d5a09dfbab108954213745fb82175f5e48e555152613
26 -DIST opera-12.16-1860.x86_64.linux.tar.xz 14018800 BLAKE2B e0cb727ea79868d1c3c692d445fc8949f554c3bbe2bf3c9f222885891458cab7af1a29096cd3caf6936e83068841dda4bff5b8a17eb55a86bebe39ce2b270183 SHA512 c1289f352ea5fc8133b105771f48fdc56ccd770920330b1a0ed939ff909abc68081447673572eabeb1aae6db5194b6ab35c93afad78a91d8f7a9a0f91e81ef8b
27 DIST opera-stable_63.0.3368.53_amd64.deb 60374636 BLAKE2B 4cb6726f275504972d5d97b8fdde1d96f9d122a31e241914cd3f62a0e2eb94d25ada8e1ad10b4416456dfd173d01e680134a94ae2a68b1ab087fbe78d36558d1 SHA512 f3d89f4a7857b76cab2480efb2c43d9997b110a049a9a8a84509d05a35d691e12b9ffd58e5e85f2ee6520ee172662008d6d021653807df49638931ac1e7f6eb9
28
29 diff --git a/www-client/opera/metadata.xml b/www-client/opera/metadata.xml
30 index 2078dce6390..2ac7edc2a6f 100644
31 --- a/www-client/opera/metadata.xml
32 +++ b/www-client/opera/metadata.xml
33 @@ -10,7 +10,4 @@ Opera is a graphical Web browser available on several platforms. The desktop
34 version runs on GNU/Linux and FreeBSD. Versions for Macintosh and
35 Windows are also available.
36 </longdescription>
37 -<use>
38 -<flag name="gtk">Install support libraries and runtime dependencies to support GTK+/GNOME desktop integration</flag>
39 -</use>
40 </pkgmetadata>
41
42 diff --git a/www-client/opera/opera-12.16_p1860-r1.ebuild b/www-client/opera/opera-12.16_p1860-r1.ebuild
43 deleted file mode 100644
44 index 9ea33719af1..00000000000
45 --- a/www-client/opera/opera-12.16_p1860-r1.ebuild
46 +++ /dev/null
47 @@ -1,238 +0,0 @@
48 -# Copyright 1999-2018 Gentoo Foundation
49 -# Distributed under the terms of the GNU General Public License v2
50 -
51 -EAPI=6
52 -inherit eutils gnome2-utils multilib pax-utils versionator xdg-utils
53 -
54 -DESCRIPTION="A fast and secure web browser and Internet suite"
55 -HOMEPAGE="https://www.opera.com/"
56 -
57 -SLOT="0"
58 -LICENSE="OPERA-12 LGPL-2 LGPL-3"
59 -KEYWORDS="amd64 x86 ~amd64-fbsd ~x86-fbsd"
60 -IUSE="elibc_FreeBSD gtk multilib"
61 -
62 -O_V="$(get_version_component_range 1-2)" # Version, i.e. 11.00
63 -O_B="$(get_version_component_range 3)" # Build number, i.e. 1156
64 -
65 -# == Variables that often change ==
66 -# All other variables should be accounted for by _pre/_p
67 -
68 -O_K="noserch" # The key to the snapshot URL
69 -
70 -O_LINGUAS="
71 - af ar az be bg bn cnr cs da de el en-GB es-419 es-ES et fa fi fr fr-CA fy
72 - gd he hi hr hu id it ja ka kk ko lt lv mk ms nb nl nn pa pl pt pt-BR ro ru
73 - sk sr sv sw ta te th tl tr uk ur uz vi zh-CN zh-TW zu
74 -" # Supported linguas
75 -
76 -# == End of variables that often change ==
77 -
78 -if [[ "pre${O_B/pre/}" = "${O_B}" ]]; then # snapshot: _pre
79 - HOMEPAGE="https://my.opera.com/desktopteam/blog/"
80 -
81 - O_D="${O_K}_${O_V}-${O_B/pre}" # directory string
82 - O_P="${PN}-${O_V}-${O_B/pre}" # package string
83 - O_U="https://snapshot.opera.com/unix/" # base URI
84 -
85 - SRC_URI="
86 - amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz )
87 - amd64-fbsd? ( ${O_U}${O_D}/${O_P}.amd64.freebsd.tar.xz )
88 - x86? ( ${O_U}${O_D}/${O_P}.i386.linux.tar.xz )
89 - x86-fbsd? ( ${O_U}${O_D}/${O_P}.i386.freebsd.tar.xz )
90 - "
91 -else # release: _p
92 - O_D="${O_V/./}" # directory string
93 - O_P="${PN}-${O_V}-${O_B/p}" # package string
94 - O_U="mirror://opera/" # base URI
95 -
96 - SRC_URI="
97 - amd64? ( ${O_U}linux/${O_D}/${O_P}.x86_64.linux.tar.xz )
98 - amd64-fbsd? ( ${O_U}unix/${O_D}/${O_P}.amd64.freebsd.tar.xz )
99 - x86? ( ${O_U}linux/${O_D}/${O_P}.i386.linux.tar.xz )
100 - x86-fbsd? ( ${O_U}unix/${O_D}/${O_P}.i386.freebsd.tar.xz )
101 - "
102 -fi
103 -
104 -for O_LINGUA in ${O_LINGUAS}; do
105 - IUSE+=" l10n_${O_LINGUA}"
106 -done
107 -
108 -DEPEND="
109 - >=sys-apps/sed-4
110 - app-arch/xz-utils
111 -"
112 -GTKRDEPEND="
113 - dev-libs/atk
114 - dev-libs/glib:2
115 - x11-libs/cairo
116 - x11-libs/gdk-pixbuf
117 - gtk? ( x11-libs/gtk+:2 )
118 - x11-libs/pango
119 - x11-libs/pixman
120 -"
121 -RDEPEND="
122 - media-libs/fontconfig
123 - media-libs/freetype
124 - sys-libs/zlib
125 - virtual/opengl
126 - x11-libs/libICE
127 - x11-libs/libSM
128 - x11-libs/libX11
129 - x11-libs/libXext
130 - x11-libs/libXft
131 - x11-libs/libXrender
132 - x11-libs/libXt
133 - x11-misc/xdg-utils
134 - gtk? ( ${GTKRDEPEND} )
135 -"
136 -
137 -QA_PREBUILT="*"
138 -
139 -pkg_setup() {
140 - OPREFIX="/usr/$(get_abi_LIBDIR)"
141 -}
142 -
143 -src_unpack() {
144 - unpack ${A}
145 - mv -v ${PN}* "${S}" || die
146 -}
147 -
148 -src_prepare() {
149 - default
150 -
151 - local LNGDIR="share/${PN}/locale"
152 -
153 - # Count linguas
154 - count() { echo ${#}; }
155 - local lingua_count=$(count ${O_LINGUAS} en)
156 - local locale_count=$(count ${LNGDIR}/*)
157 - [[ ${lingua_count} = ${locale_count} ]] \
158 - || die "Number of LINGUAS does not match number of locales"
159 - unset count
160 -
161 - # Remove unwanted linguas
162 - for LINGUA in ${O_LINGUAS}; do
163 - if ! use l10n_${LINGUA}; then
164 - # Remap codes for Montenegrin and Spanish (Latin America)
165 - case ${LINGUA} in
166 - cnr) LINGUA=me ;;
167 - es-419) LINGUA=es-LA ;;
168 - esac
169 - LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
170 - rm -r "${LINGUA}" || die "The list of linguas needs to be fixed"
171 - fi
172 - done
173 -
174 - # Remove doc directory but keep the LICENSE under another name (bug #315473)
175 - mv share/doc/${PN}/LICENSE share/${PN}/defaults/license.txt
176 - rm -rf share/doc
177 - for locale in share/${PN}/locale/*; do
178 - rm -f "${locale}/license.txt"
179 - ln -sn /usr/share/${PN}/defaults/license.txt "${locale}/license.txt" \
180 - || die
181 - done
182 -
183 - # Remove package directory
184 - rm -rf share/${PN}/package
185 -
186 - rm -r lib/${PN}/gstreamer || die
187 -
188 - # Optional libraries
189 - if ! use gtk; then
190 - rm lib/${PN}/liboperagtk2.so || die
191 - fi
192 -
193 - rm lib/${PN}/liboperakde4.so || die
194 -
195 - if use amd64 && ! use multilib; then
196 - rm lib/${PN}/pluginwrapper/operapluginwrapper-ia32-linux || die
197 - fi
198 -
199 - # Unzip the man pages before sedding
200 - gunzip share/man/man1/* || die
201 -
202 - local OPERA_SUFFIX= OPERA__SUFFIX= OPERAU_SUFFIX=
203 - if [[ ${PN} = opera-next ]]; then
204 - OPERA_SUFFIX="-next"
205 - OPERA__SUFFIX=" Next"
206 - OPERA_USUFFIX="-NEXT"
207 - fi
208 -
209 - # Replace PREFIX, SUFFIX and PN in various files
210 - sed -i \
211 - -e "s:@@{PREFIX}:/usr:g" \
212 - -e "s:@@{SUFFIX}:${OPERA_SUFFIX}:g" \
213 - -e "s:@@{_SUFFIX}:${OPERA__SUFFIX}:g" \
214 - -e "s:@@{USUFFIX}:${OPERA_USUFFIX}:g" \
215 - share/man/man1/* \
216 - share/mime/packages/* \
217 - share/applications/${PN}-*.desktop \
218 - || die
219 -
220 - # Create /usr/bin/opera wrapper
221 - echo '#!/bin/sh' > ${PN}
222 - echo 'export OPERA_DIR="/usr/share/'"${PN}"'"' >> ${PN}
223 - echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \
224 - >> ${PN}
225 - echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN}
226 -
227 - # Change libfreetype.so.9 to libfreetype.so.6 for Gentoo/FreeBSD, bug #477594
228 - if use elibc_FreeBSD; then
229 - scanelf -qR -N libfreetype.so.9 -F "#N" lib/${PN}/ | \
230 - while read i; do
231 - if [[ $(strings "$i" | fgrep -c libfreetype.so.9) -ne 1 ]];
232 - then
233 - export SANITY_CHECK_LIBFREETYPE_FAILED=1
234 - break
235 - fi
236 - sed -i \
237 - "$i" \
238 - -e 's/libfreetype\.so\.9/libfreetype.so.6/g'
239 - done
240 - [[ "$SANITY_CHECK_LIBFREETYPE_FAILED" = "1" ]] && die
241 - fi
242 -}
243 -
244 -src_install() {
245 - # We install into usr instead of opt as Opera does not support the latter
246 - dodir /usr
247 - if ! use elibc_FreeBSD; then
248 - rm lib/${PN}/opera_autoupdatechecker || die
249 - fi
250 - mv lib/ "${D}/${OPREFIX}" || die
251 - mv share/ "${D}/usr/" || die
252 -
253 - # Install startup scripts
254 - dobin ${PN}
255 -
256 - # Stop revdep-rebuild from checking opera binaries
257 - dodir /etc/revdep-rebuild
258 - echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" \
259 - > "${D}"/etc/revdep-rebuild/90${PN}
260 -
261 - # Set PaX markings for hardened/PaX (bug #344267)
262 - pax-mark m $( list-paxables $( find "${D}"/${OPREFIX}/${PN}/ ) )
263 -}
264 -
265 -pkg_preinst() {
266 - gnome2_icon_savelist
267 -}
268 -
269 -pkg_postinst() {
270 - if use elibc_FreeBSD; then
271 - elog
272 - elog "To improve shared memory usage please set:"
273 - elog "$ sysctl kern.ipc.shm_allow_removed=1"
274 - fi
275 -
276 - # Update desktop file database and gtk icon cache (bug #334993)
277 - gnome2_icon_cache_update
278 - xdg_desktop_database_update
279 -}
280 -
281 -pkg_postrm() {
282 - # Update desktop file database and gtk icon cache (bug #334993)
283 - gnome2_icon_cache_update
284 - xdg_desktop_database_update
285 -}