Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 08 Oct 2016 11:55:37
Message-Id: 1475925010.654709921bc38cf463437c7230c72fdbca471ff8.pacho@gentoo
1 commit: 654709921bc38cf463437c7230c72fdbca471ff8
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 8 11:10:10 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 8 11:10:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65470992
7
8 Remove masked for removal eclasses
9
10 eclass/common-lisp-common-2.eclass | 85 ------------------------
11 eclass/common-lisp-common-3.eclass | 87 -------------------------
12 eclass/mozilla-launcher.eclass | 128 -------------------------------------
13 3 files changed, 300 deletions(-)
14
15 diff --git a/eclass/common-lisp-common-2.eclass b/eclass/common-lisp-common-2.eclass
16 deleted file mode 100644
17 index 820d234..00000000
18 --- a/eclass/common-lisp-common-2.eclass
19 +++ /dev/null
20 @@ -1,85 +0,0 @@
21 -# Copyright 1999-2012 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -#
25 -# @DEAD
26 -# This eclass is deprecated and no longer used. It will be removed
27 -# in 30 days, #551906.
28 -
29 -
30 -# Author Matthew Kennedy <mkennedy@g.o>
31 -#
32 -# Sundry code common to many Common Lisp related ebuilds.
33 -
34 -# Some handy constants
35 -
36 -inherit eutils multilib
37 -
38 -CLSOURCEROOT=/usr/share/common-lisp/source/
39 -CLSYSTEMROOT=/usr/share/common-lisp/systems/
40 -
41 -# Many of our Common Lisp ebuilds are either inspired by, or actually
42 -# use packages and files from the Debian project's archives.
43 -
44 -do-debian-credits() {
45 - docinto debian
46 - for i in copyright README.Debian changelog; do
47 - test -f $i && dodoc "${S}"/debian/${i}
48 - done
49 - docinto .
50 -}
51 -
52 -# BIG FAT HACK: Since the Portage emerge step kills file timestamp
53 -# information, we need to compensate by ensuring all FASL files are
54 -# more recent than their source files.
55 -
56 -# The following `impl-*-timestamp-hack' functions SHOULD NOT be used
57 -# outside of this eclass.
58 -
59 -impl-save-timestamp-hack() {
60 - local impl=$1
61 - dodir /usr/share/${impl}
62 - tar cpjf "${D}"/usr/share/${impl}/portage-timestamp-compensate -C "${D}"/usr/$(get_libdir)/${impl} .
63 -}
64 -
65 -impl-restore-timestamp-hack() {
66 - local impl=$1
67 - tar xjpfo /usr/share/${impl}/portage-timestamp-compensate -C /usr/$(get_libdir)/${impl}
68 -}
69 -
70 -impl-remove-timestamp-hack() {
71 - local impl=$1
72 - rm -rf /usr/$(get_libdir)/${impl} &>/dev/null || true
73 -}
74 -
75 -standard-impl-postinst() {
76 - local impl=$1
77 - unregister-common-lisp-implementation cmucl
78 - case ${impl} in
79 - cmucl|sbcl)
80 - impl-restore-timestamp-hack ${impl}
81 - ;;
82 - *)
83 - ;;
84 - esac
85 - register-common-lisp-implementation ${impl}
86 -}
87 -
88 -standard-impl-postrm() {
89 - local impl=$1 impl_binary=$2
90 - if [ ! -x ${impl_binary} ]; then
91 - case ${impl} in
92 - cmucl|sbcl)
93 - impl-remove-timestamp-hack ${impl}
94 - ;;
95 - *)
96 - ;;
97 - esac
98 - rm -rf /var/cache/common-lisp-controller/*/${impl}
99 - fi
100 -}
101 -
102 -# Local Variables: ***
103 -# mode: shell-script ***
104 -# tab-width: 4 ***
105 -# End: ***
106
107 diff --git a/eclass/common-lisp-common-3.eclass b/eclass/common-lisp-common-3.eclass
108 deleted file mode 100644
109 index d61d19e..00000000
110 --- a/eclass/common-lisp-common-3.eclass
111 +++ /dev/null
112 @@ -1,87 +0,0 @@
113 -# Copyright 1999-2012 Gentoo Foundation
114 -# Distributed under the terms of the GNU General Public License v2
115 -# $Id$
116 -
117 -# @DEAD
118 -# This eclass is deprecated and no longer used. It will be removed
119 -# in 30 days, #551906.
120 -
121 -#
122 -# Author Matthew Kennedy <mkennedy@g.o>
123 -#
124 -# Sundry code common to many Common Lisp related ebuilds. Some
125 -# implementation use the Portage time stamp hack to ensure their
126 -# installed files have the right modification time relative to each
127 -# other.
128 -
129 -inherit eutils multilib
130 -
131 -CLSOURCEROOT=/usr/share/common-lisp/source/
132 -CLSYSTEMROOT=/usr/share/common-lisp/systems/
133 -
134 -# Many of our Common Lisp ebuilds are either inspired by, or actually
135 -# use packages and files from the Debian project's archives.
136 -
137 -do-debian-credits() {
138 - docinto debian
139 - for i in copyright README.Debian changelog; do
140 - test -f $i && dodoc "${S}"/debian/${i}
141 - done
142 - docinto .
143 -}
144 -
145 -# BIG FAT HACK: Since the Portage emerge step kills file timestamp
146 -# information, we need to compensate by ensuring all FASL files are
147 -# more recent than their source files.
148 -
149 -# The following `impl-*-timestamp-hack' functions SHOULD NOT be used
150 -# outside of this eclass.
151 -
152 -# Bug https://bugs.gentoo.org/show_bug.cgi?id=16162 should remove the
153 -# need for this hack.
154 -
155 -impl-save-timestamp-hack() {
156 - local impl=$1
157 - dodir /usr/share/${impl}
158 - tar cpjf "${D}"/usr/share/${impl}/portage-timestamp-compensate -C "${D}"/usr/$(get_libdir)/${impl} .
159 -}
160 -
161 -impl-restore-timestamp-hack() {
162 - local impl=$1
163 - tar xjpfo /usr/share/${impl}/portage-timestamp-compensate -C /usr/$(get_libdir)/${impl}
164 -}
165 -
166 -impl-remove-timestamp-hack() {
167 - local impl=$1
168 - rm -rf /usr/$(get_libdir)/${impl} &>/dev/null || true
169 -}
170 -
171 -standard-impl-postinst() {
172 - local impl=$1
173 - case ${impl} in
174 - cmucl|sbcl)
175 - impl-restore-timestamp-hack ${impl}
176 - ;;
177 - *)
178 - ;;
179 - esac
180 -}
181 -
182 -standard-impl-postrm() {
183 - local impl=$1 impl_binary=$2
184 - if [ ! -x ${impl_binary} ]; then
185 - case ${impl} in
186 - cmucl|sbcl)
187 - impl-remove-timestamp-hack ${impl}
188 - ;;
189 - *)
190 - ;;
191 - esac
192 - rm -rf /var/cache/common-lisp-controller/*/${impl}
193 - fi
194 -}
195 -
196 -# Local Variables: ***
197 -# mode: shell-script ***
198 -# tab-width: 4 ***
199 -# End: ***
200
201 diff --git a/eclass/mozilla-launcher.eclass b/eclass/mozilla-launcher.eclass
202 deleted file mode 100644
203 index 5b5ba1b..00000000
204 --- a/eclass/mozilla-launcher.eclass
205 +++ /dev/null
206 @@ -1,128 +0,0 @@
207 -# Copyright 1999-2009 Gentoo Foundation
208 -# Distributed under the terms of the GNU General Public License v2
209 -# $Id$
210 -
211 -# @DEAD
212 -# This eclass is deprecated and no longer used. It will be removed
213 -# in 30 days, #551916.
214 -
215 -
216 -inherit nsplugins multilib
217 -
218 -if [[ ${PN: -4} != "-bin" ]] ; then
219 - IUSE="moznopango"
220 -fi
221 -
222 -# update_mozilla_launcher_symlinks
223 -# --------------------------------
224 -# Create or remove the following symlinks in /usr/bin:
225 -#
226 -# firefox -> firefox-bin
227 -# thunderbird -> thunderbird-bin
228 -# mozilla -> mozilla-bin
229 -# sunbird -> sunbird-bin
230 -# seamonkey -> seamonkey-bin
231 -#
232 -# The symlinks are removed if they're found to be dangling. They are
233 -# created according to the following rules:
234 -#
235 -# - If there's a -bin symlink in /usr/bin, and no corresponding
236 -# non-bin symlink, then create one.
237 -#
238 -# - Can't do this in src_install otherwise it overwrites the one
239 -# for the non-bin package.
240 -#
241 -# - Link to the -bin symlink so it's easier to detect when to
242 -# remove the symlink.
243 -#
244 -# NOTE: This eclass does *not* manage the launcher stubs in /usr/bin except
245 -# when a -bin package is installed and the corresponding from-source
246 -# package is not installed. The usual stubs are actually installed in
247 -# src_install so they are included in the package inventory.
248 -#
249 -update_mozilla_launcher_symlinks() {
250 - local f browsers="mozilla firefox thunderbird sunbird seamonkey"
251 - cd "${ROOT}"/usr/bin
252 -
253 - # Remove launcher symlinks that no longer apply
254 -
255 - for f in ${browsers}; do
256 - if [[ -L ${f} && ! -f ${f} ]]; then
257 - einfo "Removing dangling ${f} launcher"
258 - rm -f ${f}
259 - fi
260 - done
261 -
262 - # Create new symlinks
263 -
264 - for f in ${browsers}; do
265 - if [[ -e ${f}-bin && ! -e ${f} ]]; then
266 - einfo "Adding link from ${f}-bin to ${f}"
267 - ln -s ${f}-bin ${f}
268 - fi
269 - done
270 -}
271 -
272 -# install_mozilla_launcher_stub name libdir
273 -# -----------------------------------------
274 -# Install a stub called /usr/bin/$name that executes mozilla-launcher
275 -#
276 -# Note: $PLUGINS_DIR comes from nsplugins (specifically the deprecated section).
277 -#
278 -install_mozilla_launcher_stub() {
279 - [[ -n $2 ]] || die "install_launcher_stub requires two arguments"
280 - declare name=$1
281 - declare libdir=$2
282 -
283 - # If we use xulrunner, the name of the binary should be the same
284 - if [[ ${name: -3} == "xul" ]]; then
285 - name=${name/xul/}
286 - declare appname=xulrunner
287 - declare xulparams="export XUL_PARAMS=${libdir}/application.ini"
288 - declare libdir="/usr/$(get_libdir)/xulrunner-1.9"
289 - else
290 - declare appname=${name}
291 - fi
292 -
293 - dodir /usr/bin
294 -
295 - if [[ ${PN: -4} == "-bin" ]] || ! use moznopango; then
296 - cat <<EOF >"${D}"/usr/bin/${name}
297 -#!/bin/sh
298 -#
299 -# Stub script to run mozilla-launcher. We used to use a symlink here
300 -# but OOo brokenness makes it necessary to use a stub instead:
301 -# https://bugs.gentoo.org/show_bug.cgi?id=78890
302 -
303 -export MOZILLA_LAUNCHER=${appname}
304 -export MOZILLA_LIBDIR=${libdir}
305 -export MOZ_PLUGIN_PATH=\${MOZ_PLUGIN_PATH:-/usr/$(get_libdir)/$PLUGINS_DIR}
306 -${xulparams}
307 -exec /usr/libexec/mozilla-launcher "\$@"
308 -EOF
309 - else
310 - cat <<EOF >"${D}"/usr/bin/${name}
311 -#!/bin/sh
312 -#
313 -# Stub script to run mozilla-launcher. We used to use a symlink here
314 -# but OOo brokenness makes it necessary to use a stub instead:
315 -# https://bugs.gentoo.org/show_bug.cgi?id=78890
316 -
317 -export MOZILLA_LAUNCHER=${appname}
318 -export MOZILLA_LIBDIR=${libdir}
319 -export MOZ_PLUGIN_PATH=\${MOZ_PLUGIN_PATH:-/usr/$(get_libdir)/$PLUGINS_DIR}
320 -export MOZ_DISABLE_PANGO=1
321 -${xulparams}
322 -exec /usr/libexec/mozilla-launcher "\$@"
323 -EOF
324 - fi
325 - chmod 0755 "${D}"/usr/bin/${name}
326 -}
327 -
328 -warn_mozilla_launcher_stub() {
329 - elog "Not all locales support the disabling of pango."
330 - elog "If your locale does not support disabling pango,"
331 - elog "please open a bug report on https://bugs.gentoo.org"
332 - elog "Then we can filter around the problem with those"
333 - elog "specific locales."
334 -}