Gentoo Archives: gentoo-commits

From: Torsten Veller <tove@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/perl-overlay:master commit in: dev-lang/perl/files/, dev-lang/perl/, dev-lang/perl/files/eblits/
Date: Tue, 05 Jun 2012 17:56:06
Message-Id: 1338918930.0ee0dc580988282ba84247895e7dd6f41748af05.tove@gentoo
1 commit: 0ee0dc580988282ba84247895e7dd6f41748af05
2 Author: Torsten Veller <tove <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 5 17:55:30 2012 +0000
4 Commit: Torsten Veller <tove <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 5 17:55:30 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=0ee0dc58
7
8 Move dev-lang/perl-5.16.0 to ::gentoo
9
10 ---
11 dev-lang/perl/files/eblits/common-v50140021.eblit | 71 --
12 .../perl/files/eblits/pkg_postinst-v50140021.eblit | 67 --
13 .../perl/files/eblits/pkg_postrm-v50140021.eblit | 12 -
14 .../perl/files/eblits/pkg_setup-v50140021.eblit | 70 --
15 .../files/eblits/src_configure-v50140021.eblit | 141 ----
16 .../perl/files/eblits/src_install-v50140021.eblit | 60 --
17 .../perl/files/eblits/src_prepare-v50140021.eblit | 70 --
18 .../perl/files/eblits/src_test-v50140021.eblit | 13 -
19 dev-lang/perl/files/perl-5.10.1-hpux.patch | 40 --
20 dev-lang/perl/files/perl-5.12.3-aix-soname.patch | 70 --
21 dev-lang/perl/files/perl-5.12.3-interix.patch | 21 -
22 dev-lang/perl/files/perl-5.12.3-mint.patch | 321 ---------
23 .../perl/files/perl-5.14.1-cleanup-paths.patch | 100 ---
24 dev-lang/perl/files/perl-5.8.8-darwin-cc-ld.patch | 22 -
25 .../perl/files/perl-5.8.8-solaris-relocation.patch | 21 -
26 dev-lang/perl/files/perl-5.8.8-solaris11.patch | 14 -
27 dev-lang/perl/files/perl-5.8.8-usr-local.patch | 25 -
28 dev-lang/perl/metadata.xml | 12 -
29 dev-lang/perl/perl-5.14.2-r1.ebuild | 523 --------------
30 dev-lang/perl/perl-5.14.2-r4.ebuild | 113 ---
31 dev-lang/perl/perl-5.14.2.ebuild | 715 --------------------
32 dev-lang/perl/perl-5.16.0.ebuild | 113 ---
33 dev-lang/perl/perl-5.16.0_rc0.ebuild | 116 ----
34 dev-lang/perl/perl-5.16.0_rc2.ebuild | 113 ---
35 24 files changed, 0 insertions(+), 2843 deletions(-)
36
37 diff --git a/dev-lang/perl/files/eblits/common-v50140021.eblit b/dev-lang/perl/files/eblits/common-v50140021.eblit
38 deleted file mode 100644
39 index af96b45..0000000
40 --- a/dev-lang/perl/files/eblits/common-v50140021.eblit
41 +++ /dev/null
42 @@ -1,71 +0,0 @@
43 -# Copyright 1999-2012 Gentoo Foundation
44 -# Distributed under the terms of the GNU General Public License v2
45 -# $Header: $
46 -
47 -src_remove_dual_file() {
48 - local i pkg ver
49 - pkg="$1"
50 - ver="$2"
51 - shift 2
52 - case "${EBUILD_PHASE:-none}" in
53 - postinst|postrm)
54 - for i in "$@" ; do
55 - alternatives_auto_makesym "${i}" "${i}-[0-9]*"
56 - done
57 - ;;
58 - setup)
59 - for i in "$@" ; do
60 - if [[ -f ${EROOT}${i} && ! -h ${EROOT}${i} ]] ; then
61 - has_version ${pkg} && ewarn "You must reinstall ${pkg} !"
62 - break
63 - fi
64 - done
65 - ;;
66 - install)
67 - for i in "$@" ; do
68 - if ! [[ -f "${ED}"${i} ]] ; then
69 - ewarn "${i} does not exist!"
70 - continue
71 - fi
72 - mv "${ED}"${i}{,-${ver}-${P}} || die
73 - done
74 - ;;
75 - esac
76 -}
77 -
78 -src_remove_dual_man() {
79 - local i pkg ver ff
80 - pkg="$1"
81 - ver="$2"
82 - shift 2
83 - case "${EBUILD_PHASE:-none}" in
84 - postinst|postrm)
85 - for i in "$@" ; do
86 - ff=`echo "${EROOT}${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}}"*`
87 - ff=${ff##*${i#${i%.[0-9]}}}
88 - alternatives_auto_makesym "${i}${ff}" "${i%.[0-9]}-[0-9]*"
89 - done
90 - ;;
91 - install)
92 - for i in "$@" ; do
93 - if ! [[ -f "${ED}"${i} ]] ; then
94 - ewarn "${i} does not exist!"
95 - continue
96 - fi
97 - mv "${ED}"${i} "${ED}"${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}} || die
98 - done
99 - ;;
100 - esac
101 -}
102 -
103 -src_remove_dual() {
104 - local i pkg ver
105 - pkg="$1"
106 - ver="$2"
107 - shift 2
108 - for i in "$@" ; do
109 - src_remove_dual_file "${pkg}" "${ver}" "/usr/bin/${i}"
110 - src_remove_dual_man "${pkg}" "${ver}" "/usr/share/man/man1/${i}.1"
111 - done
112 -}
113 -
114
115 diff --git a/dev-lang/perl/files/eblits/pkg_postinst-v50140021.eblit b/dev-lang/perl/files/eblits/pkg_postinst-v50140021.eblit
116 deleted file mode 100644
117 index a40a514..0000000
118 --- a/dev-lang/perl/files/eblits/pkg_postinst-v50140021.eblit
119 +++ /dev/null
120 @@ -1,67 +0,0 @@
121 -# Copyright 1999-2012 Gentoo Foundation
122 -# Distributed under the terms of the GNU General Public License v2
123 -# $Header: $
124 -
125 -eblit-perl-pkg_postinst() {
126 - dual_scripts
127 -
128 - if [[ "${ROOT}" = "/" ]] ; then
129 - local INC DIR file
130 - INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${SHORT_PV}'|etc|local|perl$/; print "$line\n" }')
131 - einfo "Removing old .ph files"
132 - for DIR in ${INC} ; do
133 - if [[ -d "${DIR}" ]] ; then
134 - for file in $(find "${DIR}" -name "*.ph" -type f ) ; do
135 - rm -f "${file}"
136 - einfo "<< ${file}"
137 - done
138 - fi
139 - done
140 - # Silently remove the now empty dirs
141 - for DIR in ${INC} ; do
142 - if [[ -d "${DIR}" ]] ; then
143 - find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
144 - fi
145 - done
146 -
147 -# ebegin "Generating ConfigLocal.pm (ignore any error)"
148 -# enc2xs -C
149 -
150 - einfo "Converting C header files to the corresponding Perl format (ignore any error)"
151 - # Prefix note: unprefixed as this is all kernel/libc stuff that we never provide
152 - pushd /usr/include >/dev/null
153 - h2ph -Q -a -d "${EPREFIX}"${ARCH_LIB} \
154 - asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h \
155 - sys/socket.h sys/time.h wait.h sysexits.h
156 - popd >/dev/null
157 -
158 -# This has been moved into a function because rumor has it that a future release
159 -# of portage will allow us to check what version was just removed - which means
160 -# we will be able to invoke this only as needed :)
161 - # Tried doing this via -z, but $INC is too big...
162 - #if [[ "${INC}x" != "x" ]]; then
163 - # cleaner_msg
164 - #fi
165 - fi
166 -}
167 -
168 -cleaner_msg() {
169 - eerror "You have had multiple versions of perl. It is recommended"
170 - eerror "that you run perl-cleaner now. perl-cleaner will"
171 - eerror "assist with this transition. This script is capable"
172 - eerror "of cleaning out old .ph files, rebuilding modules for "
173 - eerror "your new version of perl, as well as re-emerging"
174 - eerror "applications that compiled against your old libperl$(get_libname)"
175 - eerror
176 - eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
177 - eerror "Part of the rebuilding of applications compiled against "
178 - eerror "your old libperl involves temporarily unmerging"
179 - eerror "them - interruptions could leave you with unmerged"
180 - eerror "packages before they can be remerged."
181 - eerror ""
182 - eerror "If you have run perl-cleaner and a package still gives"
183 - eerror "you trouble, and re-emerging it fails to correct"
184 - eerror "the problem, please check http://bugs.gentoo.org/"
185 - eerror "for more information or to report a bug."
186 - eerror ""
187 -}
188
189 diff --git a/dev-lang/perl/files/eblits/pkg_postrm-v50140021.eblit b/dev-lang/perl/files/eblits/pkg_postrm-v50140021.eblit
190 deleted file mode 100644
191 index b5c8eb0..0000000
192 --- a/dev-lang/perl/files/eblits/pkg_postrm-v50140021.eblit
193 +++ /dev/null
194 @@ -1,12 +0,0 @@
195 -# Copyright 1999-2012 Gentoo Foundation
196 -# Distributed under the terms of the GNU General Public License v2
197 -# $Header: $
198 -
199 -eblit-perl-pkg_postrm(){
200 - dual_scripts
201 -
202 -# if [[ -e ${ARCH_LIB}/Encode/ConfigLocal.pm ]] ; then
203 -# ebegin "Removing ConfigLocal.pm"
204 -# rm "${ARCH_LIB}/Encode/ConfigLocal.pm"
205 -# fi
206 -}
207
208 diff --git a/dev-lang/perl/files/eblits/pkg_setup-v50140021.eblit b/dev-lang/perl/files/eblits/pkg_setup-v50140021.eblit
209 deleted file mode 100644
210 index 7c166e4..0000000
211 --- a/dev-lang/perl/files/eblits/pkg_setup-v50140021.eblit
212 +++ /dev/null
213 @@ -1,70 +0,0 @@
214 -# Copyright 1999-2012 Gentoo Foundation
215 -# Distributed under the terms of the GNU General Public License v2
216 -# $Header: $
217 -
218 -eblit-perl-pkg_setup() {
219 - case ${CHOST} in
220 - *-freebsd*) osname="freebsd" ;;
221 - *-dragonfly*) osname="dragonfly" ;;
222 - *-netbsd*) osname="netbsd" ;;
223 - *-openbsd*) osname="openbsd" ;;
224 - *-darwin*) osname="darwin" ;;
225 - *-interix*) osname="interix" ;;
226 - *) osname="linux" ;;
227 - esac
228 -
229 - if use ithreads ; then
230 - mythreading="-multi"
231 - myarch="${CHOST%%-*}-${osname}-thread"
232 - else
233 - myarch="${CHOST%%-*}-${osname}"
234 - fi
235 - if use debug ; then
236 - myarch="${myarch}-debug"
237 - fi
238 -
239 - LIBPERL="libperl$(get_libname ${MY_PV} )"
240 - PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}"
241 - ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
242 - SITE_LIB="/usr/local/$(get_libdir)/perl5/${MY_PV}"
243 - SITE_ARCH="/usr/local/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
244 - VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}"
245 - VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}"
246 -
247 - if use ithreads ; then
248 - echo ""
249 - ewarn "THREADS WARNING:"
250 - ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
251 - ewarn "interpreter-level threading enabled."
252 - ewarn "Threading is not supported by all applications "
253 - ewarn "that compile against perl. You use threading at "
254 - ewarn "your own discretion. "
255 - fi
256 - check_rebuild
257 - dual_scripts
258 -}
259 -
260 -check_rebuild() {
261 - if has_version "<dev-lang/perl-${SHORT_PV}" ; then
262 - echo ""
263 - ewarn "UPDATE THE PERL MODULES:"
264 - ewarn "After updating dev-lang/perl you must reinstall"
265 - ewarn "the installed perl modules."
266 - ewarn "Use: perl-cleaner --all"
267 - elif has_version dev-lang/perl ; then
268 - # doesnot work
269 - #if ! has_version dev-lang/perl[ithreads=,debug=] ; then
270 - #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
271 - if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
272 - ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
273 - ( use debug && ! has_version dev-lang/perl[debug] ) || \
274 - ( ! use debug && has_version dev-lang/perl[debug] ) ; then
275 - echo ""
276 - ewarn "TOGGLED USE-FLAGS WARNING:"
277 - ewarn "You changed one of the use-flags ithreads or debug."
278 - ewarn "You must rebuild all perl-modules installed."
279 - ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
280 - fi
281 - fi
282 -}
283 -
284
285 diff --git a/dev-lang/perl/files/eblits/src_configure-v50140021.eblit b/dev-lang/perl/files/eblits/src_configure-v50140021.eblit
286 deleted file mode 100644
287 index 1c04781..0000000
288 --- a/dev-lang/perl/files/eblits/src_configure-v50140021.eblit
289 +++ /dev/null
290 @@ -1,141 +0,0 @@
291 -# Copyright 1999-2012 Gentoo Foundation
292 -# Distributed under the terms of the GNU General Public License v2
293 -# $Header: $
294 -
295 -myconf() {
296 - # the myconf array is declared in src_configure
297 - myconf=( "${myconf[@]}" "$@" )
298 -}
299 -
300 -eblit-perl-src_configure() {
301 - declare -a myconf
302 -
303 - export LC_ALL="C"
304 - [[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
305 -
306 - # some arches and -O do not mix :)
307 - use ppc && replace-flags -O? -O1
308 - # Perl has problems compiling with -Os in your flags with glibc
309 - use elibc_uclibc || replace-flags "-Os" "-O2"
310 - # This flag makes compiling crash in interesting ways
311 - filter-flags "-malign-double"
312 - # Fixes bug #97645
313 - use ppc && filter-flags "-mpowerpc-gpopt"
314 - # Fixes bug #143895 on gcc-4.1.1
315 - filter-flags "-fsched2-use-superblocks"
316 -
317 - use sparc && myconf -Ud_longdbl
318 -
319 - export BUILD_BZIP2=0
320 - export BZIP2_INCLUDE=${EPREFIX}/usr/include
321 - export BZIP2_LIB=${EPREFIX}/usr/$(get_libdir)
322 -
323 - export BUILD_ZLIB=False
324 - export ZLIB_INCLUDE=${EPREFIX}/usr/include
325 - export ZLIB_LIB=${EPREFIX}/usr/$(get_libdir)
326 -
327 - # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
328 -
329 - myndbm='U'
330 - mygdbm='U'
331 - mydb='U'
332 -
333 - if use gdbm ; then
334 - mygdbm='D'
335 - myndbm='D'
336 - fi
337 - if use berkdb ; then
338 - mydb='D'
339 - has_version '=sys-libs/db-1*' && myndbm='D'
340 - fi
341 -
342 - myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
343 -
344 - if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
345 - ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
346 - myconf -Ui_db -Ui_ndbm
347 - fi
348 -
349 - use ithreads && myconf -Dusethreads
350 -
351 - if use debug ; then
352 - append-cflags "-g"
353 - myconf -DDEBUGGING
354 - elif [[ ${CFLAGS} == *-g* ]] ; then
355 - myconf -DDEBUGGING=-g
356 - else
357 - myconf -DDEBUGGING=none
358 - fi
359 -
360 - if [[ -n ${PERL_OLDVERSEN} ]] ; then
361 - local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v}/${myarch}${mythreading} ${v} "; done )
362 - myconf -Dinc_version_list="${inclist}"
363 - fi
364 -
365 - [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
366 -
367 - # Prefix: the host system needs not to follow Gentoo multilib stuff, and in
368 - # Prefix itself we don't do multilib either, so make sure perl can find
369 - # something compatible.
370 - if use prefix ; then
371 - local ldir
372 - local llib
373 - local paths=""
374 - echo "int main() {}" > "${T}"/t.c
375 - # need to ensure dirs contain compatible libs, bug #358875
376 - for ldir in /lib /usr/lib /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 ; do
377 - [[ -d ${ldir} ]] || continue
378 - # find a random lib from here
379 - llib=( ${ldir}/*$(get_libname) )
380 - [[ -e ${llib[0]} ]] || continue
381 - $(tc-getCC) -o "${T}"/t "${T}"/t.c ${llib[0]} >& /dev/null \
382 - && paths="${paths} ${ldir}"
383 - done
384 - myconf "-Dlibpth=${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir) ${paths}"
385 - elif [[ $(get_libdir) != "lib" ]] ; then
386 - # We need to use " and not ', as the written config.sh use ' ...
387 - myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
388 - fi
389 -
390 - # don't try building ODBM, bug #354453
391 - myconf -Dnoextensions=ODBM_File
392 -
393 - sh Configure \
394 - -des \
395 - -Duseshrplib \
396 - -Darchname="${myarch}" \
397 - -Dcc="$(tc-getCC)" \
398 - -Doptimize="${CFLAGS}" \
399 - -Dldflags="${LDFLAGS}" \
400 - -Dprefix="${EPREFIX}"'/usr' \
401 - -Dinstallprefix="${EPREFIX}"'/usr' \
402 - -Dsiteprefix="${EPREFIX}"'/usr/local' \
403 - -Dvendorprefix="${EPREFIX}"'/usr' \
404 - -Dscriptdir="${EPREFIX}"'/usr/bin' \
405 - -Dprivlib="${EPREFIX}${PRIV_LIB}" \
406 - -Darchlib="${EPREFIX}${ARCH_LIB}" \
407 - -Dsitelib="${EPREFIX}${SITE_LIB}" \
408 - -Dsitearch="${EPREFIX}${SITE_ARCH}" \
409 - -Dvendorlib="${EPREFIX}${VENDOR_LIB}" \
410 - -Dvendorarch="${EPREFIX}${VENDOR_ARCH}" \
411 - -Dman1dir="${EPREFIX}"/usr/share/man/man1 \
412 - -Dman3dir="${EPREFIX}"/usr/share/man/man3 \
413 - -Dsiteman1dir="${EPREFIX}"/usr/local/man/man1 \
414 - -Dsiteman3dir="${EPREFIX}"/usr/local/man/man3 \
415 - -Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \
416 - -Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \
417 - -Dman1ext='1' \
418 - -Dman3ext='3pm' \
419 - -Dlibperl="${LIBPERL}" \
420 - -Dlocincpth="${EPREFIX}"'/usr/include ' \
421 - -Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \
422 - -Duselargefiles \
423 - -Dd_semctl_semun \
424 - -Dcf_by='Gentoo' \
425 - -Dmyhostname='localhost' \
426 - -Dperladmin='root@localhost' \
427 - -Dinstallusrbinperl='n' \
428 - -Ud_csh \
429 - -Uusenm \
430 - "${myconf[@]}" || die "Unable to configure"
431 -}
432
433 diff --git a/dev-lang/perl/files/eblits/src_install-v50140021.eblit b/dev-lang/perl/files/eblits/src_install-v50140021.eblit
434 deleted file mode 100644
435 index 0aa5ace..0000000
436 --- a/dev-lang/perl/files/eblits/src_install-v50140021.eblit
437 +++ /dev/null
438 @@ -1,60 +0,0 @@
439 -# Copyright 1999-2012 Gentoo Foundation
440 -# Distributed under the terms of the GNU General Public License v2
441 -# $Header: $
442 -
443 -eblit-perl-src_install() {
444 - local i
445 - local coredir="${ARCH_LIB}/CORE"
446 -
447 - emake DESTDIR="${D}" install
448 -
449 - rm -f "${ED}"/usr/bin/perl
450 - ln -s perl${MY_PV} "${ED}"/usr/bin/perl || die
451 -
452 - if ! tc-is-static-only ; then
453 - dolib.so "${ED}"${coredir}/${LIBPERL}
454 - rm -f "${ED}"${coredir}/${LIBPERL}
455 - ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
456 - ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname) || die
457 - ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/${LIBPERL} || die
458 - ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die
459 - ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname) || die
460 - fi
461 -
462 - rm -rf "${ED}"/usr/share/man/man3 || die "Unable to remove module man pages"
463 -
464 -# # A poor fix for the miniperl issues
465 -# dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
466 -# fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
467 -# dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
468 -# fperms 0755 /usr/bin/xsubpp
469 -
470 - # This removes ${D} from Config.pm
471 - for i in $(find "${D}" -iname "Config.pm" ) ; do
472 - einfo "Removing ${D} from ${i}..."
473 - sed -i -e "s:${D}::" "${i}" || die "Sed failed"
474 - done
475 -
476 - find "${ED}" -type f -name .packlist -delete || die
477 -
478 - # Note: find out from psm why we would need/want this.
479 - # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
480 - # find "${ED}" -name "*NDBM*" | xargs rm -f
481 -
482 - dodoc Changes* README AUTHORS
483 -
484 - if use doc ; then
485 - # HTML Documentation
486 - # We expect errors, warnings, and such with the following.
487 -
488 - dodir /usr/share/doc/${PF}/html
489 - LD_LIBRARY_PATH=. ./perl installhtml \
490 - --podroot='.' \
491 - --podpath='lib:ext:pod:vms' \
492 - --recurse \
493 - --htmldir="${ED}/usr/share/doc/${PF}/html" \
494 - --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
495 - fi
496 -
497 - dual_scripts
498 -}
499
500 diff --git a/dev-lang/perl/files/eblits/src_prepare-v50140021.eblit b/dev-lang/perl/files/eblits/src_prepare-v50140021.eblit
501 deleted file mode 100644
502 index f704987..0000000
503 --- a/dev-lang/perl/files/eblits/src_prepare-v50140021.eblit
504 +++ /dev/null
505 @@ -1,70 +0,0 @@
506 -# Copyright 1999-2012 Gentoo Foundation
507 -# Distributed under the terms of the GNU General Public License v2
508 -# $Header: $
509 -
510 -src_prepare_update_patchlevel_h() {
511 - # Copied and modified from debian:
512 - # Copyright 2011 Niko Tyni
513 - # This program is free software; you can redistribute it and/or modify
514 - # it under the same terms as Perl itself.
515 - local patchdir="${WORKDIR}/patches"
516 - local prefix
517 -
518 - [[ -f ${patchdir}/series ]] || return 0
519 -
520 -while read patch
521 -do
522 - patchname=$(echo $patch | sed 's/\.diff$//')
523 - < $patchdir/$patch sed -e '/^Subject:/ { N; s/\n / / }' | sed -n -e '
524 -
525 - # massage the patch headers
526 - s|^Bug: .*https\?://rt\.perl\.org/.*id=\(.*\).*|[perl #\1]|; tprepend;
527 - s|^Bug: .*https\?://rt\.cpan\.org/.*id=\(.*\).*|[rt.cpan.org #\1]|; tprepend;
528 - s|^Bug-Gentoo: ||; tprepend;
529 - s/^\(Subject\|Description\): //; tappend;
530 - s|^Origin: .*http://perl5\.git\.perl\.org/perl\.git/commit\(diff\)\?/\(.......\).*|[\2]|; tprepend;
531 -
532 - # post-process at the end of input
533 - $ { x;
534 - # include the version number in the patchlevel.h description (if available)
535 - s/List packaged patches/&'" for ${PF}(#${PATCH_VER})"'/;
536 -
537 - # escape any backslashes and double quotes
538 - s|\\|\\\\|g; s|"|\\"|g;
539 -
540 - # add a prefix
541 - s|^|\t,"'"$prefix$patchname"' - |;
542 - # newlines away
543 - s/\n/ /g; s/ */ /g;
544 - # add a suffix
545 - s/ *$/"/; p
546 - };
547 - # stop all processing
548 - d;
549 - # label: append to the hold space
550 - :append H; d;
551 - # label: prepend to the hold space
552 - :prepend x; H; d;
553 - '
554 -done < "${WORKDIR}"/patches/series > "${S}"/patchlevel-gentoo.h
555 -}
556 -
557 -eblit-perl-src_prepare() {
558 - local patch
559 - EPATCH_OPTS+=" -p1"
560 - einfo "Applying patches from ${MY_P}-${PATCH_VER} ..."
561 - while read patch ; do
562 - EPATCH_SINGLE_MSG=" ${patch} ..."
563 - epatch "${WORKDIR}"/patches/${patch}
564 - done < "${WORKDIR}"/patches/series
565 -
566 - src_prepare_update_patchlevel_h
567 -
568 - # pod/perltoc.pod fails
569 - # lib/ExtUtils/t/Embed.t fails
570 - if ! tc-is-static-only ; then
571 - ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die
572 - ln -s ${LIBPERL} libperl$(get_libname ) || die
573 - fi
574 -}
575 -
576
577 diff --git a/dev-lang/perl/files/eblits/src_test-v50140021.eblit b/dev-lang/perl/files/eblits/src_test-v50140021.eblit
578 deleted file mode 100644
579 index 77e2d04..0000000
580 --- a/dev-lang/perl/files/eblits/src_test-v50140021.eblit
581 +++ /dev/null
582 @@ -1,13 +0,0 @@
583 -# Copyright 1999-2012 Gentoo Foundation
584 -# Distributed under the terms of the GNU General Public License v2
585 -# $Header: $
586 -
587 -eblit-perl-src_test() {
588 - if [[ ${EUID} == 0 ]] ; then
589 - ewarn "Test fails with a sandbox error (#328793) if run as root. Skipping tests..."
590 - return 0
591 - fi
592 - use elibc_uclibc && export MAKEOPTS+=" -j1"
593 - TEST_JOBS=$(echo -j1 ${MAKEOPTS} | sed -r 's/.*(-j[[:space:]]*|--jobs=)([[:digit:]]+).*/\2/' ) \
594 - make test_harness || die "test failed"
595 -}
596
597 diff --git a/dev-lang/perl/files/perl-5.10.1-hpux.patch b/dev-lang/perl/files/perl-5.10.1-hpux.patch
598 deleted file mode 100644
599 index ca4ee52..0000000
600 --- a/dev-lang/perl/files/perl-5.10.1-hpux.patch
601 +++ /dev/null
602 @@ -1,40 +0,0 @@
603 -# do not assume '.' being in PATH on hpux,
604 -# use 'gcc' as linker, link with '-lm'.
605 -
606 ---- hints/hpux.sh
607 -+++ hints/hpux.sh
608 -@@ -190,7 +190,7 @@
609 - $define|true|[Yy])
610 - echo '#include <stdio.h>\nint main(){long l;printf("%d\\n",sizeof(l));}'>try.c
611 - $cc -o try $ccflags $ldflags try.c
612 -- if [ "`try`" = "8" ]; then
613 -+ if [ "`./try`" = "8" ]; then
614 - case "$use64bitall" in
615 - $define|true|[Yy]) ;;
616 - *) cat <<EOM >&4
617 -@@ -338,7 +338,7 @@
618 - } /* main */
619 - EOF
620 - $cc -o try $ccflags $ldflags try.c
621 -- maxdsiz=`try`
622 -+ maxdsiz=`./try`
623 - rm -f try try.c core
624 - if [ $maxdsiz -le 64 ]; then
625 - # 64 Mb is probably not enough to optimize toke.c
626 -@@ -363,11 +363,12 @@
627 - "") optimize="-g -O" ;;
628 - *O[3456789]*) optimize=`echo "$optimize" | sed -e 's/O[3-9]/O2/'` ;;
629 - esac
630 -- #ld="$cc"
631 -- ld=/usr/bin/ld
632 -+ ld="$cc"
633 -+ #ld=/usr/bin/ld
634 - cccdlflags='-fPIC'
635 -- #lddlflags='-shared'
636 -- lddlflags='-b'
637 -+ lddlflags='-shared'
638 -+ #lddlflags='-b'
639 -+ libs='-lm'
640 - case "$optimize" in
641 - *-g*-O*|*-O*-g*)
642 - # gcc without gas will not accept -g
643
644 diff --git a/dev-lang/perl/files/perl-5.12.3-aix-soname.patch b/dev-lang/perl/files/perl-5.12.3-aix-soname.patch
645 deleted file mode 100644
646 index 70fe5fa..0000000
647 --- a/dev-lang/perl/files/perl-5.12.3-aix-soname.patch
648 +++ /dev/null
649 @@ -1,70 +0,0 @@
650 -1) Match "powerpc-ibm-aix5.3.0.0-gcc" as gcc too.
651 -
652 -2) Creating shared library on aix with full soname support, following
653 -http://lists.gnu.org/archive/html/libtool/2011-01/msg00023.html
654 -http://lists.gnu.org/archive/html/libtool/2011-02/msg00000.html
655 -
656 -Once there is an agreement on that, this patch basically is designed
657 -for upstream perl to be applied when their soname would change anyway.
658 -However, there is 'strip' being used, and I don't know yet what to
659 -use instead in cross-aix setups with recent binutils.
660 -
661 ---- Makefile.SH
662 -+++ Makefile.SH
663 -@@ -92,12 +92,12 @@
664 - ;;
665 - aix*)
666 - case "$cc" in
667 -- gcc*)
668 -- shrpldflags="-shared -Wl,-H512 -Wl,-T512 -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bE:perl.exp"
669 -+ *gcc*)
670 -+ shrpldflags="-shared -Wl,-H512 -Wl,-T512 -Wl,-bhalt:4 -Wl,-bE:perl.exp"
671 - case "$osvers" in
672 -- 3*) shrpldflags="$shrpldflags -e _nostart"
673 -+ 3*) shrpldflags="$shrpldflags -Wl,-bM:SRE -e _nostart"
674 - ;;
675 -- *) shrpldflags="$shrpldflags -Wl,-bnoentry"
676 -+ *) shrpldflags="$shrpldflags -Wl,-G -Wl,-bernotok -Wl,-bnoentry"
677 - ;;
678 - esac
679 - shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"
680 -@@ -105,11 +105,11 @@
681 - linklibperl_nonshr='-lperl_nonshr'
682 - ;;
683 - *)
684 -- shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
685 -+ shrpldflags="-H512 -T512 -bhalt:4 -bE:perl.exp"
686 - case "$osvers" in
687 -- 3*) shrpldflags="$shrpldflags -e _nostart"
688 -+ 3*) shrpldflags="$shrpldflags -bM:SRE -e _nostart"
689 - ;;
690 -- *) shrpldflags="$shrpldflags -b noentry"
691 -+ *) shrpldflags="$shrpldflags -G -bernotok -b noentry"
692 - ;;
693 - esac
694 - shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"
695 -@@ -763,11 +763,19 @@
696 - !NO!SUBS!
697 - case "$osname" in
698 - aix)
699 -- $spitshell >>$Makefile <<'!NO!SUBS!'
700 -- rm -f libperl$(OBJ_EXT)
701 -- mv $@ libperl$(OBJ_EXT)
702 -- $(AR) qv $(LIBPERL) libperl$(OBJ_EXT)
703 --!NO!SUBS!
704 -+ bits=32
705 -+ if test X"$use64bitall" = Xdefine; then bits=64; fi
706 -+ $spitshell >>$Makefile <<!GROK!THIS!
707 -+ rm -f shr.imp shr.o
708 -+ mv \$@ shr.o
709 -+ strip -e shr.o
710 -+ ( echo '#! libperl.so.${revision}.${patchlevel}(shr.o)' \\
711 -+ ; echo '# ${bits}' \\
712 -+ ; grep -v '^#!' perl.exp \\
713 -+ ) > shr.imp
714 -+ \$(AR) qv \$@ shr.imp shr.o
715 -+ rm -f shr.imp shr.o
716 -+!GROK!THIS!
717 - ;;
718 - esac
719 - ;;
720
721 diff --git a/dev-lang/perl/files/perl-5.12.3-interix.patch b/dev-lang/perl/files/perl-5.12.3-interix.patch
722 deleted file mode 100644
723 index 5e875b2..0000000
724 --- a/dev-lang/perl/files/perl-5.12.3-interix.patch
725 +++ /dev/null
726 @@ -1,21 +0,0 @@
727 -reported: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2011-04/msg01014.html
728 -
729 -diff -ru perl-5.12.3.orig/hints/interix.sh perl-5.12.3/hints/interix.sh
730 ---- perl-5.12.3.orig/hints/interix.sh 2011-04-27 08:34:00 +0200
731 -+++ perl-5.12.3/hints/interix.sh 2011-04-27 08:53:46 +0200
732 -@@ -6,14 +6,13 @@
733 - cc='gcc'
734 - cccdlflags="-DPIC $cccdlflags"
735 - ccdlflags='-Wl,-E'
736 --ccflags="-D_ALL_SOURCE $ccflags"
737 --d_poll="$undef"
738 - ld='gcc'
739 - lddlflags="-shared $lddlflags"
740 - rpathflag='-Wl,-R'
741 - sharpbang='#!'
742 - usemymalloc='false'
743 - usenm='false'
744 -+firstmakefile=GNUmakefile
745 -
746 - # This script UU/usethreads.cbu will get 'called-back' by Configure
747 - # after it has prompted the user for whether to use threads.
748
749 diff --git a/dev-lang/perl/files/perl-5.12.3-mint.patch b/dev-lang/perl/files/perl-5.12.3-mint.patch
750 deleted file mode 100644
751 index 4c6c108..0000000
752 --- a/dev-lang/perl/files/perl-5.12.3-mint.patch
753 +++ /dev/null
754 @@ -1,321 +0,0 @@
755 -http://rt.perl.org/rt3/Ticket/Display.html?id=89502
756 -
757 ---- perl-5.12.3/Configure 2011-02-21 09:18:09.000000000 +0000
758 -+++ perl-5.12.3/Configure 2011-02-21 09:38:49.000000000 +0000
759 -@@ -1275,6 +1275,9 @@
760 - elif test -n "$DJGPP"; then
761 - : DOS DJGPP
762 - _exe=".exe"
763 -+elif test -f "/kern/cookiejar"; then
764 -+: MiNT
765 -+ _exe=""
766 - elif test -d c:/. -o -n "$is_os2" ; then
767 - : OS/2 or cygwin
768 - _exe=".exe"
769 -@@ -1402,7 +1405,7 @@
770 - xcat=/bin/cat
771 - test -f $xcat$_exe || xcat=/usr/bin/cat
772 - if test ! -f $xcat$_exe; then
773 -- for p in `echo $PATH | sed -e "s/$p_/ /g"` $paths; do
774 -+ for p in `echo $PATH | sed -e 's/$p_/ /g'` $paths; do
775 - if test -f $p/cat$_exe; then
776 - xcat=$p/cat
777 - break
778 ---- perl-5.12.3/ext/DynaLoader/dl_dld.xs 2010-11-21 21:40:55.000000000 +0000
779 -+++ perl-5.12.3/ext/DynaLoader/dl_dld.xs 2011-02-21 09:38:51.000000000 +0000
780 -@@ -116,6 +116,18 @@
781 - goto haverror;
782 - }
783 -
784 -+ DLDEBUG(1,PerlIO_printf(Perl_debug_log, "dld_link(libm.a)\n"));
785 -+ if (dlderr = dld_link("/usr/lib/libm.a")) {
786 -+ SaveError(aTHX_ "dld_link(libm.a): %s", dld_strerror(dlderr));
787 -+ goto haverror;
788 -+ }
789 -+
790 -+ DLDEBUG(1,PerlIO_printf(Perl_debug_log, "dld_link(libc.a)\n"));
791 -+ if (dlderr = dld_link("/usr/lib/libc.a")) {
792 -+ SaveError(aTHX_ "dld_link(libc.a): %s", dld_strerror(dlderr));
793 -+ goto haverror;
794 -+ }
795 -+
796 - max = AvFILL(dl_resolve_using);
797 - for (x = 0; x <= max; x++) {
798 - char *sym = SvPVX(*av_fetch(dl_resolve_using, x, 0));
799 ---- perl-5.12.3/malloc.c 2011-01-09 20:20:57.000000000 +0000
800 -+++ perl-5.12.3/malloc.c 2011-02-21 09:38:51.000000000 +0000
801 -@@ -264,7 +264,7 @@
802 - #define MIN_BUC_POW2 (sizeof(void*) > 4 ? 3 : 2) /* Allow for 4-byte arena. */
803 - #define MIN_BUCKET (MIN_BUC_POW2 * BUCKETS_PER_POW2)
804 -
805 --#if !(defined(I286) || defined(atarist))
806 -+#if !defined(I286)
807 - /* take 2k unless the block is bigger than that */
808 - # define LOG_OF_MIN_ARENA 11
809 - #else
810 -@@ -551,8 +551,8 @@
811 - */
812 - #define u_short unsigned short
813 -
814 --/* 286 and atarist like big chunks, which gives too much overhead. */
815 --#if (defined(RCHECK) || defined(I286) || defined(atarist)) && defined(PACK_MALLOC)
816 -+/* 286 like big chunks, which gives too much overhead. */
817 -+#if (defined(RCHECK) || defined(I286)) && defined(PACK_MALLOC)
818 - # undef PACK_MALLOC
819 - #endif
820 -
821 -@@ -1734,16 +1734,14 @@
822 - /* Second, check alignment. */
823 - slack = 0;
824 -
825 --#if !defined(atarist) /* on the atari we dont have to worry about this */
826 --# ifndef I286 /* The sbrk(0) call on the I286 always returns the next segment */
827 -+#ifndef I286 /* The sbrk(0) call on the I286 always returns the next segment */
828 - /* WANTED_ALIGNMENT may be more than NEEDED_ALIGNMENT, but this may
829 - improve performance of memory access. */
830 - if (PTR2UV(cp) & (WANTED_ALIGNMENT - 1)) { /* Not aligned. */
831 - slack = WANTED_ALIGNMENT - (PTR2UV(cp) & (WANTED_ALIGNMENT - 1));
832 - add += slack;
833 - }
834 --# endif
835 --#endif /* !atarist */
836 -+#endif
837 -
838 - if (add) {
839 - DEBUG_m(PerlIO_printf(Perl_debug_log,
840 ---- perl-5.12.3/miniperlmain.c 2011-01-09 20:20:57.000000000 +0000
841 -+++ perl-5.12.3/miniperlmain.c 2011-02-21 09:38:49.000000000 +0000
842 -@@ -45,7 +45,7 @@
843 - #if defined (atarist)
844 - /* The Atari operating system doesn't have a dynamic stack. The
845 - stack size is determined from this value. */
846 --long _stksize = 64 * 1024;
847 -+long _stksize = 256 * 1024;
848 - #endif
849 -
850 - #if defined(PERL_GLOBAL_STRUCT_PRIVATE)
851 ---- perl-5.12.3/os2/perlrexx.c 2010-11-21 21:40:56.000000000 +0000
852 -+++ perl-5.12.3/os2/perlrexx.c 2011-02-21 09:42:49.000000000 +0000
853 -@@ -38,7 +38,7 @@
854 - #if defined (atarist)
855 - /* The Atari operating system doesn't have a dynamic stack. The
856 - stack size is determined from this value. */
857 --long _stksize = 64 * 1024;
858 -+long _stksize = 256 * 1024;
859 - #endif
860 -
861 - /* Register any extra external extensions */
862 ---- perl-5.12.3/perl.c 2011-02-21 09:17:19.000000000 +0000
863 -+++ perl-5.12.3/perl.c 2011-02-21 09:38:50.000000000 +0000
864 -@@ -3272,10 +3272,6 @@
865 - "\n\nOS/2 port Copyright (c) 1990, 1991, Raymond Chen, Kai Uwe Rommel\n"
866 - "Version 5 port Copyright (c) 1994-2002, Andreas Kaiser, Ilya Zakharevich\n");
867 - #endif
868 --#ifdef atarist
869 -- PerlIO_printf(PerlIO_stdout(),
870 -- "atariST series port, ++jrb bammi@×××××××.com\n");
871 --#endif
872 - #ifdef __BEOS__
873 - PerlIO_printf(PerlIO_stdout(),
874 - "BeOS port Copyright Tom Spindler, 1997-1999\n");
875 ---- perl-5.12.3/perl.h 2011-01-09 20:20:57.000000000 +0000
876 -+++ perl-5.12.3/perl.h 2011-02-21 09:38:50.000000000 +0000
877 -@@ -497,7 +497,7 @@
878 - */
879 -
880 - /* define this once if either system, instead of cluttering up the src */
881 --#if defined(MSDOS) || defined(atarist) || defined(WIN32) || defined(NETWARE)
882 -+#if defined(MSDOS) || defined(WIN32) || defined(NETWARE)
883 - #define DOSISH 1
884 - #endif
885 -
886 ---- perl-5.12.3/perlio.c 2009-04-14 23:47:25.000000000 +0000
887 -+++ perl-5.12.3/perlio.c 2010-03-23 18:36:15.000000000 +0000
888 -@@ -135,17 +135,6 @@
889 - * This used to be contents of do_binmode in doio.c
890 - */
891 - #ifdef DOSISH
892 --# if defined(atarist)
893 -- PERL_UNUSED_ARG(iotype);
894 -- if (!fflush(fp)) {
895 -- if (mode & O_BINARY)
896 -- ((FILE *) fp)->_flag |= _IOBIN;
897 -- else
898 -- ((FILE *) fp)->_flag &= ~_IOBIN;
899 -- return 1;
900 -- }
901 -- return 0;
902 --# else
903 - dTHX;
904 - PERL_UNUSED_ARG(iotype);
905 - #ifdef NETWARE
906 -@@ -153,7 +142,7 @@
907 - #else
908 - if (PerlLIO_setmode(fileno(fp), mode) != -1) {
909 - #endif
910 --# if defined(WIN32) && defined(__BORLANDC__)
911 -+# if defined(WIN32) && defined(__BORLANDC__)
912 - /*
913 - * The translation mode of the stream is maintained independent
914 - of
915 -@@ -169,12 +158,11 @@
916 - fp->flags |= _F_BIN;
917 - else
918 - fp->flags &= ~_F_BIN;
919 --# endif
920 -+# endif
921 - return 1;
922 - }
923 - else
924 - return 0;
925 --# endif
926 - #else
927 - # if defined(USEMYBINMODE)
928 - dTHX;
929 ---- perl-5.12.3/pp_sys.c 2011-01-09 20:20:58.000000000 +0000
930 -+++ perl-5.12.3/pp_sys.c 2011-02-21 09:38:50.000000000 +0000
931 -@@ -3308,14 +3308,6 @@
932 - RETPUSHNO;
933 - }
934 -
935 --#if defined(atarist) /* this will work with atariST. Configure will
936 -- make guesses for other systems. */
937 --# define FILE_base(f) ((f)->_base)
938 --# define FILE_ptr(f) ((f)->_ptr)
939 --# define FILE_cnt(f) ((f)->_cnt)
940 --# define FILE_bufsiz(f) ((f)->_cnt + ((f)->_ptr - (f)->_base))
941 --#endif
942 --
943 - PP(pp_fttext)
944 - {
945 - dVAR;
946 -@@ -5567,30 +5559,6 @@
947 - case 8:
948 - retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);
949 - break;
950 --#ifdef atarist
951 -- case 9:
952 -- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8]);
953 -- break;
954 -- case 10:
955 -- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]);
956 -- break;
957 -- case 11:
958 -- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],
959 -- a[10]);
960 -- break;
961 -- case 12:
962 -- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],
963 -- a[10],a[11]);
964 -- break;
965 -- case 13:
966 -- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],
967 -- a[10],a[11],a[12]);
968 -- break;
969 -- case 14:
970 -- retval = syscall(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],
971 -- a[10],a[11],a[12],a[13]);
972 -- break;
973 --#endif /* atarist */
974 - }
975 - SP = ORIGMARK;
976 - PUSHi(retval);
977 ---- perl-5.12.3/util.c 2011-01-09 20:20:58.000000000 +0000
978 -+++ perl-5.12.3/util.c 2011-02-21 09:38:51.000000000 +0000
979 -@@ -2545,7 +2545,7 @@
980 - return PerlIO_fdopen(p[This], mode);
981 - }
982 - #else
983 --#if defined(atarist) || defined(EPOC)
984 -+#if defined(EPOC)
985 - FILE *popen();
986 - PerlIO *
987 - Perl_my_popen(pTHX_ const char *cmd, const char *mode)
988 -@@ -2994,7 +2994,7 @@
989 - }
990 - #endif
991 -
992 --#if defined(atarist) || defined(OS2) || defined(EPOC)
993 -+#if defined(OS2) || defined(EPOC)
994 - int pclose();
995 - #ifdef HAS_FORK
996 - int /* Cannot prototype with I32
997 -@@ -3111,7 +3111,7 @@
998 - I32 len = 0;
999 - int retval;
1000 - char *bufend;
1001 --#if defined(DOSISH) && !defined(OS2) && !defined(atarist)
1002 -+#if defined(DOSISH) && !defined(OS2)
1003 - # define SEARCH_EXTS ".bat", ".cmd", NULL
1004 - # define MAX_EXT_LEN 4
1005 - #endif
1006 -@@ -3234,28 +3234,25 @@
1007 -
1008 - bufend = s + strlen(s);
1009 - while (s < bufend) {
1010 --#if defined(atarist) || defined(DOSISH)
1011 -+#if defined(DOSISH)
1012 - for (len = 0; *s
1013 --# ifdef atarist
1014 -- && *s != ','
1015 --# endif
1016 - && *s != ';'; len++, s++) {
1017 - if (len < sizeof tmpbuf)
1018 - tmpbuf[len] = *s;
1019 - }
1020 - if (len < sizeof tmpbuf)
1021 - tmpbuf[len] = '\0';
1022 --#else /* ! (atarist || DOSISH) */
1023 -+#else /* ! (DOSISH) */
1024 - s = delimcpy(tmpbuf, tmpbuf + sizeof tmpbuf, s, bufend,
1025 - ':',
1026 - &len);
1027 --#endif /* ! (atarist || DOSISH) */
1028 -+#endif /* ! (DOSISH) */
1029 - if (s < bufend)
1030 - s++;
1031 - if (len + 1 + strlen(scriptname) + MAX_EXT_LEN >= sizeof tmpbuf)
1032 - continue; /* don't search dir with too-long name */
1033 - if (len
1034 --# if defined(atarist) || defined(DOSISH)
1035 -+# if defined(DOSISH)
1036 - && tmpbuf[len - 1] != '/'
1037 - && tmpbuf[len - 1] != '\\'
1038 - # endif
1039 ---- perl-5.12.3/hints/freemint.sh 2011-01-09 20:20:58.000000000 +0000
1040 -+++ perl-5.12.3/hints/freemint.sh 2011-02-21 09:38:51.000000000 +0000
1041 -@@ -0,0 +1,34 @@
1042 -+# hints/freemint.sh
1043 -+#
1044 -+# talk to guido@××××××××.de if you want to change this file.
1045 -+# Please read the README.mint file.
1046 -+#
1047 -+# misc stuff
1048 -+
1049 -+archname="m68k-freemint"
1050 -+
1051 -+cccdlflags=' '; # avoid -fPIC
1052 -+ccdlflags="-Wl,-whole-archive -lgcc -lpthread -Wl,-no-whole-archive"
1053 -+
1054 -+# libs
1055 -+libpth="$prefix/lib /usr/local/lib /usr/lib"
1056 -+glibpth="$libpth"
1057 -+xlibpth="$libpth"
1058 -+
1059 -+ccflags="$ccflags -D_GNU_SOURCE"
1060 -+libswanted='m dld'
1061 -+dl_src='dl_dld.xs'
1062 -+dlext='o'
1063 -+lddlflags='-r'
1064 -+ldflags='-static'
1065 -+so='none'
1066 -+useshrplib='false'
1067 -+
1068 -+#sbrk() returns -1 (failure) somewhere in lib/unicore/mktables at
1069 -+#around 14M, so we need to use system malloc() as our sbrk()
1070 -+malloc_cflags='ccflags="-DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC $ccflags"'
1071 -+
1072 -+# Locales aren't feeling well. We crash if -Ox used.
1073 -+locale_cflags='optimize="-O0"'
1074 -+LC_ALL=C; export LC_ALL;
1075 -+LANG=C; export LANG;
1076
1077 diff --git a/dev-lang/perl/files/perl-5.14.1-cleanup-paths.patch b/dev-lang/perl/files/perl-5.14.1-cleanup-paths.patch
1078 deleted file mode 100644
1079 index c199041..0000000
1080 --- a/dev-lang/perl/files/perl-5.14.1-cleanup-paths.patch
1081 +++ /dev/null
1082 @@ -1,100 +0,0 @@
1083 -cut the crap of inventing paths, or adding search paths that we don't use
1084 -
1085 ---- Configure
1086 -+++ Configure
1087 -@@ -105,28 +105,6 @@
1088 - fi
1089 - fi
1090 -
1091 --: Proper PATH setting
1092 --paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin'
1093 --paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin"
1094 --paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin"
1095 --paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin"
1096 --paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb"
1097 --paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /opt/ansic/bin /usr/ccs/bin"
1098 --paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib"
1099 --paths="$paths /sbin /usr/sbin /usr/libexec"
1100 --paths="$paths /system/gnu_library/bin"
1101 --
1102 --for p in $paths
1103 --do
1104 -- case "$p_$PATH$p_" in
1105 -- *$p_$p$p_*) ;;
1106 -- *) test -d $p && PATH=$PATH$p_$p ;;
1107 -- esac
1108 --done
1109 --
1110 --PATH=.$p_$PATH
1111 --export PATH
1112 --
1113 - : shall we be using ksh?
1114 - inksh=''
1115 - needksh=''
1116 -@@ -8287,66 +8265,6 @@
1117 - ;;
1118 - esac
1119 -
1120 --# How will the perl executable find the installed shared $libperl?
1121 --# Add $xxx to ccdlflags.
1122 --# If we can't figure out a command-line option, use $shrpenv to
1123 --# set env LD_RUN_PATH. The main perl makefile uses this.
1124 --shrpdir=$archlibexp/CORE
1125 --xxx=''
1126 --tmp_shrpenv=''
1127 --if "$useshrplib"; then
1128 -- case "$osname" in
1129 -- aix)
1130 -- # We'll set it in Makefile.SH...
1131 -- ;;
1132 -- solaris)
1133 -- xxx="-R $shrpdir"
1134 -- ;;
1135 -- freebsd|mirbsd|netbsd|openbsd|interix|dragonfly)
1136 -- xxx="-Wl,-R$shrpdir"
1137 -- ;;
1138 -- bsdos|linux|irix*|dec_osf|gnu*)
1139 -- xxx="-Wl,-rpath,$shrpdir"
1140 -- ;;
1141 -- next)
1142 -- # next doesn't like the default...
1143 -- ;;
1144 -- beos)
1145 -- # beos doesn't like the default, either.
1146 -- ;;
1147 -- haiku)
1148 -- # Haiku doesn't like the default, either.
1149 -- ;;
1150 -- hpux*)
1151 -- # hpux doesn't like the default, either.
1152 -- tmp_shrpenv="env LDOPTS=\"+s +b${shrpdir}\""
1153 -- ;;
1154 -- cygwin)
1155 -- # cygwin needs only ldlibpth
1156 -- ;;
1157 -- *)
1158 -- tmp_shrpenv="env LD_RUN_PATH=$shrpdir"
1159 -- ;;
1160 -- esac
1161 -- case "$xxx" in
1162 -- '') ;;
1163 -- *)
1164 -- # Only add $xxx if it isn't already in ccdlflags.
1165 -- case " $ccdlflags " in
1166 -- *" $xxx "*) ;;
1167 -- *) ccdlflags="$ccdlflags $xxx"
1168 -- cat <<EOM >&4
1169 --
1170 --Adding $xxx to the flags
1171 --passed to $ld so that the perl executable will find the
1172 --installed shared $libperl.
1173 --
1174 --EOM
1175 -- ;;
1176 -- esac
1177 -- ;;
1178 -- esac
1179 --fi
1180 - # Fix ccdlflags in AIX for building external extensions.
1181 - # (For building Perl itself bare -bE:perl.exp is needed,
1182 - # Makefile.SH takes care of this.)
1183
1184 diff --git a/dev-lang/perl/files/perl-5.8.8-darwin-cc-ld.patch b/dev-lang/perl/files/perl-5.8.8-darwin-cc-ld.patch
1185 deleted file mode 100644
1186 index b96eea8..0000000
1187 --- a/dev-lang/perl/files/perl-5.8.8-darwin-cc-ld.patch
1188 +++ /dev/null
1189 @@ -1,22 +0,0 @@
1190 -Use $CC to link (and check for broken compilers), such that we don't get
1191 -linked modules of a different bitness.
1192 -http://bugs.gentoo.org/show_bug.cgi?id=297751
1193 -
1194 ---- hints/darwin.sh
1195 -+++ hints/darwin.sh
1196 -@@ -128,13 +128,13 @@
1197 - ccflags="${ccflags} ${cppflags}"
1198 -
1199 - # Known optimizer problems.
1200 --case "`cc -v 2>&1`" in
1201 -+case "`${cc:-gcc} -v 2>&1`" in
1202 - *"3.1 20020105"*) toke_cflags='optimize=""' ;;
1203 - esac
1204 -
1205 - # Shared library extension is .dylib.
1206 - # Bundle extension is .bundle.
1207 --ld='cc';
1208 -+ld="${cc:-gcc}";
1209 - so='dylib';
1210 - dlext='bundle';
1211 - usedl='define';
1212
1213 diff --git a/dev-lang/perl/files/perl-5.8.8-solaris-relocation.patch b/dev-lang/perl/files/perl-5.8.8-solaris-relocation.patch
1214 deleted file mode 100644
1215 index f2df825..0000000
1216 --- a/dev-lang/perl/files/perl-5.8.8-solaris-relocation.patch
1217 +++ /dev/null
1218 @@ -1,21 +0,0 @@
1219 -http://sourceware.org/ml/binutils/2005-12/msg00008.html
1220 ---- hints/solaris_2.sh
1221 -+++ hints/solaris_2.sh
1222 -@@ -289,7 +289,7 @@
1223 -
1224 - END
1225 - ccdlflags="$ccdlflags -Wl,-E"
1226 -- lddlflags="$lddlflags -Wl,-E -G"
1227 -+ lddlflags="$lddlflags -shared"
1228 - fi
1229 - fi
1230 -
1231 -@@ -555,7 +555,7 @@
1232 - : #ccflags="$ccflags -Wa,`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
1233 - fi
1234 - ldflags="$ldflags -m64"
1235 -- lddlflags="$lddlflags -G -m64"
1236 -+ lddlflags="$lddlflags -m64"
1237 - ;;
1238 - *)
1239 - ccflags="$ccflags `getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
1240
1241 diff --git a/dev-lang/perl/files/perl-5.8.8-solaris11.patch b/dev-lang/perl/files/perl-5.8.8-solaris11.patch
1242 deleted file mode 100644
1243 index 6ba72e0..0000000
1244 --- a/dev-lang/perl/files/perl-5.8.8-solaris11.patch
1245 +++ /dev/null
1246 @@ -1,14 +0,0 @@
1247 -Thanks to the nice OpenSolaris guys, I finally figured out that on
1248 -OpenSolaris 11, the header dependencies have changed.
1249 -
1250 ---- perl.h
1251 -+++ perl.h
1252 -@@ -1192,6 +1192,8 @@
1253 - */
1254 -
1255 - #if defined(I_SYSMODE) && !defined(PERL_MICRO)
1256 -+#include <sys/stat.h>
1257 -+#include <sys/vnode.h>
1258 - #include <sys/mode.h>
1259 - #endif
1260 -
1261
1262 diff --git a/dev-lang/perl/files/perl-5.8.8-usr-local.patch b/dev-lang/perl/files/perl-5.8.8-usr-local.patch
1263 deleted file mode 100644
1264 index c44b786..0000000
1265 --- a/dev-lang/perl/files/perl-5.8.8-usr-local.patch
1266 +++ /dev/null
1267 @@ -1,25 +0,0 @@
1268 -# remove /usr/local paths from all stuff thats used
1269 -# in Configure script, locincpth, loclibpth and glibpth are sedded
1270 -# afterwards not to conflict with the lib32 and lib64 patches
1271 -
1272 -diff -rubB perl-5.8.8.orig/Configure perl-5.8.8/Configure
1273 ---- perl-5.8.8.orig/Configure Tue Jan 15 10:41:29 2008
1274 -+++ perl-5.8.8/Configure Tue Jan 15 10:44:59 2008
1275 -@@ -4424,7 +4422,7 @@
1276 - : Set private lib path
1277 - case "$plibpth" in
1278 - '') if ./mips; then
1279 -- plibpth="$incpath/usr/lib /usr/local/lib /usr/ccs/lib"
1280 -+ plibpth="$incpath/usr/lib /usr/ccs/lib"
1281 - fi;;
1282 - esac
1283 - case "$libpth" in
1284 -@@ -19144,7 +19142,7 @@
1285 - case "$ranlib" in
1286 - :) ranlib='';;
1287 - '')
1288 -- ranlib=`./loc ranlib X /usr/bin /bin /usr/local/bin`
1289 -+ ranlib=`./loc ranlib X /usr/bin /bin`
1290 - $test -f $ranlib || ranlib=''
1291 - ;;
1292 - esac
1293
1294 diff --git a/dev-lang/perl/metadata.xml b/dev-lang/perl/metadata.xml
1295 deleted file mode 100644
1296 index a6186e4..0000000
1297 --- a/dev-lang/perl/metadata.xml
1298 +++ /dev/null
1299 @@ -1,12 +0,0 @@
1300 -<?xml version="1.0" encoding="UTF-8"?>
1301 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1302 -<pkgmetadata>
1303 - <herd>perl</herd>
1304 - <maintainer>
1305 - <email>perl@g.o</email>
1306 - <description>Primary Maintainer</description>
1307 - </maintainer>
1308 - <use>
1309 - <flag name='ithreads'>Enable Perl threads, has some compatibility problems</flag>
1310 - </use>
1311 -</pkgmetadata>
1312
1313 diff --git a/dev-lang/perl/perl-5.14.2-r1.ebuild b/dev-lang/perl/perl-5.14.2-r1.ebuild
1314 deleted file mode 100644
1315 index 724b9d6..0000000
1316 --- a/dev-lang/perl/perl-5.14.2-r1.ebuild
1317 +++ /dev/null
1318 @@ -1,523 +0,0 @@
1319 -# Copyright 1999-2012 Gentoo Foundation
1320 -# Distributed under the terms of the GNU General Public License v2
1321 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.14.2.ebuild,v 1.4 2012/03/03 12:29:38 grobian Exp $
1322 -
1323 -EAPI=4
1324 -
1325 -inherit eutils alternatives flag-o-matic toolchain-funcs multilib
1326 -
1327 -PATCH_VER=1
1328 -
1329 -PERL_OLDVERSEN="5.14.0 5.14.1"
1330 -MODULE_AUTHOR=FLORA
1331 -
1332 -SHORT_PV="${PV%.*}"
1333 -MY_P="perl-${PV/_rc/-RC}"
1334 -MY_PV="${PV%_rc*}"
1335 -
1336 -DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
1337 -
1338 -SRC_URI="
1339 - mirror://cpan/src/${MY_P}.tar.bz2
1340 - mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2
1341 - mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
1342 - http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2"
1343 -# mirror://cpan/src/${MY_P}.tar.bz2
1344 -# mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
1345 -HOMEPAGE="http://www.perl.org/"
1346 -
1347 -LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
1348 -SLOT="0"
1349 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1350 -IUSE="berkdb debug doc gdbm ithreads"
1351 -
1352 -COMMON_DEPEND="
1353 - berkdb? ( sys-libs/db )
1354 - gdbm? ( >=sys-libs/gdbm-1.8.3 )
1355 - app-arch/bzip2
1356 - sys-libs/zlib
1357 -"
1358 -DEPEND="${COMMON_DEPEND}
1359 - !prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
1360 -"
1361 -RDEPEND="${COMMON_DEPEND}
1362 -"
1363 -PDEPEND=">=app-admin/perl-cleaner-2.5"
1364 -
1365 -S="${WORKDIR}/${MY_P}"
1366 -
1367 -dual_scripts() {
1368 - src_remove_dual perl-core/Archive-Tar 1.760.0 ptar ptardiff ptargrep
1369 - src_remove_dual perl-core/Digest-SHA 5.610.0 shasum
1370 - src_remove_dual perl-core/CPAN 1.960.1_rc cpan
1371 - src_remove_dual perl-core/CPANPLUS 0.910.300 cpanp cpan2dist
1372 - src_remove_dual_file perl-core/CPANPLUS 0.910.300 /usr/bin/cpanp-run-perl
1373 - src_remove_dual perl-core/Encode 2.420.100_rc enc2xs piconv
1374 - src_remove_dual perl-core/ExtUtils-MakeMaker 6.570.500_rc instmodsh
1375 - src_remove_dual perl-core/ExtUtils-ParseXS 2.221.0 xsubpp
1376 - src_remove_dual perl-core/JSON-PP 2.271.50 json_pp
1377 - src_remove_dual perl-core/Module-Build 0.380.0 config_data
1378 - src_remove_dual perl-core/Module-CoreList 2.490.200_rc corelist
1379 - src_remove_dual perl-core/PodParser 1.370.0 pod2usage podchecker podselect
1380 - src_remove_dual perl-core/Test-Harness 3.230.0 prove
1381 - src_remove_dual perl-core/podlators 2.4.0 pod2man pod2text
1382 - src_remove_dual_man perl-core/podlators 2.4.0 /usr/share/man/man1/perlpodstyle.1
1383 -}
1384 -
1385 -pkg_setup() {
1386 - case ${CHOST} in
1387 - *-freebsd*) osname="freebsd" ;;
1388 - *-dragonfly*) osname="dragonfly" ;;
1389 - *-netbsd*) osname="netbsd" ;;
1390 - *-openbsd*) osname="openbsd" ;;
1391 - *-darwin*) osname="darwin" ;;
1392 - *-interix*) osname="interix" ;;
1393 - *) osname="linux" ;;
1394 - esac
1395 -
1396 - if use ithreads ; then
1397 - mythreading="-multi"
1398 - myarch="${CHOST%%-*}-${osname}-thread"
1399 - else
1400 - myarch="${CHOST%%-*}-${osname}"
1401 - fi
1402 - if use debug ; then
1403 - myarch="${myarch}-debug"
1404 - fi
1405 -
1406 - LIBPERL="libperl$(get_libname ${MY_PV} )"
1407 - PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}"
1408 - ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
1409 - SITE_LIB="/usr/local/$(get_libdir)/perl5/${MY_PV}"
1410 - SITE_ARCH="/usr/local/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
1411 - VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}"
1412 - VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}"
1413 -
1414 - if use ithreads ; then
1415 - echo ""
1416 - ewarn "THREADS WARNING:"
1417 - ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
1418 - ewarn "interpreter-level threading enabled."
1419 - ewarn "Threading is not supported by all applications "
1420 - ewarn "that compile against perl. You use threading at "
1421 - ewarn "your own discretion. "
1422 - fi
1423 - check_rebuild
1424 - dual_scripts
1425 -}
1426 -
1427 -check_rebuild() {
1428 - if has_version "<dev-lang/perl-${SHORT_PV}" ; then
1429 - echo ""
1430 - ewarn "UPDATE THE PERL MODULES:"
1431 - ewarn "After updating dev-lang/perl you must reinstall"
1432 - ewarn "the installed perl modules."
1433 - ewarn "Use: perl-cleaner --all"
1434 - elif has_version dev-lang/perl ; then
1435 - # doesnot work
1436 - #if ! has_version dev-lang/perl[ithreads=,debug=] ; then
1437 - #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
1438 - if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
1439 - ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
1440 - ( use debug && ! has_version dev-lang/perl[debug] ) || \
1441 - ( ! use debug && has_version dev-lang/perl[debug] ) ; then
1442 - echo ""
1443 - ewarn "TOGGLED USE-FLAGS WARNING:"
1444 - ewarn "You changed one of the use-flags ithreads or debug."
1445 - ewarn "You must rebuild all perl-modules installed."
1446 - ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
1447 - fi
1448 - fi
1449 -}
1450 -
1451 -src_prepare_update_patchlevel_h() {
1452 - [[ -f ${WORKDIR}/perl-patch/series ]] || return 0
1453 -
1454 - while read patch level ; do
1455 - sed -i -e "s/^\t,NULL$/ ,\"${patch//__/_}\"\n&/" "${S}"/patchlevel.h || die
1456 - done < "${WORKDIR}"/perl-patch/series
1457 -}
1458 -
1459 -src_prepare() {
1460 - EPATCH_SOURCE="${WORKDIR}/perl-patch" \
1461 - EPATCH_SUFFIX="diff" \
1462 - EPATCH_FORCE="yes" \
1463 - EPATCH_OPTS="-p1" \
1464 - epatch
1465 -
1466 - src_prepare_update_patchlevel_h
1467 -
1468 - # pod/perltoc.pod fails
1469 - # lib/ExtUtils/t/Embed.t fails
1470 - if ! tc-is-static-only ; then
1471 - ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die
1472 - ln -s ${LIBPERL} libperl$(get_libname ) || die
1473 - fi
1474 -
1475 - epatch "${FILESDIR}"/${PN}-5.12.3-aix-soname.patch
1476 - epatch "${FILESDIR}"/${PN}-5.8.8-solaris-relocation.patch
1477 - epatch "${FILESDIR}"/${PN}-5.8.8-solaris11.patch
1478 - epatch "${FILESDIR}"/${PN}-5.14.1-cleanup-paths.patch
1479 - epatch "${FILESDIR}"/${PN}-5.8.8-usr-local.patch
1480 - epatch "${FILESDIR}"/${PN}-5.10.1-hpux.patch
1481 - epatch "${FILESDIR}"/${PN}-5.8.8-darwin-cc-ld.patch
1482 - epatch "${FILESDIR}"/${PN}-5.12.3-mint.patch
1483 - epatch "${FILESDIR}"/${PN}-5.12.3-interix.patch
1484 -
1485 - # rest of usr-local patch
1486 - sed -i \
1487 - -e '/^locincpth=/c\locincpth=""' \
1488 - -e '/^loclibpth=/c\loclibpth=""' \
1489 - -e '/^glibpth=.*\/local\//s: /usr/local/lib.*":":' \
1490 - Configure || die
1491 -}
1492 -
1493 -myconf() {
1494 - # the myconf array is declared in src_configure
1495 - myconf=( "${myconf[@]}" "$@" )
1496 -}
1497 -
1498 -src_configure() {
1499 - declare -a myconf
1500 -
1501 - export LC_ALL="C"
1502 - [[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
1503 -
1504 - # some arches and -O do not mix :)
1505 - use ppc && replace-flags -O? -O1
1506 - # Perl has problems compiling with -Os in your flags with glibc
1507 - use elibc_uclibc || replace-flags "-Os" "-O2"
1508 - # This flag makes compiling crash in interesting ways
1509 - filter-flags "-malign-double"
1510 - # Fixes bug #97645
1511 - use ppc && filter-flags "-mpowerpc-gpopt"
1512 - # Fixes bug #143895 on gcc-4.1.1
1513 - filter-flags "-fsched2-use-superblocks"
1514 -
1515 - use sparc && myconf -Ud_longdbl
1516 -
1517 - # 266337
1518 - export BUILD_BZIP2=0
1519 - export BZIP2_INCLUDE=${EPREFIX}/usr/include
1520 - export BZIP2_LIB=${EPREFIX}/usr/$(get_libdir)
1521 - cat <<-EOF > "${S}/cpan/Compress-Raw-Zlib/config.in"
1522 - BUILD_ZLIB = False
1523 - INCLUDE = ${EPREFIX}/usr/include
1524 - LIB = ${EPREFIX}/usr/$(get_libdir)
1525 -
1526 - OLD_ZLIB = False
1527 - GZIP_OS_CODE = AUTO_DETECT
1528 - EOF
1529 -
1530 - # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
1531 -
1532 - myndbm='U'
1533 - mygdbm='U'
1534 - mydb='U'
1535 -
1536 - if use gdbm ; then
1537 - mygdbm='D'
1538 - myndbm='D'
1539 - fi
1540 - if use berkdb ; then
1541 - mydb='D'
1542 - has_version '=sys-libs/db-1*' && myndbm='D'
1543 - fi
1544 -
1545 - myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
1546 -
1547 - if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
1548 - ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
1549 - myconf -Ui_db -Ui_ndbm
1550 - fi
1551 -
1552 - use ithreads && myconf -Dusethreads
1553 -
1554 - if use debug ; then
1555 - append-cflags "-g"
1556 - myconf -DDEBUGGING
1557 - elif [[ ${CFLAGS} == *-g* ]] ; then
1558 - myconf -DDEBUGGING=-g
1559 - else
1560 - myconf -DDEBUGGING=none
1561 - fi
1562 -
1563 - if [[ -n ${PERL_OLDVERSEN} ]] ; then
1564 - local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v}/${myarch}${mythreading} ${v} "; done )
1565 - myconf -Dinc_version_list="${inclist}"
1566 - fi
1567 -
1568 - [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
1569 -
1570 - # Prefix: the host system needs not to follow Gentoo multilib stuff, and in
1571 - # Prefix itself we don't do multilib either, so make sure perl can find
1572 - # something compatible.
1573 - if use prefix ; then
1574 - local ldir
1575 - local llib
1576 - local paths=""
1577 - echo "int main() {}" > "${T}"/t.c
1578 - # need to ensure dirs contain compatible libs, bug #358875
1579 - for ldir in /lib /usr/lib /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 ; do
1580 - [[ -d ${ldir} ]] || continue
1581 - # find a random lib from here
1582 - llib=( ${ldir}/*$(get_libname) )
1583 - [[ -e ${llib[0]} ]] || continue
1584 - $(tc-getCC) -o "${T}"/t "${T}"/t.c ${llib[0]} >& /dev/null \
1585 - && paths="${paths} ${ldir}"
1586 - done
1587 - myconf "-Dlibpth=${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir) ${paths}"
1588 - elif [[ $(get_libdir) != "lib" ]] ; then
1589 - # We need to use " and not ', as the written config.sh use ' ...
1590 - myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
1591 - fi
1592 -
1593 - # don't try building ODBM, bug #354453
1594 - myconf -Dnoextensions=ODBM_File
1595 -
1596 - sh Configure \
1597 - -des \
1598 - -Duseshrplib \
1599 - -Darchname="${myarch}" \
1600 - -Dcc="$(tc-getCC)" \
1601 - -Doptimize="${CFLAGS}" \
1602 - -Dldflags="${LDFLAGS}" \
1603 - -Dprefix="${EPREFIX}"'/usr' \
1604 - -Dinstallprefix="${EPREFIX}"'/usr' \
1605 - -Dsiteprefix="${EPREFIX}"'/usr' \
1606 - -Dvendorprefix="${EPREFIX}"'/usr' \
1607 - -Dscriptdir="${EPREFIX}"'/usr/bin' \
1608 - -Dprivlib="${EPREFIX}${PRIV_LIB}" \
1609 - -Darchlib="${EPREFIX}${ARCH_LIB}" \
1610 - -Dsitelib="${EPREFIX}${SITE_LIB}" \
1611 - -Dsitearch="${EPREFIX}${SITE_ARCH}" \
1612 - -Dvendorlib="${EPREFIX}${VENDOR_LIB}" \
1613 - -Dvendorarch="${EPREFIX}${VENDOR_ARCH}" \
1614 - -Dman1dir="${EPREFIX}"/usr/share/man/man1 \
1615 - -Dman3dir="${EPREFIX}"/usr/share/man/man3 \
1616 - -Dsiteman1dir="${EPREFIX}"/usr/share/man/man1 \
1617 - -Dsiteman3dir="${EPREFIX}"/usr/share/man/man3 \
1618 - -Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \
1619 - -Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \
1620 - -Dman1ext='1' \
1621 - -Dman3ext='3pm' \
1622 - -Dlibperl="${LIBPERL}" \
1623 - -Dlocincpth="${EPREFIX}"'/usr/include ' \
1624 - -Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \
1625 - -Duselargefiles \
1626 - -Dd_semctl_semun \
1627 - -Dcf_by='Gentoo' \
1628 - -Dmyhostname='localhost' \
1629 - -Dperladmin='root@localhost' \
1630 - -Dinstallusrbinperl='n' \
1631 - -Ud_csh \
1632 - -Uusenm \
1633 - "${myconf[@]}" || die "Unable to configure"
1634 -}
1635 -
1636 -src_test() {
1637 - if [[ ${EUID} == 0 ]] ; then
1638 - ewarn "Test fails with a sandbox error (#328793) if run as root. Skipping tests..."
1639 - return 0
1640 - fi
1641 - use elibc_uclibc && export MAKEOPTS+=" -j1"
1642 - TEST_JOBS=$(echo -j1 ${MAKEOPTS} | sed -r 's/.*(-j[[:space:]]*|--jobs=)([[:digit:]]+).*/\2/' ) \
1643 - make test_harness || die "test failed"
1644 -}
1645 -
1646 -src_install() {
1647 - local i
1648 - local coredir="${ARCH_LIB}/CORE"
1649 -
1650 - emake DESTDIR="${D}" install
1651 -
1652 - rm -f "${ED}"/usr/bin/perl
1653 - ln -s perl${MY_PV} "${ED}"/usr/bin/perl || die
1654 -
1655 - if ! tc-is-static-only ; then
1656 - dolib.so "${ED}"${coredir}/${LIBPERL}
1657 - rm -f "${ED}"${coredir}/${LIBPERL}
1658 - ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
1659 - ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname) || die
1660 - ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/${LIBPERL} || die
1661 - ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die
1662 - ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname) || die
1663 - fi
1664 -
1665 - rm -rf "${ED}"/usr/share/man/man3 || die "Unable to remove module man pages"
1666 -
1667 -# # A poor fix for the miniperl issues
1668 -# dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
1669 -# fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
1670 -# dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
1671 -# fperms 0755 /usr/bin/xsubpp
1672 -
1673 - # This removes ${D} from Config.pm
1674 - for i in $(find "${D}" -iname "Config.pm" ) ; do
1675 - einfo "Removing ${D} from ${i}..."
1676 - sed -i -e "s:${D}::" "${i}" || die "Sed failed"
1677 - done
1678 -
1679 - find "${ED}" -type f -name .packlist -delete || die
1680 -
1681 - # Note: find out from psm why we would need/want this.
1682 - # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
1683 - # find "${ED}" -name "*NDBM*" | xargs rm -f
1684 -
1685 - dodoc Changes* README AUTHORS
1686 -
1687 - if use doc ; then
1688 - # HTML Documentation
1689 - # We expect errors, warnings, and such with the following.
1690 -
1691 - dodir /usr/share/doc/${PF}/html
1692 - LD_LIBRARY_PATH=. ./perl installhtml \
1693 - --podroot='.' \
1694 - --podpath='lib:ext:pod:vms' \
1695 - --recurse \
1696 - --htmldir="${ED}/usr/share/doc/${PF}/html" \
1697 - --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
1698 - fi
1699 -
1700 - dual_scripts
1701 -}
1702 -
1703 -pkg_postinst() {
1704 - dual_scripts
1705 -
1706 - if [[ "${ROOT}" = "/" ]] ; then
1707 - local INC DIR file
1708 - INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${SHORT_PV}'|etc|local|perl$/; print "$line\n" }')
1709 - einfo "Removing old .ph files"
1710 - for DIR in ${INC} ; do
1711 - if [[ -d "${DIR}" ]] ; then
1712 - for file in $(find "${DIR}" -name "*.ph" -type f ) ; do
1713 - rm -f "${file}"
1714 - einfo "<< ${file}"
1715 - done
1716 - fi
1717 - done
1718 - # Silently remove the now empty dirs
1719 - for DIR in ${INC} ; do
1720 - if [[ -d "${DIR}" ]] ; then
1721 - find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
1722 - fi
1723 - done
1724 -
1725 -# ebegin "Generating ConfigLocal.pm (ignore any error)"
1726 -# enc2xs -C
1727 -
1728 - einfo "Converting C header files to the corresponding Perl format (ignore any error)"
1729 - # Prefix note: unprefixed as this is all kernel/libc stuff that we never provide
1730 - pushd /usr/include >/dev/null
1731 - h2ph -Q -a -d "${EPREFIX}"${ARCH_LIB} \
1732 - asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h \
1733 - sys/socket.h sys/time.h wait.h sysexits.h
1734 - popd >/dev/null
1735 -
1736 -# This has been moved into a function because rumor has it that a future release
1737 -# of portage will allow us to check what version was just removed - which means
1738 -# we will be able to invoke this only as needed :)
1739 - # Tried doing this via -z, but $INC is too big...
1740 - #if [[ "${INC}x" != "x" ]]; then
1741 - # cleaner_msg
1742 - #fi
1743 - fi
1744 -}
1745 -
1746 -pkg_postrm(){
1747 - dual_scripts
1748 -
1749 -# if [[ -e ${ARCH_LIB}/Encode/ConfigLocal.pm ]] ; then
1750 -# ebegin "Removing ConfigLocal.pm"
1751 -# rm "${ARCH_LIB}/Encode/ConfigLocal.pm"
1752 -# fi
1753 -}
1754 -
1755 -cleaner_msg() {
1756 - eerror "You have had multiple versions of perl. It is recommended"
1757 - eerror "that you run perl-cleaner now. perl-cleaner will"
1758 - eerror "assist with this transition. This script is capable"
1759 - eerror "of cleaning out old .ph files, rebuilding modules for "
1760 - eerror "your new version of perl, as well as re-emerging"
1761 - eerror "applications that compiled against your old libperl$(get_libname)"
1762 - eerror
1763 - eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
1764 - eerror "Part of the rebuilding of applications compiled against "
1765 - eerror "your old libperl involves temporarily unmerging"
1766 - eerror "them - interruptions could leave you with unmerged"
1767 - eerror "packages before they can be remerged."
1768 - eerror ""
1769 - eerror "If you have run perl-cleaner and a package still gives"
1770 - eerror "you trouble, and re-emerging it fails to correct"
1771 - eerror "the problem, please check http://bugs.gentoo.org/"
1772 - eerror "for more information or to report a bug."
1773 - eerror ""
1774 -}
1775 -
1776 -src_remove_dual_file() {
1777 - local i pkg ver
1778 - pkg="$1"
1779 - ver="$2"
1780 - shift 2
1781 - case "${EBUILD_PHASE:-none}" in
1782 - postinst|postrm)
1783 - for i in "$@" ; do
1784 - alternatives_auto_makesym "${i}" "${i}-[0-9]*"
1785 - done
1786 - ;;
1787 - setup)
1788 - for i in "$@" ; do
1789 - if [[ -f ${EROOT}${i} && ! -h ${EROOT}${i} ]] ; then
1790 - has_version ${pkg} && ewarn "You must reinstall ${pkg} !"
1791 - break
1792 - fi
1793 - done
1794 - ;;
1795 - install)
1796 - for i in "$@" ; do
1797 - if ! [[ -f "${ED}"${i} ]] ; then
1798 - ewarn "${i} does not exist!"
1799 - continue
1800 - fi
1801 - mv "${ED}"${i}{,-${ver}-${P}} || die
1802 - done
1803 - ;;
1804 - esac
1805 -}
1806 -
1807 -src_remove_dual_man() {
1808 - local i pkg ver ff
1809 - pkg="$1"
1810 - ver="$2"
1811 - shift 2
1812 - case "${EBUILD_PHASE:-none}" in
1813 - postinst|postrm)
1814 - for i in "$@" ; do
1815 - ff=`echo "${EROOT}${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}}"*`
1816 - ff=${ff##*${i#${i%.[0-9]}}}
1817 - alternatives_auto_makesym "${i}${ff}" "${i%.[0-9]}-[0-9]*"
1818 - done
1819 - ;;
1820 - install)
1821 - for i in "$@" ; do
1822 - if ! [[ -f "${ED}"${i} ]] ; then
1823 - ewarn "${i} does not exist!"
1824 - continue
1825 - fi
1826 - mv "${ED}"${i} "${ED}"${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}} || die
1827 - done
1828 - ;;
1829 - esac
1830 -}
1831 -
1832 -src_remove_dual() {
1833 - local i pkg ver
1834 - pkg="$1"
1835 - ver="$2"
1836 - shift 2
1837 - for i in "$@" ; do
1838 - src_remove_dual_file "${pkg}" "${ver}" "/usr/bin/${i}"
1839 - src_remove_dual_man "${pkg}" "${ver}" "/usr/share/man/man1/${i}.1"
1840 - done
1841 -}
1842
1843 diff --git a/dev-lang/perl/perl-5.14.2-r4.ebuild b/dev-lang/perl/perl-5.14.2-r4.ebuild
1844 deleted file mode 100644
1845 index 3b74bc6..0000000
1846 --- a/dev-lang/perl/perl-5.14.2-r4.ebuild
1847 +++ /dev/null
1848 @@ -1,113 +0,0 @@
1849 -# Copyright 1999-2012 Gentoo Foundation
1850 -# Distributed under the terms of the GNU General Public License v2
1851 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.14.2.ebuild,v 1.4 2012/03/03 12:29:38 grobian Exp $
1852 -
1853 -EAPI=4
1854 -
1855 -inherit eutils alternatives flag-o-matic toolchain-funcs multilib
1856 -
1857 -PATCH_VER=5
1858 -
1859 -PERL_OLDVERSEN="5.14.0 5.14.1"
1860 -MODULE_AUTHOR=FLORA
1861 -
1862 -SHORT_PV="${PV%.*}"
1863 -MY_P="perl-${PV/_rc/-RC}"
1864 -MY_PV="${PV%_rc*}"
1865 -
1866 -DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
1867 -
1868 -SRC_URI="
1869 - mirror://cpan/src/${MY_P}.tar.bz2
1870 - mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2
1871 - mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
1872 - http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2"
1873 -HOMEPAGE="http://www.perl.org/"
1874 -
1875 -LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
1876 -SLOT="0"
1877 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1878 -IUSE="berkdb debug doc gdbm ithreads"
1879 -
1880 -RDEPEND="
1881 - berkdb? ( sys-libs/db )
1882 - gdbm? ( >=sys-libs/gdbm-1.8.3 )
1883 - app-arch/bzip2
1884 - sys-libs/zlib
1885 -"
1886 -DEPEND="${RDEPEND}
1887 - !prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
1888 -"
1889 -PDEPEND=">=app-admin/perl-cleaner-2.5"
1890 -
1891 -S="${WORKDIR}/${MY_P}"
1892 -
1893 -dual_scripts() {
1894 - src_remove_dual perl-core/Archive-Tar 1.760.0 ptar ptardiff ptargrep
1895 - src_remove_dual perl-core/Digest-SHA 5.610.0 shasum
1896 - src_remove_dual perl-core/CPAN 1.960.1_rc cpan
1897 - src_remove_dual perl-core/CPANPLUS 0.910.300 cpanp cpan2dist
1898 - src_remove_dual_file perl-core/CPANPLUS 0.910.300 /usr/bin/cpanp-run-perl
1899 - src_remove_dual perl-core/Encode 2.420.100_rc enc2xs piconv
1900 - src_remove_dual perl-core/ExtUtils-MakeMaker 6.570.500_rc instmodsh
1901 - src_remove_dual perl-core/ExtUtils-ParseXS 2.221.0 xsubpp
1902 - src_remove_dual perl-core/JSON-PP 2.271.50 json_pp
1903 - src_remove_dual perl-core/Module-Build 0.380.0 config_data
1904 - src_remove_dual perl-core/Module-CoreList 2.490.200_rc corelist
1905 - src_remove_dual perl-core/PodParser 1.370.0 pod2usage podchecker podselect
1906 - src_remove_dual perl-core/Test-Harness 3.230.0 prove
1907 - src_remove_dual perl-core/podlators 2.4.0 pod2man pod2text
1908 - src_remove_dual_man perl-core/podlators 2.4.0 /usr/share/man/man1/perlpodstyle.1
1909 -}
1910 -
1911 -# eblit-include [--skip] <function> [version]
1912 -eblit-include() {
1913 - local skipable=false
1914 - [[ $1 == "--skip" ]] && skipable=true && shift
1915 - [[ $1 == pkg_* ]] && skipable=true
1916 -
1917 - local e v func=$1 ver=$2
1918 - [[ -z ${func} ]] && die "Usage: eblit-include <function> [version]"
1919 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
1920 - e="${FILESDIR}/eblits/${func}${v}.eblit"
1921 - if [[ -e ${e} ]] ; then
1922 - source "${e}"
1923 - return 0
1924 - fi
1925 - done
1926 - ${skipable} && return 0
1927 - die "Could not locate requested eblit '${func}' in ${FILESDIR}/eblits/"
1928 -}
1929 -
1930 -# eblit-run-maybe <function>
1931 -# run the specified function if it is defined
1932 -eblit-run-maybe() {
1933 - [[ $(type -t "$@") == "function" ]] && "$@"
1934 -}
1935 -
1936 -# eblit-run <function> [version]
1937 -# aka: src_unpack() { eblit-run src_unpack ; }
1938 -eblit-run() {
1939 - eblit-include --skip common "${*:2}"
1940 - eblit-include "$@"
1941 - eblit-run-maybe eblit-$1-pre
1942 - eblit-${PN}-$1
1943 - eblit-run-maybe eblit-$1-post
1944 -}
1945 -
1946 -#src_unpack() { eblit-run src_unpack v50140021 ; }
1947 -src_prepare() { eblit-run src_prepare v50140021 ; }
1948 -src_configure() { eblit-run src_configure v50140021 ; }
1949 -#src_compile() { eblit-run src_compile v50140021 ; }
1950 -src_test() { eblit-run src_test v50140021 ; }
1951 -src_install() { eblit-run src_install v50140021 ; }
1952 -
1953 -# FILESDIR might not be available during binpkg install
1954 -# FIXME: version passing
1955 -for x in setup {pre,post}{inst,rm} ; do
1956 - e="${FILESDIR}/eblits/pkg_${x}-v50140021.eblit"
1957 - if [[ -e ${e} ]] ; then
1958 - . "${e}"
1959 - eval "pkg_${x}() { eblit-run pkg_${x} v50140021 ; }"
1960 - fi
1961 -done
1962
1963 diff --git a/dev-lang/perl/perl-5.14.2.ebuild b/dev-lang/perl/perl-5.14.2.ebuild
1964 deleted file mode 100644
1965 index a325acb..0000000
1966 --- a/dev-lang/perl/perl-5.14.2.ebuild
1967 +++ /dev/null
1968 @@ -1,715 +0,0 @@
1969 -# Copyright 1999-2012 Gentoo Foundation
1970 -# Distributed under the terms of the GNU General Public License v2
1971 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.14.2.ebuild,v 1.4 2012/03/03 12:29:38 grobian Exp $
1972 -
1973 -EAPI=4
1974 -
1975 -inherit eutils alternatives flag-o-matic toolchain-funcs multilib
1976 -
1977 -PATCH_VER=1
1978 -
1979 -PERL_OLDVERSEN="5.14.0 5.14.1"
1980 -MODULE_AUTHOR=FLORA
1981 -
1982 -SHORT_PV="${PV%.*}"
1983 -MY_P="perl-${PV/_rc/-RC}"
1984 -MY_PV="${PV%_rc*}"
1985 -
1986 -DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
1987 -
1988 -SRC_URI="
1989 - mirror://cpan/src/${MY_P}.tar.bz2
1990 - mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2
1991 - mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
1992 - http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2"
1993 -# mirror://cpan/src/${MY_P}.tar.bz2
1994 -# mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
1995 -HOMEPAGE="http://www.perl.org/"
1996 -
1997 -LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
1998 -SLOT="0"
1999 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
2000 -IUSE="berkdb build debug doc gdbm ithreads"
2001 -
2002 -COMMON_DEPEND="
2003 - berkdb? ( sys-libs/db )
2004 - gdbm? ( >=sys-libs/gdbm-1.8.3 )
2005 - app-arch/bzip2
2006 - sys-libs/zlib
2007 -"
2008 -DEPEND="${COMMON_DEPEND}
2009 - !prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
2010 -"
2011 -RDEPEND="${COMMON_DEPEND}
2012 -"
2013 -PDEPEND=">=app-admin/perl-cleaner-2.5"
2014 -
2015 -S="${WORKDIR}/${MY_P}"
2016 -
2017 -dual_scripts() {
2018 - src_remove_dual perl-core/Archive-Tar 1.760.0 ptar ptardiff ptargrep
2019 - src_remove_dual perl-core/Digest-SHA 5.610.0 shasum
2020 - src_remove_dual perl-core/CPAN 1.960.1_rc cpan
2021 - src_remove_dual perl-core/CPANPLUS 0.910.300 cpanp cpan2dist
2022 - src_remove_dual_file perl-core/CPANPLUS 0.910.300 /usr/bin/cpanp-run-perl
2023 - src_remove_dual perl-core/Encode 2.420.100_rc enc2xs piconv
2024 - src_remove_dual perl-core/ExtUtils-MakeMaker 6.570.500_rc instmodsh
2025 - src_remove_dual perl-core/ExtUtils-ParseXS 2.221.0 xsubpp
2026 - src_remove_dual perl-core/JSON-PP 2.271.50 json_pp
2027 - src_remove_dual perl-core/Module-Build 0.380.0 config_data
2028 - src_remove_dual perl-core/Module-CoreList 2.490.200_rc corelist
2029 - src_remove_dual perl-core/PodParser 1.370.0 pod2usage podchecker podselect
2030 - src_remove_dual perl-core/Test-Harness 3.230.0 prove
2031 - src_remove_dual perl-core/podlators 2.4.0 pod2man pod2text
2032 - src_remove_dual_man perl-core/podlators 2.4.0 /usr/share/man/man1/perlpodstyle.1
2033 -}
2034 -
2035 -pkg_pretend() {
2036 - check_rebuild
2037 -}
2038 -
2039 -pkg_setup() {
2040 - case ${CHOST} in
2041 - *-freebsd*) osname="freebsd" ;;
2042 - *-dragonfly*) osname="dragonfly" ;;
2043 - *-netbsd*) osname="netbsd" ;;
2044 - *-openbsd*) osname="openbsd" ;;
2045 - *-darwin*) osname="darwin" ;;
2046 - *-interix*) osname="interix" ;;
2047 - *) osname="linux" ;;
2048 - esac
2049 -
2050 - if use ithreads ; then
2051 - mythreading="-multi"
2052 - myarch="${CHOST%%-*}-${osname}-thread"
2053 - else
2054 - myarch="${CHOST%%-*}-${osname}"
2055 - fi
2056 - if use debug ; then
2057 - myarch="${myarch}-debug"
2058 - fi
2059 -
2060 - LIBPERL="libperl$(get_libname ${MY_PV} )"
2061 - PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}"
2062 - ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
2063 - SITE_LIB="/usr/local/$(get_libdir)/perl5/${MY_PV}"
2064 - SITE_ARCH="/usr/local/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
2065 - VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}"
2066 - VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}"
2067 -
2068 - if use ithreads ; then
2069 - echo ""
2070 - ewarn "THREADS WARNING:"
2071 - ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
2072 - ewarn "interpreter-level threading enabled."
2073 - ewarn "Threading is not supported by all applications "
2074 - ewarn "that compile against perl. You use threading at "
2075 - ewarn "your own discretion. "
2076 - fi
2077 - check_rebuild
2078 - dual_scripts
2079 -}
2080 -
2081 -check_rebuild() {
2082 - if has_version "<dev-lang/perl-${SHORT_PV}" ; then
2083 - echo ""
2084 - ewarn "UPDATE THE PERL MODULES:"
2085 - ewarn "After updating dev-lang/perl you must reinstall"
2086 - ewarn "the installed perl modules."
2087 - ewarn "Use: perl-cleaner --all"
2088 - elif has_version dev-lang/perl ; then
2089 - # doesnot work
2090 - #if ! has_version dev-lang/perl[ithreads=,debug=] ; then
2091 - #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
2092 - if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
2093 - ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
2094 - ( use debug && ! has_version dev-lang/perl[debug] ) || \
2095 - ( ! use debug && has_version dev-lang/perl[debug] ) ; then
2096 - echo ""
2097 - ewarn "TOGGLED USE-FLAGS WARNING:"
2098 - ewarn "You changed one of the use-flags ithreads or debug."
2099 - ewarn "You must rebuild all perl-modules installed."
2100 - ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
2101 - fi
2102 - fi
2103 -}
2104 -
2105 -src_prepare_update_patchlevel_h() {
2106 - [[ -f ${WORKDIR}/perl-patch/series ]] || return 0
2107 -
2108 - while read patch level ; do
2109 - sed -i -e "s/^\t,NULL$/ ,\"${patch//__/_}\"\n&/" "${S}"/patchlevel.h || die
2110 - done < "${WORKDIR}"/perl-patch/series
2111 -}
2112 -
2113 -src_prepare() {
2114 - EPATCH_SOURCE="${WORKDIR}/perl-patch" \
2115 - EPATCH_SUFFIX="diff" \
2116 - EPATCH_FORCE="yes" \
2117 - EPATCH_OPTS="-p1" \
2118 - epatch
2119 -
2120 - src_prepare_update_patchlevel_h
2121 -
2122 - # pod/perltoc.pod fails
2123 - # lib/ExtUtils/t/Embed.t fails
2124 - if ! tc-is-static-only ; then
2125 - ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die
2126 - ln -s ${LIBPERL} libperl$(get_libname ) || die
2127 - fi
2128 -
2129 - epatch "${FILESDIR}"/${PN}-5.12.3-aix-soname.patch
2130 - epatch "${FILESDIR}"/${PN}-5.8.8-solaris-relocation.patch
2131 - epatch "${FILESDIR}"/${PN}-5.8.8-solaris11.patch
2132 - epatch "${FILESDIR}"/${PN}-5.14.1-cleanup-paths.patch
2133 - epatch "${FILESDIR}"/${PN}-5.8.8-usr-local.patch
2134 - epatch "${FILESDIR}"/${PN}-5.10.1-hpux.patch
2135 - epatch "${FILESDIR}"/${PN}-5.8.8-darwin-cc-ld.patch
2136 - epatch "${FILESDIR}"/${PN}-5.12.3-mint.patch
2137 - epatch "${FILESDIR}"/${PN}-5.12.3-interix.patch
2138 -
2139 - # rest of usr-local patch
2140 - sed -i \
2141 - -e '/^locincpth=/c\locincpth=""' \
2142 - -e '/^loclibpth=/c\loclibpth=""' \
2143 - -e '/^glibpth=.*\/local\//s: /usr/local/lib.*":":' \
2144 - Configure || die
2145 -}
2146 -
2147 -myconf() {
2148 - # the myconf array is declared in src_configure
2149 - myconf=( "${myconf[@]}" "$@" )
2150 -}
2151 -
2152 -src_configure() {
2153 - declare -a myconf
2154 -
2155 - export LC_ALL="C"
2156 - [[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
2157 -
2158 - # some arches and -O do not mix :)
2159 - use ppc && replace-flags -O? -O1
2160 - # Perl has problems compiling with -Os in your flags with glibc
2161 - use elibc_uclibc || replace-flags "-Os" "-O2"
2162 - # This flag makes compiling crash in interesting ways
2163 - filter-flags "-malign-double"
2164 - # Fixes bug #97645
2165 - use ppc && filter-flags "-mpowerpc-gpopt"
2166 - # Fixes bug #143895 on gcc-4.1.1
2167 - filter-flags "-fsched2-use-superblocks"
2168 -
2169 - use sparc && myconf -Ud_longdbl
2170 -
2171 - # 266337
2172 - export BUILD_BZIP2=0
2173 - export BZIP2_INCLUDE=${EPREFIX}/usr/include
2174 - export BZIP2_LIB=${EPREFIX}/usr/$(get_libdir)
2175 - cat <<-EOF > "${S}/cpan/Compress-Raw-Zlib/config.in"
2176 - BUILD_ZLIB = False
2177 - INCLUDE = ${EPREFIX}/usr/include
2178 - LIB = ${EPREFIX}/usr/$(get_libdir)
2179 -
2180 - OLD_ZLIB = False
2181 - GZIP_OS_CODE = AUTO_DETECT
2182 - EOF
2183 -
2184 - # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
2185 -
2186 - myndbm='U'
2187 - mygdbm='U'
2188 - mydb='U'
2189 -
2190 - if use gdbm ; then
2191 - mygdbm='D'
2192 - myndbm='D'
2193 - fi
2194 - if use berkdb ; then
2195 - mydb='D'
2196 - has_version '=sys-libs/db-1*' && myndbm='D'
2197 - fi
2198 -
2199 - myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
2200 -
2201 - if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
2202 - ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
2203 - myconf -Ui_db -Ui_ndbm
2204 - fi
2205 -
2206 - use ithreads && myconf -Dusethreads
2207 -
2208 - if use debug ; then
2209 - append-cflags "-g"
2210 - myconf -DDEBUGGING
2211 - elif [[ ${CFLAGS} == *-g* ]] ; then
2212 - myconf -DDEBUGGING=-g
2213 - else
2214 - myconf -DDEBUGGING=none
2215 - fi
2216 -
2217 - if [[ -n ${PERL_OLDVERSEN} ]] ; then
2218 - local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v}/${myarch}${mythreading} ${v} "; done )
2219 - myconf -Dinc_version_list="${inclist}"
2220 - fi
2221 -
2222 - [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
2223 -
2224 - # Prefix: the host system needs not to follow Gentoo multilib stuff, and in
2225 - # Prefix itself we don't do multilib either, so make sure perl can find
2226 - # something compatible.
2227 - if use prefix ; then
2228 - local ldir
2229 - local llib
2230 - local paths=""
2231 - echo "int main() {}" > "${T}"/t.c
2232 - # need to ensure dirs contain compatible libs, bug #358875
2233 - for ldir in /lib /usr/lib /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 ; do
2234 - [[ -d ${ldir} ]] || continue
2235 - # find a random lib from here
2236 - llib=( ${ldir}/*$(get_libname) )
2237 - [[ -e ${llib[0]} ]] || continue
2238 - $(tc-getCC) -o "${T}"/t "${T}"/t.c ${llib[0]} >& /dev/null \
2239 - && paths="${paths} ${ldir}"
2240 - done
2241 - myconf "-Dlibpth=${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir) ${paths}"
2242 - elif [[ $(get_libdir) != "lib" ]] ; then
2243 - # We need to use " and not ', as the written config.sh use ' ...
2244 - myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
2245 - fi
2246 -
2247 - # don't try building ODBM, bug #354453
2248 - myconf -Dnoextensions=ODBM_File
2249 -
2250 - sh Configure \
2251 - -des \
2252 - -Duseshrplib \
2253 - -Darchname="${myarch}" \
2254 - -Dcc="$(tc-getCC)" \
2255 - -Doptimize="${CFLAGS}" \
2256 - -Dldflags="${LDFLAGS}" \
2257 - -Dprefix="${EPREFIX}"'/usr' \
2258 - -Dinstallprefix="${EPREFIX}"'/usr' \
2259 - -Dsiteprefix="${EPREFIX}"'/usr' \
2260 - -Dvendorprefix="${EPREFIX}"'/usr' \
2261 - -Dscriptdir="${EPREFIX}"'/usr/bin' \
2262 - -Dprivlib="${EPREFIX}${PRIV_LIB}" \
2263 - -Darchlib="${EPREFIX}${ARCH_LIB}" \
2264 - -Dsitelib="${EPREFIX}${SITE_LIB}" \
2265 - -Dsitearch="${EPREFIX}${SITE_ARCH}" \
2266 - -Dvendorlib="${EPREFIX}${VENDOR_LIB}" \
2267 - -Dvendorarch="${EPREFIX}${VENDOR_ARCH}" \
2268 - -Dman1dir="${EPREFIX}"/usr/share/man/man1 \
2269 - -Dman3dir="${EPREFIX}"/usr/share/man/man3 \
2270 - -Dsiteman1dir="${EPREFIX}"/usr/share/man/man1 \
2271 - -Dsiteman3dir="${EPREFIX}"/usr/share/man/man3 \
2272 - -Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \
2273 - -Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \
2274 - -Dman1ext='1' \
2275 - -Dman3ext='3pm' \
2276 - -Dlibperl="${LIBPERL}" \
2277 - -Dlocincpth="${EPREFIX}"'/usr/include ' \
2278 - -Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \
2279 - -Duselargefiles \
2280 - -Dd_semctl_semun \
2281 - -Dcf_by='Gentoo' \
2282 - -Dmyhostname='localhost' \
2283 - -Dperladmin='root@localhost' \
2284 - -Dinstallusrbinperl='n' \
2285 - -Ud_csh \
2286 - -Uusenm \
2287 - "${myconf[@]}" || die "Unable to configure"
2288 -}
2289 -
2290 -src_test() {
2291 - if [[ ${EUID} == 0 ]] ; then
2292 - ewarn "Test fails with a sandbox error (#328793) if run as root. Skipping tests..."
2293 - return 0
2294 - fi
2295 - use elibc_uclibc && export MAKEOPTS+=" -j1"
2296 - TEST_JOBS=$(echo -j1 ${MAKEOPTS} | sed -r 's/.*(-j[[:space:]]*|--jobs=)([[:digit:]]+).*/\2/' ) \
2297 - make test_harness || die "test failed"
2298 -}
2299 -
2300 -src_install() {
2301 - local i
2302 - local coredir="${ARCH_LIB}/CORE"
2303 -
2304 - local installtarget=install
2305 - if use build ; then
2306 - installtarget=install.perl
2307 - fi
2308 - emake DESTDIR="${D}" ${installtarget}
2309 -
2310 - rm -f "${ED}"/usr/bin/perl
2311 - ln -s perl${MY_PV} "${ED}"/usr/bin/perl || die
2312 -
2313 - if ! tc-is-static-only ; then
2314 - dolib.so "${ED}"${coredir}/${LIBPERL}
2315 - rm -f "${ED}"${coredir}/${LIBPERL}
2316 - ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
2317 - ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname) || die
2318 - ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/${LIBPERL} || die
2319 - ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die
2320 - ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname) || die
2321 - fi
2322 -
2323 - rm -rf "${ED}"/usr/share/man/man3 || die "Unable to remove module man pages"
2324 -
2325 -# # A poor fix for the miniperl issues
2326 -# dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
2327 -# fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
2328 -# dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
2329 -# fperms 0755 /usr/bin/xsubpp
2330 -
2331 - # This removes ${D} from Config.pm
2332 - for i in $(find "${D}" -iname "Config.pm" ) ; do
2333 - einfo "Removing ${D} from ${i}..."
2334 - sed -i -e "s:${D}::" "${i}" || die "Sed failed"
2335 - done
2336 -
2337 - find "${ED}" -type f -name .packlist -delete || die
2338 -
2339 - # Note: find out from psm why we would need/want this.
2340 - # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
2341 - # find "${ED}" -name "*NDBM*" | xargs rm -f
2342 -
2343 - dodoc Changes* README AUTHORS
2344 -
2345 - if use doc ; then
2346 - # HTML Documentation
2347 - # We expect errors, warnings, and such with the following.
2348 -
2349 - dodir /usr/share/doc/${PF}/html
2350 - LD_LIBRARY_PATH=. ./perl installhtml \
2351 - --podroot='.' \
2352 - --podpath='lib:ext:pod:vms' \
2353 - --recurse \
2354 - --htmldir="${ED}/usr/share/doc/${PF}/html" \
2355 - --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
2356 - fi
2357 -
2358 - if use build ; then
2359 - src_remove_extra_files
2360 - fi
2361 -
2362 - dual_scripts
2363 -}
2364 -
2365 -pkg_postinst() {
2366 - dual_scripts
2367 -
2368 - if [[ "${ROOT}" = "/" ]] ; then
2369 - local INC DIR file
2370 - INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${SHORT_PV}'|etc|local|perl$/; print "$line\n" }')
2371 - einfo "Removing old .ph files"
2372 - for DIR in ${INC} ; do
2373 - if [[ -d "${DIR}" ]] ; then
2374 - for file in $(find "${DIR}" -name "*.ph" -type f ) ; do
2375 - rm -f "${file}"
2376 - einfo "<< ${file}"
2377 - done
2378 - fi
2379 - done
2380 - # Silently remove the now empty dirs
2381 - for DIR in ${INC} ; do
2382 - if [[ -d "${DIR}" ]] ; then
2383 - find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
2384 - fi
2385 - done
2386 -# if ! use build ; then
2387 -# ebegin "Generating ConfigLocal.pm (ignore any error)"
2388 -# enc2xs -C
2389 -# fi
2390 -
2391 - einfo "Converting C header files to the corresponding Perl format (ignore any error)"
2392 - # Prefix note: unprefixed as this is all kernel/libc stuff that we never provide
2393 - pushd /usr/include >/dev/null
2394 - h2ph -Q -a -d "${EPREFIX}"${ARCH_LIB} \
2395 - asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h \
2396 - sys/socket.h sys/time.h wait.h sysexits.h
2397 - popd >/dev/null
2398 -
2399 -# This has been moved into a function because rumor has it that a future release
2400 -# of portage will allow us to check what version was just removed - which means
2401 -# we will be able to invoke this only as needed :)
2402 - # Tried doing this via -z, but $INC is too big...
2403 - #if [[ "${INC}x" != "x" ]]; then
2404 - # cleaner_msg
2405 - #fi
2406 - fi
2407 -}
2408 -
2409 -pkg_postrm(){
2410 - dual_scripts
2411 -
2412 -# if [[ -e ${ARCH_LIB}/Encode/ConfigLocal.pm ]] ; then
2413 -# ebegin "Removing ConfigLocal.pm"
2414 -# rm "${ARCH_LIB}/Encode/ConfigLocal.pm"
2415 -# fi
2416 -}
2417 -
2418 -cleaner_msg() {
2419 - eerror "You have had multiple versions of perl. It is recommended"
2420 - eerror "that you run perl-cleaner now. perl-cleaner will"
2421 - eerror "assist with this transition. This script is capable"
2422 - eerror "of cleaning out old .ph files, rebuilding modules for "
2423 - eerror "your new version of perl, as well as re-emerging"
2424 - eerror "applications that compiled against your old libperl$(get_libname)"
2425 - eerror
2426 - eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
2427 - eerror "Part of the rebuilding of applications compiled against "
2428 - eerror "your old libperl involves temporarily unmerging"
2429 - eerror "them - interruptions could leave you with unmerged"
2430 - eerror "packages before they can be remerged."
2431 - eerror ""
2432 - eerror "If you have run perl-cleaner and a package still gives"
2433 - eerror "you trouble, and re-emerging it fails to correct"
2434 - eerror "the problem, please check http://bugs.gentoo.org/"
2435 - eerror "for more information or to report a bug."
2436 - eerror ""
2437 -}
2438 -
2439 -src_remove_dual_file() {
2440 - local i pkg ver
2441 - pkg="$1"
2442 - ver="$2"
2443 - shift 2
2444 - case "${EBUILD_PHASE:-none}" in
2445 - postinst|postrm)
2446 - for i in "$@" ; do
2447 - alternatives_auto_makesym "${i}" "${i}-[0-9]*"
2448 - done
2449 - ;;
2450 - setup)
2451 - for i in "$@" ; do
2452 - if [[ -f ${EROOT}${i} && ! -h ${EROOT}${i} ]] ; then
2453 - has_version ${pkg} && ewarn "You must reinstall ${pkg} !"
2454 - break
2455 - fi
2456 - done
2457 - ;;
2458 - install)
2459 - for i in "$@" ; do
2460 - if ! [[ -f "${ED}"${i} ]] ; then
2461 - use build || ewarn "${i} does not exist!"
2462 - continue
2463 - fi
2464 - mv "${ED}"${i}{,-${ver}-${P}} || die
2465 - done
2466 - ;;
2467 - esac
2468 -}
2469 -
2470 -src_remove_dual_man() {
2471 - local i pkg ver ff
2472 - pkg="$1"
2473 - ver="$2"
2474 - shift 2
2475 - case "${EBUILD_PHASE:-none}" in
2476 - postinst|postrm)
2477 - for i in "$@" ; do
2478 - ff=`echo "${EROOT}${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}}"*`
2479 - ff=${ff##*${i#${i%.[0-9]}}}
2480 - alternatives_auto_makesym "${i}${ff}" "${i%.[0-9]}-[0-9]*"
2481 - done
2482 - ;;
2483 - install)
2484 - for i in "$@" ; do
2485 - if ! [[ -f "${ED}"${i} ]] ; then
2486 - use build || ewarn "${i} does not exist!"
2487 - continue
2488 - fi
2489 - mv "${ED}"${i} "${ED}"${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}} || die
2490 - done
2491 - ;;
2492 - esac
2493 -}
2494 -
2495 -src_remove_dual() {
2496 - local i pkg ver
2497 - pkg="$1"
2498 - ver="$2"
2499 - shift 2
2500 - for i in "$@" ; do
2501 - src_remove_dual_file "${pkg}" "${ver}" "/usr/bin/${i}"
2502 - src_remove_dual_man "${pkg}" "${ver}" "/usr/share/man/man1/${i}.1"
2503 - done
2504 -}
2505 -
2506 -src_remove_extra_files() {
2507 - local prefix="./usr" # ./ is important
2508 - local bindir="${prefix}/bin"
2509 - local libdir="${prefix}/$(get_libdir)"
2510 -
2511 - # I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
2512 - # Then, I added several files to get GNU autotools running
2513 - # FIXME: should this be in a separated file to be sourced?
2514 - local MINIMAL_PERL_INSTALL="
2515 - ${bindir}/h2ph
2516 - ${bindir}/perl
2517 - ${bindir}/perl${MY_PV}
2518 - ${bindir}/pod2man
2519 - ${libdir}/${LIBPERL}
2520 - ${libdir}/libperl$(get_libname)
2521 - ${libdir}/libperl$(get_libname ${SHORT_PV})
2522 - .${PRIV_LIB}/AutoLoader.pm
2523 - .${PRIV_LIB}/B/Deparse.pm
2524 - .${PRIV_LIB}/Carp.pm
2525 - .${PRIV_LIB}/Carp/Heavy.pm
2526 - .${PRIV_LIB}/Class/Struct.pm
2527 - .${PRIV_LIB}/DirHandle.pm
2528 - .${PRIV_LIB}/Exporter.pm
2529 - .${PRIV_LIB}/Exporter/Heavy.pm
2530 - .${PRIV_LIB}/ExtUtils/Command.pm
2531 - .${PRIV_LIB}/ExtUtils/Command/MM.pm
2532 - .${PRIV_LIB}/ExtUtils/Constant.pm
2533 - .${PRIV_LIB}/ExtUtils/Constant/Base.pm
2534 - .${PRIV_LIB}/ExtUtils/Constant/Utils.pm
2535 - .${PRIV_LIB}/ExtUtils/Constant/XS.pm
2536 - .${PRIV_LIB}/ExtUtils/Embed.pm
2537 - .${PRIV_LIB}/ExtUtils/Install.pm
2538 - .${PRIV_LIB}/ExtUtils/Installed.pm
2539 - .${PRIV_LIB}/ExtUtils/Liblist.pm
2540 - .${PRIV_LIB}/ExtUtils/Liblist/Kid.pm
2541 - .${PRIV_LIB}/ExtUtils/MM.pm
2542 - .${PRIV_LIB}/ExtUtils/MM_Any.pm
2543 - .${PRIV_LIB}/ExtUtils/MM_MacOS.pm
2544 - .${PRIV_LIB}/ExtUtils/MM_Unix.pm
2545 - .${PRIV_LIB}/ExtUtils/MY.pm
2546 - .${PRIV_LIB}/ExtUtils/MakeMaker.pm
2547 - .${PRIV_LIB}/ExtUtils/MakeMaker/Config.pm
2548 - .${PRIV_LIB}/ExtUtils/Manifest.pm
2549 - .${PRIV_LIB}/ExtUtils/Miniperl.pm
2550 - .${PRIV_LIB}/ExtUtils/Mkbootstrap.pm
2551 - .${PRIV_LIB}/ExtUtils/Mksymlists.pm
2552 - .${PRIV_LIB}/ExtUtils/Packlist.pm
2553 - .${PRIV_LIB}/ExtUtils/testlib.pm
2554 - .${PRIV_LIB}/File/Basename.pm
2555 - .${PRIV_LIB}/File/Compare.pm
2556 - .${PRIV_LIB}/File/Copy.pm
2557 - .${PRIV_LIB}/File/Find.pm
2558 - .${PRIV_LIB}/File/Path.pm
2559 - .${PRIV_LIB}/File/stat.pm
2560 - .${PRIV_LIB}/FileHandle.pm
2561 - .${PRIV_LIB}/Getopt/Long.pm
2562 - .${PRIV_LIB}/Getopt/Std.pm
2563 - .${PRIV_LIB}/IPC/Open2.pm
2564 - .${PRIV_LIB}/IPC/Open3.pm
2565 - .${PRIV_LIB}/PerlIO.pm
2566 - .${PRIV_LIB}/Pod/InputObjects.pm
2567 - .${PRIV_LIB}/Pod/Man.pm
2568 - .${PRIV_LIB}/Pod/ParseLink.pm
2569 - .${PRIV_LIB}/Pod/Parser.pm
2570 - .${PRIV_LIB}/Pod/Select.pm
2571 - .${PRIV_LIB}/Pod/Text.pm
2572 - .${PRIV_LIB}/Pod/Usage.pm
2573 - .${PRIV_LIB}/SelectSaver.pm
2574 - .${PRIV_LIB}/Symbol.pm
2575 - .${PRIV_LIB}/Text/ParseWords.pm
2576 - .${PRIV_LIB}/Text/Tabs.pm
2577 - .${PRIV_LIB}/Text/Wrap.pm
2578 - .${PRIV_LIB}/Tie/Hash.pm
2579 - .${PRIV_LIB}/Time/Local.pm
2580 - .${PRIV_LIB}/XSLoader.pm
2581 - .${PRIV_LIB}/autouse.pm
2582 - .${PRIV_LIB}/base.pm
2583 - .${PRIV_LIB}/bigint.pm
2584 - .${PRIV_LIB}/bignum.pm
2585 - .${PRIV_LIB}/bigrat.pm
2586 - .${PRIV_LIB}/blib.pm
2587 - .${PRIV_LIB}/bytes.pm
2588 - .${PRIV_LIB}/bytes_heavy.pl
2589 - .${PRIV_LIB}/charnames.pm
2590 - .${PRIV_LIB}/constant.pm
2591 - .${PRIV_LIB}/diagnostics.pm
2592 - .${PRIV_LIB}/fields.pm
2593 - .${PRIV_LIB}/filetest.pm
2594 - .${PRIV_LIB}/if.pm
2595 - .${PRIV_LIB}/integer.pm
2596 - .${PRIV_LIB}/less.pm
2597 - .${PRIV_LIB}/locale.pm
2598 - .${PRIV_LIB}/open.pm
2599 - .${PRIV_LIB}/overload.pm
2600 - .${PRIV_LIB}/sigtrap.pm
2601 - .${PRIV_LIB}/sort.pm
2602 - .${PRIV_LIB}/stat.pl
2603 - .${PRIV_LIB}/strict.pm
2604 - .${PRIV_LIB}/subs.pm
2605 - .${PRIV_LIB}/unicore/To/Fold.pl
2606 - .${PRIV_LIB}/unicore/To/Lower.pl
2607 - .${PRIV_LIB}/unicore/To/Upper.pl
2608 - .${PRIV_LIB}/utf8.pm
2609 - .${PRIV_LIB}/utf8_heavy.pl
2610 - .${PRIV_LIB}/vars.pm
2611 - .${PRIV_LIB}/vmsish.pm
2612 - .${PRIV_LIB}/warnings
2613 - .${PRIV_LIB}/warnings.pm
2614 - .${PRIV_LIB}/warnings/register.pm
2615 - .${ARCH_LIB}/B.pm
2616 - .${ARCH_LIB}/CORE/libperl$(get_libname)
2617 - .${ARCH_LIB}/Config.pm
2618 - .${ARCH_LIB}/Config_heavy.pl
2619 - .${ARCH_LIB}/Cwd.pm
2620 - .${ARCH_LIB}/Data/Dumper.pm
2621 - .${ARCH_LIB}/DynaLoader.pm
2622 - .${ARCH_LIB}/Errno.pm
2623 - .${ARCH_LIB}/Fcntl.pm
2624 - .${ARCH_LIB}/File/Glob.pm
2625 - .${ARCH_LIB}/File/Spec.pm
2626 - .${ARCH_LIB}/File/Spec/Unix.pm
2627 - .${ARCH_LIB}/IO.pm
2628 - .${ARCH_LIB}/IO/File.pm
2629 - .${ARCH_LIB}/IO/Handle.pm
2630 - .${ARCH_LIB}/IO/Pipe.pm
2631 - .${ARCH_LIB}/IO/Seekable.pm
2632 - .${ARCH_LIB}/IO/Select.pm
2633 - .${ARCH_LIB}/IO/Socket.pm
2634 - .${ARCH_LIB}/IO/Socket/INET.pm
2635 - .${ARCH_LIB}/IO/Socket/UNIX.pm
2636 - .${ARCH_LIB}/List/Util.pm
2637 - .${ARCH_LIB}/NDBM_File.pm
2638 - .${ARCH_LIB}/POSIX.pm
2639 - .${ARCH_LIB}/Scalar/Util.pm
2640 - .${ARCH_LIB}/Socket.pm
2641 - .${ARCH_LIB}/Storable.pm
2642 - .${ARCH_LIB}/attributes.pm
2643 - .${ARCH_LIB}/auto/Cwd/Cwd$(get_libname)
2644 - .${ARCH_LIB}/auto/Data/Dumper/Dumper$(get_libname)
2645 - .${ARCH_LIB}/auto/DynaLoader/dl_findfile.al
2646 - .${ARCH_LIB}/auto/Fcntl/Fcntl$(get_libname)
2647 - .${ARCH_LIB}/auto/File/Glob/Glob$(get_libname)
2648 - .${ARCH_LIB}/auto/IO/IO$(get_libname)
2649 - .${ARCH_LIB}/auto/POSIX/POSIX$(get_libname)
2650 - .${ARCH_LIB}/auto/POSIX/autosplit.ix
2651 - .${ARCH_LIB}/auto/POSIX/fstat.al
2652 - .${ARCH_LIB}/auto/POSIX/load_imports.al
2653 - .${ARCH_LIB}/auto/POSIX/stat.al
2654 - .${ARCH_LIB}/auto/POSIX/tmpfile.al
2655 - .${ARCH_LIB}/auto/Socket/Socket$(get_libname)
2656 - .${ARCH_LIB}/auto/Storable/Storable$(get_libname)
2657 - .${ARCH_LIB}/auto/Storable/_retrieve.al
2658 - .${ARCH_LIB}/auto/Storable/_store.al
2659 - .${ARCH_LIB}/auto/Storable/autosplit.ix
2660 - .${ARCH_LIB}/auto/Storable/retrieve.al
2661 - .${ARCH_LIB}/auto/Storable/store.al
2662 - .${ARCH_LIB}/auto/re/re$(get_libname)
2663 - .${ARCH_LIB}/encoding.pm
2664 - .${ARCH_LIB}/lib.pm
2665 - .${ARCH_LIB}/ops.pm
2666 - .${ARCH_LIB}/re.pm
2667 - .${ARCH_LIB}/threads.pm
2668 -"
2669 -
2670 - pushd "${ED}" > /dev/null
2671 - # Remove cruft
2672 - einfo "Removing files that are not in the minimal install"
2673 - echo "${MINIMAL_PERL_INSTALL}"
2674 - for f in $(find . -type f ) ; do
2675 - has "${f}" ${MINIMAL_PERL_INSTALL} || rm -f "${f}"
2676 - done
2677 - # Remove empty directories
2678 - find . -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
2679 - #for f in ${MINIMAL_PERL_INSTALL} ; do
2680 - # [[ -e ${f} ]] || ewarn "${f} unused in MINIMAL_PERL_INSTALL"
2681 - #done
2682 - popd > /dev/null
2683 -}
2684
2685 diff --git a/dev-lang/perl/perl-5.16.0.ebuild b/dev-lang/perl/perl-5.16.0.ebuild
2686 deleted file mode 100644
2687 index 343f0a4..0000000
2688 --- a/dev-lang/perl/perl-5.16.0.ebuild
2689 +++ /dev/null
2690 @@ -1,113 +0,0 @@
2691 -# Copyright 1999-2012 Gentoo Foundation
2692 -# Distributed under the terms of the GNU General Public License v2
2693 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.14.2.ebuild,v 1.4 2012/03/03 12:29:38 grobian Exp $
2694 -
2695 -EAPI=4
2696 -
2697 -inherit eutils alternatives flag-o-matic toolchain-funcs multilib
2698 -
2699 -PATCH_VER=3
2700 -
2701 -PERL_OLDVERSEN=""
2702 -MODULE_AUTHOR=RJBS
2703 -
2704 -SHORT_PV="${PV%.*}"
2705 -MY_P="perl-${PV/_rc/-RC}"
2706 -MY_PV="${PV%_rc*}"
2707 -
2708 -DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
2709 -
2710 -SRC_URI="
2711 - mirror://cpan/src/${MY_P}.tar.bz2
2712 - mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2
2713 - mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
2714 - http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2"
2715 -HOMEPAGE="http://www.perl.org/"
2716 -
2717 -LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
2718 -SLOT="0"
2719 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
2720 -IUSE="berkdb debug doc gdbm ithreads"
2721 -
2722 -RDEPEND="
2723 - berkdb? ( sys-libs/db )
2724 - gdbm? ( >=sys-libs/gdbm-1.8.3 )
2725 - app-arch/bzip2
2726 - sys-libs/zlib
2727 -"
2728 -DEPEND="${RDEPEND}
2729 - !prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
2730 -"
2731 -PDEPEND=">=app-admin/perl-cleaner-2.5"
2732 -
2733 -S="${WORKDIR}/${MY_P}"
2734 -
2735 -dual_scripts() {
2736 - src_remove_dual perl-core/Archive-Tar 1.820.0 ptar ptardiff ptargrep
2737 - src_remove_dual perl-core/Digest-SHA 5.710.0 shasum
2738 - src_remove_dual perl-core/CPAN 1.980.0 cpan
2739 - src_remove_dual perl-core/CPANPLUS 0.912.100 cpanp cpan2dist
2740 - src_remove_dual_file perl-core/CPANPLUS 0.912.100 /usr/bin/cpanp-run-perl
2741 - src_remove_dual perl-core/Encode 2.440.0 enc2xs piconv
2742 - src_remove_dual perl-core/ExtUtils-MakeMaker 6.630.200_rc instmodsh
2743 - src_remove_dual perl-core/ExtUtils-ParseXS 3.160.0 xsubpp
2744 - src_remove_dual perl-core/JSON-PP 2.272.0 json_pp
2745 - src_remove_dual perl-core/Module-Build 0.390.100_rc config_data
2746 - src_remove_dual perl-core/Module-CoreList 2.660.0 corelist
2747 - src_remove_dual perl-core/PodParser 1.510.0 pod2usage podchecker podselect
2748 - src_remove_dual perl-core/Test-Harness 3.230.0 prove
2749 - src_remove_dual perl-core/podlators 2.4.0 pod2man pod2text
2750 - src_remove_dual_man perl-core/podlators 2.4.0 /usr/share/man/man1/perlpodstyle.1
2751 -}
2752 -
2753 -# eblit-include [--skip] <function> [version]
2754 -eblit-include() {
2755 - local skipable=false
2756 - [[ $1 == "--skip" ]] && skipable=true && shift
2757 - [[ $1 == pkg_* ]] && skipable=true
2758 -
2759 - local e v func=$1 ver=$2
2760 - [[ -z ${func} ]] && die "Usage: eblit-include <function> [version]"
2761 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
2762 - e="${FILESDIR}/eblits/${func}${v}.eblit"
2763 - if [[ -e ${e} ]] ; then
2764 - source "${e}"
2765 - return 0
2766 - fi
2767 - done
2768 - ${skipable} && return 0
2769 - die "Could not locate requested eblit '${func}' in ${FILESDIR}/eblits/"
2770 -}
2771 -
2772 -# eblit-run-maybe <function>
2773 -# run the specified function if it is defined
2774 -eblit-run-maybe() {
2775 - [[ $(type -t "$@") == "function" ]] && "$@"
2776 -}
2777 -
2778 -# eblit-run <function> [version]
2779 -# aka: src_unpack() { eblit-run src_unpack ; }
2780 -eblit-run() {
2781 - eblit-include --skip common "${*:2}"
2782 - eblit-include "$@"
2783 - eblit-run-maybe eblit-$1-pre
2784 - eblit-${PN}-$1
2785 - eblit-run-maybe eblit-$1-post
2786 -}
2787 -
2788 -#src_unpack() { eblit-run src_unpack v50140021 ; }
2789 -src_prepare() { eblit-run src_prepare v50140021 ; }
2790 -src_configure() { eblit-run src_configure v50140021 ; }
2791 -#src_compile() { eblit-run src_compile v50140021 ; }
2792 -src_test() { eblit-run src_test v50140021 ; }
2793 -src_install() { eblit-run src_install v50140021 ; }
2794 -
2795 -# FILESDIR might not be available during binpkg install
2796 -# FIXME: version passing
2797 -for x in setup {pre,post}{inst,rm} ; do
2798 - e="${FILESDIR}/eblits/pkg_${x}-v50140021.eblit"
2799 - if [[ -e ${e} ]] ; then
2800 - . "${e}"
2801 - eval "pkg_${x}() { eblit-run pkg_${x} v50140021 ; }"
2802 - fi
2803 -done
2804
2805 diff --git a/dev-lang/perl/perl-5.16.0_rc0.ebuild b/dev-lang/perl/perl-5.16.0_rc0.ebuild
2806 deleted file mode 100644
2807 index 985c844..0000000
2808 --- a/dev-lang/perl/perl-5.16.0_rc0.ebuild
2809 +++ /dev/null
2810 @@ -1,116 +0,0 @@
2811 -# Copyright 1999-2012 Gentoo Foundation
2812 -# Distributed under the terms of the GNU General Public License v2
2813 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.14.2.ebuild,v 1.4 2012/03/03 12:29:38 grobian Exp $
2814 -
2815 -EAPI=4
2816 -
2817 -inherit eutils alternatives flag-o-matic toolchain-funcs multilib
2818 -
2819 -PATCH_VER=1
2820 -
2821 -PERL_OLDVERSEN=""
2822 -MODULE_AUTHOR=RJBS
2823 -
2824 -SHORT_PV="${PV%.*}"
2825 -MY_P="perl-${PV/_rc/-RC}"
2826 -MY_PV="${PV%_rc*}"
2827 -
2828 -DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
2829 -
2830 -#SRC_URI="
2831 -# mirror://cpan/src/${MY_P}.tar.bz2
2832 -# mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2
2833 -SRC_URI="
2834 - mirror://cpan/src/${MY_P}.tar.gz
2835 - mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.gz
2836 - mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
2837 - http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2"
2838 -HOMEPAGE="http://www.perl.org/"
2839 -
2840 -LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
2841 -SLOT="0"
2842 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
2843 -IUSE="berkdb debug doc gdbm ithreads"
2844 -
2845 -RDEPEND="
2846 - berkdb? ( sys-libs/db )
2847 - gdbm? ( >=sys-libs/gdbm-1.8.3 )
2848 - app-arch/bzip2
2849 - sys-libs/zlib
2850 -"
2851 -DEPEND="${RDEPEND}
2852 - !prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
2853 -"
2854 -PDEPEND=">=app-admin/perl-cleaner-2.5"
2855 -
2856 -S="${WORKDIR}/${MY_P}"
2857 -
2858 -dual_scripts() {
2859 - src_remove_dual perl-core/Archive-Tar 1.820.0 ptar ptardiff ptargrep
2860 - src_remove_dual perl-core/Digest-SHA 5.710.0 shasum
2861 - src_remove_dual perl-core/CPAN 1.980.0 cpan
2862 - src_remove_dual perl-core/CPANPLUS 0.912.100 cpanp cpan2dist
2863 - src_remove_dual_file perl-core/CPANPLUS 0.912.100 /usr/bin/cpanp-run-perl
2864 - src_remove_dual perl-core/Encode 2.440.0 enc2xs piconv
2865 - src_remove_dual perl-core/ExtUtils-MakeMaker 6.630.200_rc instmodsh
2866 - src_remove_dual perl-core/ExtUtils-ParseXS 3.160.0 xsubpp
2867 - src_remove_dual perl-core/JSON-PP 2.272.0 json_pp
2868 - src_remove_dual perl-core/Module-Build 0.390.100 config_data
2869 - src_remove_dual perl-core/Module-CoreList 2.660.0 corelist
2870 - src_remove_dual perl-core/PodParser 1.510.0 pod2usage podchecker podselect
2871 - src_remove_dual perl-core/Test-Harness 3.230.0 prove
2872 - src_remove_dual perl-core/podlators 2.4.0 pod2man pod2text
2873 - src_remove_dual_man perl-core/podlators 2.4.0 /usr/share/man/man1/perlpodstyle.1
2874 -}
2875 -
2876 -# eblit-include [--skip] <function> [version]
2877 -eblit-include() {
2878 - local skipable=false
2879 - [[ $1 == "--skip" ]] && skipable=true && shift
2880 - [[ $1 == pkg_* ]] && skipable=true
2881 -
2882 - local e v func=$1 ver=$2
2883 - [[ -z ${func} ]] && die "Usage: eblit-include <function> [version]"
2884 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
2885 - e="${FILESDIR}/eblits/${func}${v}.eblit"
2886 - if [[ -e ${e} ]] ; then
2887 - source "${e}"
2888 - return 0
2889 - fi
2890 - done
2891 - ${skipable} && return 0
2892 - die "Could not locate requested eblit '${func}' in ${FILESDIR}/eblits/"
2893 -}
2894 -
2895 -# eblit-run-maybe <function>
2896 -# run the specified function if it is defined
2897 -eblit-run-maybe() {
2898 - [[ $(type -t "$@") == "function" ]] && "$@"
2899 -}
2900 -
2901 -# eblit-run <function> [version]
2902 -# aka: src_unpack() { eblit-run src_unpack ; }
2903 -eblit-run() {
2904 - eblit-include --skip common "${*:2}"
2905 - eblit-include "$@"
2906 - eblit-run-maybe eblit-$1-pre
2907 - eblit-${PN}-$1
2908 - eblit-run-maybe eblit-$1-post
2909 -}
2910 -
2911 -#src_unpack() { eblit-run src_unpack v50140021 ; }
2912 -src_prepare() { eblit-run src_prepare v50140021 ; }
2913 -src_configure() { eblit-run src_configure v50140021 ; }
2914 -#src_compile() { eblit-run src_compile v50140021 ; }
2915 -src_test() { eblit-run src_test v50140021 ; }
2916 -src_install() { eblit-run src_install v50140021 ; }
2917 -
2918 -# FILESDIR might not be available during binpkg install
2919 -# FIXME: version passing
2920 -for x in setup {pre,post}{inst,rm} ; do
2921 - e="${FILESDIR}/eblits/pkg_${x}-v50140021.eblit"
2922 - if [[ -e ${e} ]] ; then
2923 - . "${e}"
2924 - eval "pkg_${x}() { eblit-run pkg_${x} v50140021 ; }"
2925 - fi
2926 -done
2927
2928 diff --git a/dev-lang/perl/perl-5.16.0_rc2.ebuild b/dev-lang/perl/perl-5.16.0_rc2.ebuild
2929 deleted file mode 100644
2930 index 8dee1c3..0000000
2931 --- a/dev-lang/perl/perl-5.16.0_rc2.ebuild
2932 +++ /dev/null
2933 @@ -1,113 +0,0 @@
2934 -# Copyright 1999-2012 Gentoo Foundation
2935 -# Distributed under the terms of the GNU General Public License v2
2936 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.14.2.ebuild,v 1.4 2012/03/03 12:29:38 grobian Exp $
2937 -
2938 -EAPI=4
2939 -
2940 -inherit eutils alternatives flag-o-matic toolchain-funcs multilib
2941 -
2942 -PATCH_VER=1
2943 -
2944 -PERL_OLDVERSEN=""
2945 -MODULE_AUTHOR=RJBS
2946 -
2947 -SHORT_PV="${PV%.*}"
2948 -MY_P="perl-${PV/_rc/-RC}"
2949 -MY_PV="${PV%_rc*}"
2950 -
2951 -DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
2952 -
2953 -SRC_URI="
2954 - mirror://cpan/src/${MY_P}.tar.bz2
2955 - mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2
2956 - mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
2957 - http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2"
2958 -HOMEPAGE="http://www.perl.org/"
2959 -
2960 -LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
2961 -SLOT="0"
2962 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
2963 -IUSE="berkdb debug doc gdbm ithreads"
2964 -
2965 -RDEPEND="
2966 - berkdb? ( sys-libs/db )
2967 - gdbm? ( >=sys-libs/gdbm-1.8.3 )
2968 - app-arch/bzip2
2969 - sys-libs/zlib
2970 -"
2971 -DEPEND="${RDEPEND}
2972 - !prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
2973 -"
2974 -PDEPEND=">=app-admin/perl-cleaner-2.5"
2975 -
2976 -S="${WORKDIR}/${MY_P}"
2977 -
2978 -dual_scripts() {
2979 - src_remove_dual perl-core/Archive-Tar 1.820.0 ptar ptardiff ptargrep
2980 - src_remove_dual perl-core/Digest-SHA 5.710.0 shasum
2981 - src_remove_dual perl-core/CPAN 1.980.0 cpan
2982 - src_remove_dual perl-core/CPANPLUS 0.912.100 cpanp cpan2dist
2983 - src_remove_dual_file perl-core/CPANPLUS 0.912.100 /usr/bin/cpanp-run-perl
2984 - src_remove_dual perl-core/Encode 2.440.0 enc2xs piconv
2985 - src_remove_dual perl-core/ExtUtils-MakeMaker 6.630.200_rc instmodsh
2986 - src_remove_dual perl-core/ExtUtils-ParseXS 3.160.0 xsubpp
2987 - src_remove_dual perl-core/JSON-PP 2.272.0 json_pp
2988 - src_remove_dual perl-core/Module-Build 0.390.100 config_data
2989 - src_remove_dual perl-core/Module-CoreList 2.660.0 corelist
2990 - src_remove_dual perl-core/PodParser 1.510.0 pod2usage podchecker podselect
2991 - src_remove_dual perl-core/Test-Harness 3.230.0 prove
2992 - src_remove_dual perl-core/podlators 2.4.0 pod2man pod2text
2993 - src_remove_dual_man perl-core/podlators 2.4.0 /usr/share/man/man1/perlpodstyle.1
2994 -}
2995 -
2996 -# eblit-include [--skip] <function> [version]
2997 -eblit-include() {
2998 - local skipable=false
2999 - [[ $1 == "--skip" ]] && skipable=true && shift
3000 - [[ $1 == pkg_* ]] && skipable=true
3001 -
3002 - local e v func=$1 ver=$2
3003 - [[ -z ${func} ]] && die "Usage: eblit-include <function> [version]"
3004 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
3005 - e="${FILESDIR}/eblits/${func}${v}.eblit"
3006 - if [[ -e ${e} ]] ; then
3007 - source "${e}"
3008 - return 0
3009 - fi
3010 - done
3011 - ${skipable} && return 0
3012 - die "Could not locate requested eblit '${func}' in ${FILESDIR}/eblits/"
3013 -}
3014 -
3015 -# eblit-run-maybe <function>
3016 -# run the specified function if it is defined
3017 -eblit-run-maybe() {
3018 - [[ $(type -t "$@") == "function" ]] && "$@"
3019 -}
3020 -
3021 -# eblit-run <function> [version]
3022 -# aka: src_unpack() { eblit-run src_unpack ; }
3023 -eblit-run() {
3024 - eblit-include --skip common "${*:2}"
3025 - eblit-include "$@"
3026 - eblit-run-maybe eblit-$1-pre
3027 - eblit-${PN}-$1
3028 - eblit-run-maybe eblit-$1-post
3029 -}
3030 -
3031 -#src_unpack() { eblit-run src_unpack v50140021 ; }
3032 -src_prepare() { eblit-run src_prepare v50140021 ; }
3033 -src_configure() { eblit-run src_configure v50140021 ; }
3034 -#src_compile() { eblit-run src_compile v50140021 ; }
3035 -src_test() { eblit-run src_test v50140021 ; }
3036 -src_install() { eblit-run src_install v50140021 ; }
3037 -
3038 -# FILESDIR might not be available during binpkg install
3039 -# FIXME: version passing
3040 -for x in setup {pre,post}{inst,rm} ; do
3041 - e="${FILESDIR}/eblits/pkg_${x}-v50140021.eblit"
3042 - if [[ -e ${e} ]] ; then
3043 - . "${e}"
3044 - eval "pkg_${x}() { eblit-run pkg_${x} v50140021 ; }"
3045 - fi
3046 -done