1 |
commit: 69403c7d13a60b28ba27e1f6b29a70d24e28afd5 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 04:41:12 2016 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 1 00:07:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69403c7d |
7 |
|
8 |
dev-lang/perl: Remove unused 5.024 eblits |
9 |
|
10 |
All these files were used by the perl-5.24.0 ebuild |
11 |
and you can now see how crazy it all was. |
12 |
|
13 |
Package-Manager: portage-2.3.1 |
14 |
|
15 |
dev-lang/perl/files/eblits/common-v50240001.eblit | 71 -------- |
16 |
.../perl/files/eblits/pkg_postinst-v50240001.eblit | 36 ---- |
17 |
.../perl/files/eblits/pkg_postrm-v50240001.eblit | 7 - |
18 |
.../perl/files/eblits/pkg_setup-v50240001.eblit | 74 -------- |
19 |
.../files/eblits/src_configure-v50240001.eblit | 188 --------------------- |
20 |
.../perl/files/eblits/src_install-v50240001.eblit | 51 ------ |
21 |
.../perl/files/eblits/src_prepare-v50240001.eblit | 72 -------- |
22 |
7 files changed, 499 deletions(-) |
23 |
|
24 |
diff --git a/dev-lang/perl/files/eblits/common-v50240001.eblit b/dev-lang/perl/files/eblits/common-v50240001.eblit |
25 |
deleted file mode 100644 |
26 |
index 2a8d815..00000000 |
27 |
--- a/dev-lang/perl/files/eblits/common-v50240001.eblit |
28 |
+++ /dev/null |
29 |
@@ -1,71 +0,0 @@ |
30 |
-# Copyright 1999-2012 Gentoo Foundation |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
-# $Id$ |
33 |
- |
34 |
-src_remove_dual_file() { |
35 |
- local i pkg ver |
36 |
- pkg="$1" |
37 |
- ver="$2" |
38 |
- shift 2 |
39 |
- case "${EBUILD_PHASE:-none}" in |
40 |
- postinst|postrm) |
41 |
- for i in "$@" ; do |
42 |
- alternatives_auto_makesym "${i}" "${i}-[0-9]*" |
43 |
- done |
44 |
- ;; |
45 |
- setup) |
46 |
- for i in "$@" ; do |
47 |
- if [[ -f ${EROOT}${i} && ! -h ${EROOT}${i} ]] ; then |
48 |
- has_version ${pkg} && ewarn "You must reinstall ${pkg} !" |
49 |
- break |
50 |
- fi |
51 |
- done |
52 |
- ;; |
53 |
- install) |
54 |
- for i in "$@" ; do |
55 |
- if ! [[ -f "${ED}"${i} ]] ; then |
56 |
- ewarn "${i} does not exist!" |
57 |
- continue |
58 |
- fi |
59 |
- mv "${ED}"${i}{,-${ver}-${P}} || die |
60 |
- done |
61 |
- ;; |
62 |
- esac |
63 |
-} |
64 |
- |
65 |
-src_remove_dual_man() { |
66 |
- local i pkg ver ff |
67 |
- pkg="$1" |
68 |
- ver="$2" |
69 |
- shift 2 |
70 |
- case "${EBUILD_PHASE:-none}" in |
71 |
- postinst|postrm) |
72 |
- for i in "$@" ; do |
73 |
- ff=`echo "${EROOT}${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}}"*` |
74 |
- ff=${ff##*${i#${i%.[0-9]}}} |
75 |
- alternatives_auto_makesym "${i}${ff}" "${i%.[0-9]}-[0-9]*" |
76 |
- done |
77 |
- ;; |
78 |
- install) |
79 |
- for i in "$@" ; do |
80 |
- if ! [[ -f "${ED}"${i} ]] ; then |
81 |
- ewarn "${i} does not exist!" |
82 |
- continue |
83 |
- fi |
84 |
- mv "${ED}"${i} "${ED}"${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}} || die |
85 |
- done |
86 |
- ;; |
87 |
- esac |
88 |
-} |
89 |
- |
90 |
-src_remove_dual() { |
91 |
- local i pkg ver |
92 |
- pkg="$1" |
93 |
- ver="$2" |
94 |
- shift 2 |
95 |
- for i in "$@" ; do |
96 |
- src_remove_dual_file "${pkg}" "${ver}" "/usr/bin/${i}" |
97 |
- src_remove_dual_man "${pkg}" "${ver}" "/usr/share/man/man1/${i}.1" |
98 |
- done |
99 |
-} |
100 |
- |
101 |
|
102 |
diff --git a/dev-lang/perl/files/eblits/pkg_postinst-v50240001.eblit b/dev-lang/perl/files/eblits/pkg_postinst-v50240001.eblit |
103 |
deleted file mode 100644 |
104 |
index 2603ef4..00000000 |
105 |
--- a/dev-lang/perl/files/eblits/pkg_postinst-v50240001.eblit |
106 |
+++ /dev/null |
107 |
@@ -1,36 +0,0 @@ |
108 |
-# Copyright 1999-2015 Gentoo Foundation |
109 |
-# Distributed under the terms of the GNU General Public License v2 |
110 |
-# $Id$ |
111 |
- |
112 |
-eblit-perl-pkg_postinst() { |
113 |
- dual_scripts |
114 |
- |
115 |
- if [[ "${ROOT}" = "/" ]] ; then |
116 |
- local INC DIR file |
117 |
- INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${SHORT_PV}'|etc|local|perl$/; print "$line\n" }') |
118 |
- einfo "Removing old .ph files" |
119 |
- for DIR in ${INC} ; do |
120 |
- if [[ -d "${DIR}" ]] ; then |
121 |
- for file in $(find "${DIR}" -name "*.ph" -type f ) ; do |
122 |
- rm -f "${file}" |
123 |
- einfo "<< ${file}" |
124 |
- done |
125 |
- fi |
126 |
- done |
127 |
- # Silently remove the now empty dirs |
128 |
- for DIR in ${INC} ; do |
129 |
- if [[ -d "${DIR}" ]] ; then |
130 |
- find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null |
131 |
- fi |
132 |
- done |
133 |
- |
134 |
-# einfo "Converting C header files to the corresponding Perl format (ignore any error)" |
135 |
-# # Prefix note: unprefixed as this is all kernel/libc stuff that we never provide |
136 |
-# pushd /usr/include >/dev/null |
137 |
-# h2ph -Q -a -d "${EPREFIX}"${ARCH_LIB} \ |
138 |
-# asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h \ |
139 |
-# sys/socket.h sys/time.h wait.h sysexits.h |
140 |
-# popd >/dev/null |
141 |
- |
142 |
- fi |
143 |
-} |
144 |
|
145 |
diff --git a/dev-lang/perl/files/eblits/pkg_postrm-v50240001.eblit b/dev-lang/perl/files/eblits/pkg_postrm-v50240001.eblit |
146 |
deleted file mode 100644 |
147 |
index ed98a86..00000000 |
148 |
--- a/dev-lang/perl/files/eblits/pkg_postrm-v50240001.eblit |
149 |
+++ /dev/null |
150 |
@@ -1,7 +0,0 @@ |
151 |
-# Copyright 1999-2015 Gentoo Foundation |
152 |
-# Distributed under the terms of the GNU General Public License v2 |
153 |
-# $Id$ |
154 |
- |
155 |
-eblit-perl-pkg_postrm(){ |
156 |
- dual_scripts |
157 |
-} |
158 |
|
159 |
diff --git a/dev-lang/perl/files/eblits/pkg_setup-v50240001.eblit b/dev-lang/perl/files/eblits/pkg_setup-v50240001.eblit |
160 |
deleted file mode 100644 |
161 |
index 8757944..00000000 |
162 |
--- a/dev-lang/perl/files/eblits/pkg_setup-v50240001.eblit |
163 |
+++ /dev/null |
164 |
@@ -1,74 +0,0 @@ |
165 |
-# Copyright 1999-2016 Gentoo Foundation |
166 |
-# Distributed under the terms of the GNU General Public License v2 |
167 |
-# $Id$ |
168 |
- |
169 |
-eblit-perl-pkg_setup() { |
170 |
- case ${CHOST} in |
171 |
- *-freebsd*) osname="freebsd" ;; |
172 |
- *-dragonfly*) osname="dragonfly" ;; |
173 |
- *-netbsd*) osname="netbsd" ;; |
174 |
- *-openbsd*) osname="openbsd" ;; |
175 |
- *-darwin*) osname="darwin" ;; |
176 |
- *-interix*) osname="interix" ;; |
177 |
- *-aix*) osname="aix" ;; |
178 |
- *) osname="linux" ;; |
179 |
- esac |
180 |
- |
181 |
- myarch="${CHOST%%-*}-${osname}" |
182 |
- if use debug ; then |
183 |
- myarch+="-debug" |
184 |
- fi |
185 |
- if use ithreads ; then |
186 |
- mythreading="-multi" |
187 |
- myarch+="-thread" |
188 |
- fi |
189 |
- |
190 |
- LIBPERL="libperl$(get_libname ${MY_PV} )" |
191 |
- PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}" |
192 |
- ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}" |
193 |
- SITE_LIB="/usr/local/$(get_libdir)/perl5/${MY_PV}" |
194 |
- SITE_ARCH="/usr/local/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}" |
195 |
- VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}" |
196 |
- VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}" |
197 |
- |
198 |
- if use ithreads ; then |
199 |
- echo "" |
200 |
- ewarn "THREADS WARNING" |
201 |
- ewarn "PLEASE NOTE: You are compiling ${MY_P} with interpreter-level threading enabled." |
202 |
- ewarn "Threading is not supported by all applications that compile against perl. You" |
203 |
- ewarn "use threading at your own discretion." |
204 |
- fi |
205 |
- check_rebuild |
206 |
- dual_scripts |
207 |
-} |
208 |
- |
209 |
-check_rebuild() { |
210 |
- if has_version "<dev-lang/perl-${SHORT_PV}" ; then |
211 |
- echo "" |
212 |
- ewarn "UPDATE THE PERL MODULES:" |
213 |
- ewarn "After updating dev-lang/perl the installed Perl modules" |
214 |
- ewarn "have to be re-installed. In most cases, this is done automatically" |
215 |
- ewarn "by the package manager, but subsequent steps are still recommended" |
216 |
- ewarn "to ensure system consistency." |
217 |
- ewarn |
218 |
- ewarn "You should start with a depclean to remove any unused perl dependencies" |
219 |
- ewarn "that may confuse portage in future. Regular depcleans are also encouraged" |
220 |
- ewarn "as part of your regular update cycle, as that will keep perl upgrades working." |
221 |
- ewarn "Recommended: emerge --depclean -va" |
222 |
- ewarn |
223 |
- ewarn "You should then call perl-cleaner to clean up any old files and trigger any" |
224 |
- ewarn "remaining rebuilds portage may have missed." |
225 |
- ewarn "Use: perl-cleaner --all" |
226 |
- elif has_version dev-lang/perl ; then |
227 |
- if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \ |
228 |
- ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \ |
229 |
- ( use debug && ! has_version dev-lang/perl[debug] ) || \ |
230 |
- ( ! use debug && has_version dev-lang/perl[debug] ) ; then |
231 |
- echo "" |
232 |
- ewarn "TOGGLED USE-FLAGS WARNING:" |
233 |
- ewarn "You changed one of the use-flags ithreads or debug." |
234 |
- ewarn "You must rebuild all perl-modules installed." |
235 |
- ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl" |
236 |
- fi |
237 |
- fi |
238 |
-} |
239 |
|
240 |
diff --git a/dev-lang/perl/files/eblits/src_configure-v50240001.eblit b/dev-lang/perl/files/eblits/src_configure-v50240001.eblit |
241 |
deleted file mode 100644 |
242 |
index 05fa86b..00000000 |
243 |
--- a/dev-lang/perl/files/eblits/src_configure-v50240001.eblit |
244 |
+++ /dev/null |
245 |
@@ -1,188 +0,0 @@ |
246 |
-# Copyright 1999-2014 Gentoo Foundation |
247 |
-# Distributed under the terms of the GNU General Public License v2 |
248 |
-# $Id$ |
249 |
- |
250 |
-myconf() { |
251 |
- # the myconf array is declared in src_configure |
252 |
- myconf=( "${myconf[@]}" "$@" ) |
253 |
-} |
254 |
- |
255 |
-eblit-perl-src_configure() { |
256 |
- declare -a myconf |
257 |
- |
258 |
- export LC_ALL="C" |
259 |
- [[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091 |
260 |
- |
261 |
- # some arches and -O do not mix :) |
262 |
- use ppc && replace-flags -O? -O1 |
263 |
- # Perl has problems compiling with -Os in your flags with glibc |
264 |
- use elibc_uclibc || replace-flags "-Os" "-O2" |
265 |
- # This flag makes compiling crash in interesting ways |
266 |
- filter-flags "-malign-double" |
267 |
- # Fixes bug #97645 |
268 |
- use ppc && filter-flags "-mpowerpc-gpopt" |
269 |
- # Fixes bug #143895 on gcc-4.1.1 |
270 |
- filter-flags "-fsched2-use-superblocks" |
271 |
- |
272 |
- use sparc && myconf -Ud_longdbl |
273 |
- |
274 |
- export BUILD_BZIP2=0 |
275 |
- export BZIP2_INCLUDE=${EPREFIX}/usr/include |
276 |
- export BZIP2_LIB=${EPREFIX}/usr/$(get_libdir) |
277 |
- |
278 |
- export BUILD_ZLIB=False |
279 |
- export ZLIB_INCLUDE=${EPREFIX}/usr/include |
280 |
- export ZLIB_LIB=${EPREFIX}/usr/$(get_libdir) |
281 |
- |
282 |
- # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1 |
283 |
- |
284 |
- myndbm='U' |
285 |
- mygdbm='U' |
286 |
- mydb='U' |
287 |
- |
288 |
- if use gdbm ; then |
289 |
- mygdbm='D' |
290 |
- myndbm='D' |
291 |
- fi |
292 |
- if use berkdb ; then |
293 |
- mydb='D' |
294 |
- has_version '=sys-libs/db-1*' && myndbm='D' |
295 |
- fi |
296 |
- |
297 |
- myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db" |
298 |
- |
299 |
- if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then |
300 |
- ewarn "Perl will not be built with berkdb support, use gcc if you needed it..." |
301 |
- myconf -Ui_db -Ui_ndbm |
302 |
- fi |
303 |
- |
304 |
- use ithreads && myconf -Dusethreads |
305 |
- |
306 |
- if use debug ; then |
307 |
- append-cflags "-g" |
308 |
- myconf -DDEBUGGING |
309 |
- elif [[ ${CFLAGS} == *-g* ]] ; then |
310 |
- myconf -DDEBUGGING=-g |
311 |
- else |
312 |
- myconf -DDEBUGGING=none |
313 |
- fi |
314 |
- |
315 |
- if [[ -n ${PERL_OLDVERSEN} ]] ; then |
316 |
- local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v}/${myarch}${mythreading} ${v} "; done ) |
317 |
- myconf -Dinc_version_list="${inclist}" |
318 |
- fi |
319 |
- |
320 |
- [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a" |
321 |
- |
322 |
- # Make sure we can do the final link #523730, need to set deployment |
323 |
- # target to override hardcoded 10.3 which breaks on modern OSX |
324 |
- [[ ${CHOST} == *-darwin* ]] && \ |
325 |
- myconf "-Dld=env MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} $(tc-getCC)" |
326 |
- |
327 |
- # Prefix: the host system needs not to follow Gentoo multilib stuff, and in |
328 |
- # Prefix itself we don't do multilib either, so make sure perl can find |
329 |
- # something compatible. |
330 |
- if use prefix ; then |
331 |
- # Set a hook to check for each detected library whether it actually works. |
332 |
- export libscheck=" |
333 |
- ( echo 'main(){}' > '${T}'/conftest.c && |
334 |
- $(tc-getCC) -o '${T}'/conftest '${T}'/conftest.c -l\$thislib >/dev/null 2>/dev/null |
335 |
- ) || xxx=/dev/null" |
336 |
- |
337 |
- # Use all host paths that might contain useful stuff, the hook above will filter out bad choices. |
338 |
- local paths="/lib/*-linux-gnu /usr/lib/*-linux-gnu /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 /lib /usr/lib" |
339 |
- myconf "-Dlibpth=${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir) ${paths}" |
340 |
- elif [[ $(get_libdir) != "lib" ]] ; then |
341 |
- # We need to use " and not ', as the written config.sh use ' ... |
342 |
- myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)" |
343 |
- fi |
344 |
- |
345 |
- # don't try building ODBM, bug #354453 |
346 |
- disabled_extensions="ODBM_File" |
347 |
- |
348 |
- if ! use gdbm ; then |
349 |
- # workaround for bug #157774: don't try building GDBM related stuff with USE="-gdbm" |
350 |
- disabled_extensions="${disabled_extensions} GDBM_File NDBM_File" |
351 |
- fi |
352 |
- |
353 |
- myconf -Dnoextensions="${disabled_extensions}" |
354 |
- |
355 |
- echo Configuring Perl as follows: |
356 |
- echo sh Configure \ |
357 |
- -des \ |
358 |
- -Duseshrplib \ |
359 |
- -Darchname="${myarch}" \ |
360 |
- -Dcc="$(tc-getCC)" \ |
361 |
- -Doptimize="${CFLAGS}" \ |
362 |
- -Dldflags="${LDFLAGS}" \ |
363 |
- -Dprefix="${EPREFIX}"'/usr' \ |
364 |
- -Dinstallprefix="${EPREFIX}"'/usr' \ |
365 |
- -Dsiteprefix="${EPREFIX}"'/usr/local' \ |
366 |
- -Dvendorprefix="${EPREFIX}"'/usr' \ |
367 |
- -Dscriptdir="${EPREFIX}"'/usr/bin' \ |
368 |
- -Dprivlib="${EPREFIX}${PRIV_LIB}" \ |
369 |
- -Darchlib="${EPREFIX}${ARCH_LIB}" \ |
370 |
- -Dsitelib="${EPREFIX}${SITE_LIB}" \ |
371 |
- -Dsitearch="${EPREFIX}${SITE_ARCH}" \ |
372 |
- -Dvendorlib="${EPREFIX}${VENDOR_LIB}" \ |
373 |
- -Dvendorarch="${EPREFIX}${VENDOR_ARCH}" \ |
374 |
- -Dman1dir="${EPREFIX}"/usr/share/man/man1 \ |
375 |
- -Dman3dir="${EPREFIX}"/usr/share/man/man3 \ |
376 |
- -Dsiteman1dir="${EPREFIX}"/usr/local/man/man1 \ |
377 |
- -Dsiteman3dir="${EPREFIX}"/usr/local/man/man3 \ |
378 |
- -Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \ |
379 |
- -Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \ |
380 |
- -Dman1ext='1' \ |
381 |
- -Dman3ext='3pm' \ |
382 |
- -Dlibperl="${LIBPERL}" \ |
383 |
- -Dlocincpth="${EPREFIX}"'/usr/include ' \ |
384 |
- -Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \ |
385 |
- -Duselargefiles \ |
386 |
- -Dd_semctl_semun \ |
387 |
- -Dcf_by='Gentoo' \ |
388 |
- -Dmyhostname='localhost' \ |
389 |
- -Dperladmin='root@localhost' \ |
390 |
- -Dinstallusrbinperl='n' \ |
391 |
- -Ud_csh \ |
392 |
- -Uusenm \ |
393 |
- "${myconf[@]}" |
394 |
- |
395 |
- sh Configure \ |
396 |
- -des \ |
397 |
- -Duseshrplib \ |
398 |
- -Darchname="${myarch}" \ |
399 |
- -Dcc="$(tc-getCC)" \ |
400 |
- -Doptimize="${CFLAGS}" \ |
401 |
- -Dldflags="${LDFLAGS}" \ |
402 |
- -Dprefix="${EPREFIX}"'/usr' \ |
403 |
- -Dinstallprefix="${EPREFIX}"'/usr' \ |
404 |
- -Dsiteprefix="${EPREFIX}"'/usr/local' \ |
405 |
- -Dvendorprefix="${EPREFIX}"'/usr' \ |
406 |
- -Dscriptdir="${EPREFIX}"'/usr/bin' \ |
407 |
- -Dprivlib="${EPREFIX}${PRIV_LIB}" \ |
408 |
- -Darchlib="${EPREFIX}${ARCH_LIB}" \ |
409 |
- -Dsitelib="${EPREFIX}${SITE_LIB}" \ |
410 |
- -Dsitearch="${EPREFIX}${SITE_ARCH}" \ |
411 |
- -Dvendorlib="${EPREFIX}${VENDOR_LIB}" \ |
412 |
- -Dvendorarch="${EPREFIX}${VENDOR_ARCH}" \ |
413 |
- -Dman1dir="${EPREFIX}"/usr/share/man/man1 \ |
414 |
- -Dman3dir="${EPREFIX}"/usr/share/man/man3 \ |
415 |
- -Dsiteman1dir="${EPREFIX}"/usr/local/man/man1 \ |
416 |
- -Dsiteman3dir="${EPREFIX}"/usr/local/man/man3 \ |
417 |
- -Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \ |
418 |
- -Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \ |
419 |
- -Dman1ext='1' \ |
420 |
- -Dman3ext='3pm' \ |
421 |
- -Dlibperl="${LIBPERL}" \ |
422 |
- -Dlocincpth="${EPREFIX}"'/usr/include ' \ |
423 |
- -Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \ |
424 |
- -Duselargefiles \ |
425 |
- -Dd_semctl_semun \ |
426 |
- -Dcf_by='Gentoo' \ |
427 |
- -Dmyhostname='localhost' \ |
428 |
- -Dperladmin='root@localhost' \ |
429 |
- -Dinstallusrbinperl='n' \ |
430 |
- -Ud_csh \ |
431 |
- -Uusenm \ |
432 |
- "${myconf[@]}" || die "Unable to configure" |
433 |
-} |
434 |
|
435 |
diff --git a/dev-lang/perl/files/eblits/src_install-v50240001.eblit b/dev-lang/perl/files/eblits/src_install-v50240001.eblit |
436 |
deleted file mode 100644 |
437 |
index fafff82..00000000 |
438 |
--- a/dev-lang/perl/files/eblits/src_install-v50240001.eblit |
439 |
+++ /dev/null |
440 |
@@ -1,51 +0,0 @@ |
441 |
-# Copyright 1999-2014 Gentoo Foundation |
442 |
-# Distributed under the terms of the GNU General Public License v2 |
443 |
-# $Id$ |
444 |
- |
445 |
-eblit-perl-src_install() { |
446 |
- local i |
447 |
- local coredir="${ARCH_LIB}/CORE" |
448 |
- |
449 |
- emake DESTDIR="${D}" install |
450 |
- |
451 |
- rm -f "${ED}/usr/bin/perl${MY_PV}" |
452 |
- ln -s perl "${ED}"/usr/bin/perl${MY_PV} || die |
453 |
- |
454 |
- if ! tc-is-static-only ; then |
455 |
- dolib.so "${ED}"${coredir}/${LIBPERL} |
456 |
- rm -f "${ED}"${coredir}/${LIBPERL} |
457 |
- ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die |
458 |
- ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname) || die |
459 |
- ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/${LIBPERL} || die |
460 |
- ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die |
461 |
- ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname) || die |
462 |
- fi |
463 |
- |
464 |
- rm -rf "${ED}"/usr/share/man/man3 || die "Unable to remove module man pages" |
465 |
- |
466 |
- # This removes ${D} from Config.pm |
467 |
- for i in $(find "${D}" -iname "Config.pm" ) ; do |
468 |
- einfo "Removing ${D} from ${i}..." |
469 |
- sed -i -e "s:${D}::" "${i}" || die "Sed failed" |
470 |
- done |
471 |
- |
472 |
- find "${ED}" -type f -name .packlist -delete || die |
473 |
- |
474 |
- dodoc Changes* README AUTHORS |
475 |
- |
476 |
- if use doc ; then |
477 |
- # HTML Documentation |
478 |
- # We expect errors, warnings, and such with the following. |
479 |
- |
480 |
- dodir /usr/share/doc/${PF}/html |
481 |
- LD_LIBRARY_PATH=. ./perl installhtml \ |
482 |
- --podroot='.' \ |
483 |
- --podpath='lib:ext:pod:vms' \ |
484 |
- --recurse \ |
485 |
- --htmldir="${ED}/usr/share/doc/${PF}/html" |
486 |
- fi |
487 |
- |
488 |
- [[ -d ${ED}/usr/local ]] && rm -r "${ED}"/usr/local |
489 |
- |
490 |
- dual_scripts |
491 |
-} |
492 |
|
493 |
diff --git a/dev-lang/perl/files/eblits/src_prepare-v50240001.eblit b/dev-lang/perl/files/eblits/src_prepare-v50240001.eblit |
494 |
deleted file mode 100644 |
495 |
index 5387d4b..00000000 |
496 |
--- a/dev-lang/perl/files/eblits/src_prepare-v50240001.eblit |
497 |
+++ /dev/null |
498 |
@@ -1,72 +0,0 @@ |
499 |
-# Copyright 1999-2012 Gentoo Foundation |
500 |
-# Distributed under the terms of the GNU General Public License v2 |
501 |
-# $Id$ |
502 |
- |
503 |
-src_prepare_update_patchlevel_h() { |
504 |
- # Copied and modified from debian: |
505 |
- # Copyright 2011 Niko Tyni |
506 |
- # This program is free software; you can redistribute it and/or modify |
507 |
- # it under the same terms as Perl itself. |
508 |
- local patchdir="${WORKDIR}/patches" |
509 |
- local prefix |
510 |
- |
511 |
- [[ -f ${patchdir}/series ]] || return 0 |
512 |
- |
513 |
-while read patch |
514 |
-do |
515 |
- patchname=$(echo $patch | sed 's/\.diff$//') |
516 |
- < $patchdir/$patch sed -e '/^Subject:/ { N; s/\n / / }' | sed -n -e ' |
517 |
- |
518 |
- # massage the patch headers |
519 |
- s|^Bug: .*https\?://rt\.perl\.org/.*id=\(.*\).*|[perl #\1]|; tprepend; |
520 |
- s|^Bug: .*https\?://rt\.cpan\.org/.*id=\(.*\).*|[rt.cpan.org #\1]|; tprepend; |
521 |
- s|^Bug-Gentoo: ||; tprepend; |
522 |
- s/^\(Subject\|Description\): //; tappend; |
523 |
- s|^Origin: .*http://perl5\.git\.perl\.org/perl\.git/commit\(diff\)\?/\(.......\).*|[\2]|; tprepend; |
524 |
- |
525 |
- # post-process at the end of input |
526 |
- $ { x; |
527 |
- # include the version number in the patchlevel.h description (if available) |
528 |
- s/List packaged patches/&'" for ${PF}(#${PATCH_VER})"'/; |
529 |
- |
530 |
- # escape any backslashes and double quotes |
531 |
- s|\\|\\\\|g; s|"|\\"|g; |
532 |
- |
533 |
- # add a prefix |
534 |
- s|^|\t,"'"$prefix$patchname"' - |; |
535 |
- # newlines away |
536 |
- s/\n/ /g; s/ */ /g; |
537 |
- # add a suffix |
538 |
- s/ *$/"/; p |
539 |
- }; |
540 |
- # stop all processing |
541 |
- d; |
542 |
- # label: append to the hold space |
543 |
- :append H; d; |
544 |
- # label: prepend to the hold space |
545 |
- :prepend x; H; d; |
546 |
- ' |
547 |
-done < "${WORKDIR}"/patches/series > "${S}"/patchlevel-gentoo.h |
548 |
-} |
549 |
- |
550 |
-eblit-perl-src_prepare() { |
551 |
- local patch |
552 |
- EPATCH_OPTS+=" -p1" |
553 |
- einfo "Applying patches from ${MY_P}-${PATCH_VER} ..." |
554 |
- while read patch ; do |
555 |
- EPATCH_SINGLE_MSG=" ${patch} ..." |
556 |
- epatch "${WORKDIR}"/patches/${patch} |
557 |
- done < "${WORKDIR}"/patches/series |
558 |
- |
559 |
- src_prepare_update_patchlevel_h |
560 |
- |
561 |
- # pod/perltoc.pod fails |
562 |
- # lib/ExtUtils/t/Embed.t fails |
563 |
- if ! tc-is-static-only ; then |
564 |
- ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die |
565 |
- ln -s ${LIBPERL} libperl$(get_libname ) || die |
566 |
- fi |
567 |
- |
568 |
- default |
569 |
-} |
570 |
- |