summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hüttel <dilfridge@gentoo.org>2014-07-04 20:36:46 +0000
committerAndreas Hüttel <dilfridge@gentoo.org>2014-07-04 20:36:46 +0000
commit0a5f182508247da81924c2ef6d0e6c71f098c37c (patch)
treee6a90e892d4c65a701ede086ad00f9e5b96977a8 /dev-lang
parentfix verbose build log, respect AR, CC, CFLAGS and LDFLAGS (diff)
downloadhistorical-0a5f182508247da81924c2ef6d0e6c71f098c37c.tar.gz
historical-0a5f182508247da81924c2ef6d0e6c71f098c37c.tar.bz2
historical-0a5f182508247da81924c2ef6d0e6c71f098c37c.zip
Remove old
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xEBE6A336BE19039C!
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/perl/ChangeLog6
-rw-r--r--dev-lang/perl/Manifest33
-rw-r--r--dev-lang/perl/perl-5.12.4-r1.ebuild634
3 files changed, 21 insertions, 652 deletions
diff --git a/dev-lang/perl/ChangeLog b/dev-lang/perl/ChangeLog
index 0593fd714e23..286c3e2b38ee 100644
--- a/dev-lang/perl/ChangeLog
+++ b/dev-lang/perl/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-lang/perl
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.422 2014/06/29 14:46:12 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.423 2014/07/04 20:36:37 dilfridge Exp $
+
+ 04 Jul 2014; Andreas K. Huettel <dilfridge@gentoo.org>
+ -perl-5.12.4-r1.ebuild:
+ Remove old
29 Jun 2014; Andreas K. Huettel <dilfridge@gentoo.org> -perl-5.14.1.ebuild,
-perl-5.14.1-r1.ebuild, -perl-5.14.2.ebuild, -perl-5.16.0.ebuild,
diff --git a/dev-lang/perl/Manifest b/dev-lang/perl/Manifest
index b9698ff3c985..d0c835a6ae99 100644
--- a/dev-lang/perl/Manifest
+++ b/dev-lang/perl/Manifest
@@ -49,34 +49,33 @@ AUX perl-perldoc-emptydirs.patch 489 SHA256 e8c52d67793f0a5ae0aee52a3b9db2b348a1
AUX perl-picdl.patch 250 SHA256 fdbe94e869457b7e62bdc76b82a13ecd6e500c223d609b1767285190efd63cfa SHA512 0493c583b3e7e324f91906ae9280145601642dba6c1c400f3d5df4e054e6aefa023d6c1823ee8cdbb7169fe5e1a932c091326e949e49ea252ccb409dd6a7fbe3 WHIRLPOOL 2fd61e6cbb9b0db012922a2dc8047b5962804b0e0ca41110915f8014f165009671f14619fdd955c95c811b29dc26d6fc49a736d5a20e668e099b7495c28b34d5
AUX perl-prelink-lpthread.patch 476 SHA256 289d0bdd08105e7fdf1c2d683d76a0cdcd009998f3ecd84f3a75cf79ab84e7a0 SHA512 7a46c4f4c2577d08ca0db27103adca0f0db00010080e499e1231f3785505a8c99b590160bba650a2ef95246f3acfdedcb4003f297f23c1599399b938196c51e2 WHIRLPOOL 8fef3e142467c5be840faed23e38013c9b541844326bcb9972245938bf34a123cdee1fbbae8a3a2c1a90eae6fdf2cb079deb2a0b8bbcd98616c1962a3d5daeff
AUX perl-regexp-nossp.patch 460 SHA256 e2d923711bb856b3c7f790dbc1cd1f468d647c1e50a3ff8a18745023c73b3e36 SHA512 78162aaf02125dcb7fa302edf2c34a1defa836a6e7635f843781b200d50e8bd4d519d1926ae4ff98cd9e3aaa6624b73901b3b6e54cb8ff3522557bd51fed630a WHIRLPOOL 1e205551058916f8495b37a4b1c6d28eba42a72874b2977f678bd5e9756e6d6ade5fdb7d666ef68570b91be906262353f01015dbf3a726f1f5d1564b945e72b6
-DIST perl-5.12.4-1.tar.bz2 8045 SHA256 a5b0a7385773da5e716d74c5f9a46c63d93de96e9e7e60899f40363bd9fe6823 SHA512 73ca51e54f4273dc72c0c891643bd842d2f69b20a7cecf409e9eb790bd82cb0c9b61279555fe9f1930f914218c3055470a9d97e1f94e45d7f148a3100a426579 WHIRLPOOL 1e28cded49c92f29908ac6ba5bbbc4e5579cc373ae3b13a009cc503bfa0b0305cf439fdb722e5ebab2c971163163f50f808baf1bbce76cb4a7c0b49de70fbc96
-DIST perl-5.12.4.tar.bz2 12350353 SHA256 c920fa01a34b7752e8cbbc99c6921b908df60611d84a29c4377e4a798604767e SHA512 3dc0250496a2fd6adc639a63d777079d6fa5ba4a1d1c730350fd51752be2c7459ab65d622e99b853a3eea7ccecaf1f5f0b5a0f013efcb6554d6952f47aebf8d0 WHIRLPOOL 40677a8b690a6253609fe1b88bc95d9f8018d167ca4ab6753cba60cc5f5078a4953585a6face4f7e94222cacaca0348093cad6201e1e8c00c4f5a94cce065e49
DIST perl-5.16.3-1.tar.bz2 16842 SHA256 e88c413f6491aaa76cfb730af5873d710906df84d486019ad34b8c976ed9279e SHA512 337fbe5b3f447d2bb7f1edb18df973efbf99582448bcc6d3099ec6a91a43071cbbde3419a642e69602d6526f0d2c83d1ce8c7315e51362937c76bf3dc93f3f84 WHIRLPOOL c5be2872341e2bffe4f83b3f77314ed60b078f0977b11aa89d24a25fffa5ad9a761945d6518872c92a156065b58a3c456b71f98a8939a9cfd748e3a2d98a2264
DIST perl-5.16.3.tar.bz2 13724906 SHA256 bb7bc735e6813b177dcfccd480defcde7eddefa173b5967eac11babd1bfa98e8 SHA512 c30cda0af9463942e40b5d70a95e69b0640bf0b79d9d9dfa1a61d9d8b9ee05f553fd240be4c8b3c60a1def66c80453e49e865c27d3dd0b686f5c004e1ff58d92 WHIRLPOOL 241141d9a04095abbc08f29853cc2a348b04550c7e9330c65a1aa111620b61166d2516a619a3afbf8b7bae4208bae7114bfff153c9303c00158a0153c3388526
DIST perl-5.18.2-patches-2.tar.bz2 17153 SHA256 2d203611d9df9d63ed972a37db4927e5d04e80f1abd9724519ac9fc6600d7dbb SHA512 9efacaa44447dc605e69dd68886b41a263726158e98cdb9293678a77311eb197fbc86591db6209ad4614e8a8491758fa24f10c189e5a75dc8ec8c9a1335cafbc WHIRLPOOL 4d69c24e773b51a62e4a223a6846698b207a4ee71f16e58692634a750f25372e602c6902d3ec9859ec21fbf32acdef12817eb1ff285cdba37c404636ced16332
DIST perl-5.18.2.tar.bz2 14058513 SHA256 06a0cd490be36d829606aa41d8c9c4c72ae70542f8d4f23ec554335b3d9e2746 SHA512 7129f56b33724a49498af22977e9e995791c8de736b204124e21d170f1a7419e7b8c6dbc57d76216e4aebcb4b42e61c4075f96ebf06a13523287966222527535 WHIRLPOOL 2acee8f9d7ee5b9f265c6cee625d67efb9ddad7164787faa8cb50707cc53914fb78420e1450e85180fb093804ae84cb301dd274aa4412f4b899aacf1f15bd0cb
DIST perl-5.20.0-patches-1.tar.bz2 12717 SHA256 baf3d0d19942a760a9a978f3849daf4aeb690f9396d8593e5dcfdfc2bc54899f SHA512 91f38153093ddc4bd5d8807c7eb5bfbad7b48c0b9f10c847d39e57c32aa86b349696e1edff16763b4b63a247214e4e529baa74dd19dc09d6185e3eeeba90abc5 WHIRLPOOL 4f45e064ac3c2f0f4fad7dcbac5eceafadda0cfda5e869850f878f545c5961db4afd53450226716bc8460627fd5404a63eba300fdda7201512d7d18de912b6f5
DIST perl-5.20.0.tar.bz2 13770469 SHA256 1e3e23c11d58dcfb8610fec76ad32a84482c7e221e12dfd8c63f141e004d30f2 SHA512 792f15800038ecd678f4a8cf8b9f329259ca46e3da2b18b94c97d1ab3b43efdf07b29975d4ffe83c38ca81bca672307dd6e6e60a22eb3ae957c8aab34b835ad9 WHIRLPOOL 245b8851aaa0cbac6d6e50a1294e8f6e27932109a2c21b3cf72e1e3dd4f69707de0209eb8721f52f76ff55ea030fa5a56e10a955c49052db8ab6f8a355b0b777
-EBUILD perl-5.12.4-r1.ebuild 19372 SHA256 5daba3ba20c18960efdcc372ad697231ecb8f36515b8bdb2a386444992c431bd SHA512 fd1ab8eab7f11568578fc485c38ad4c261401c2235bb86314a9db2d4922866b51ed2037c80afe650c8488b77f6fe8ca13c788efe0bd10f0eed1460f16eda37bb WHIRLPOOL 80eca255b42b520d1dd08ed9b75e76b64c117e5d3906ea989297dc21dbed546b83eb023c4bc841bef8ccd536e8f9f0f4639d092f8327a7ded2a04c797174ffef
EBUILD perl-5.16.3.ebuild 4320 SHA256 48fe6c0980d866928449355bd38b7818d8821af26fda72d9ae206e00835875ae SHA512 72b3986cd3a246484754a763d07e6b903295861b9de6227ab0acd6bc9fa80a21680192c289ebeed811e489a1ad817d53a9b5ce6688d19c6203daf6ce58c3d282 WHIRLPOOL e4758d3bb21b6a2c565bf456e8d64eecdb457929af21e9305b956c8507947b2e772151f0bee7b1444dd94b4c530fd011ecee02ff986d875312583e11dafd78c9
EBUILD perl-5.18.2.ebuild 4345 SHA256 a212eb731e065ea0af933e80067c4c4f8320c0a24c0f9d38a6b80a97d5109230 SHA512 71ba3c91d0ea90f360bf73575ce89c12688fc0e5a3935281c8ff18dcb68f4816c20e605df21f5ffd4ad734561bc05ef1f5cceb0c8fbd484aba9f2617a3905f7f WHIRLPOOL 357e06e8ab4144c0b8ef691f0167e55c452e94a37e211ff97c3dbe08912e2fd0b9c01b0489ddd2f926190f7c9d2bf353b445a71e0674dd7d65ccd53b5a1eb165
EBUILD perl-5.20.0.ebuild 4332 SHA256 fd4c4b6566b78076f56bbf07c7ea6e89eb4f9c56826813214f7bb49979a69e24 SHA512 626d3c8bd5ec9634fff73091dfab0cda67c0340b918bd33edf6e1c8b6fa740f677702ba851d41c8b3ce9c6fc51600a7679d4e0b4888739b30b4eb11b7f8d8337 WHIRLPOOL 5b581bc7c47d33bc1d5159e68ab52b4845af9ce57fe07da47814aced6b1254b606a4dac93a16eec372354d9067ea00f7dd59bf2c665b2a1aa9e6857912f3a024
-MISC ChangeLog 80417 SHA256 cb8def6a580c904649dd781bb61a0f9638dd7eef7e7f0402e7ba288fd21c1b89 SHA512 0384ea0195e682756b83f1e10b4ed1a875312b5d60516ca26ca81116e77cf99d6158bb303b675b8ca4780dca8352c60f223b2ca2642007c4a50b88c3800cb925 WHIRLPOOL 0adf6f47a1e8cae41632f80298b7ac5b792907c2bb85c006a0b14d7624231e50955dc5d58e10546269fe06d6572f204bac1f947f26a147da277bec308ba93184
+MISC ChangeLog 80514 SHA256 26d6f99bdd22350c849bf229790eaff36f2d2b82ab1d5ad8b95abb16d9ba1c34 SHA512 eda45e0d79e7547c570e1f57a7c34de6baf9a773d582c60fa1a77d7d991e31b749f4a4634f99ae6f684a6e6b48ba111f09cebe8a8be66700a39c9f73cb4720c4 WHIRLPOOL b5689009047d698163e279d048ce47c15778cceb3d6d8829c564cdc44357e6df8df5dc01b4aefcfb6d1c9c1d2c80c9224e084e61b5a6700171d8d8345ea6c9b9
MISC metadata.xml 257 SHA256 94d99e58fcedfe7951797e5cbd70790c21b87c1e07a7003f650632bb0a4f2300 SHA512 caf80fd9d8931ab6d476afc21fcc840894cdb4cf548d196958321a0ba09ab83ff98de3f8b5f01701f8101fd0ec0fcfc35ae6e572aa8ef499b106c3ac8cabb769 WHIRLPOOL 7793b51d68b2c56ff1d6029be61fc41007af60c7143e8d82d87891e2863c1978c92d2bc13a0266e4506b69c0012a8555d27ce05061e4ce8c656b32e937badeae
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCAAGBQJTsCf7AAoJEJS/30SErRQvmyEP/RiT1OT7cb0AETWQP2cwqh64
-lj7Wi3SJOQUALJ7gmEuuZZT40y3mgwCJDjLK7RW3CsA1J+AnLJXaKY9OKJAqliwp
-hqQGz5XFo2CsGm5S3lUBMd95UElqyCvJHpHNMQaAZOnb/I9Z9ZTc7eOLHKUga3bv
-G81j2JAXDQPuS2IG+OPSvYclZvfWv1p/nA0MSU8pSEr6uUqSiusX0fOwhICMy3ko
-ihE8Tvc6Y7ye46KMiLv7514pPmHd27L3Dc6RNRGVSfSqK8DFHQRm4mir+SLHnp5e
-ulC1j69oyHUhOp+WODfGLbhHABrUMlofhCWbEUdsiTDkBifmgzIlvT+Z+dXbRlZp
-Uw/u7z0ONyAtcFC4jfYZei57Ztx/eF3twurFzQMcUyDUiErcaVLI5DcExFtaQacH
-Z1XlvFu801u31ctx7p0cSJVvLeImV9tlvRxBHDatA85IGUmTLBzXdwHTNTa64vBS
-muJD4Zl3X9N3m/phmZlfNxypIeKIxb3mHUMWDRNbEYn9jAul3gs9mbCK+GYw4F8y
-l5Lx5xCxGPbqgUjlVRKdfitNDSu+9KEfNPebzKzVfRkBVAjM1hgIag5M/ii9+VAj
-tBQBMbBrVre0HugcwnTBr3TaU/HwMJYUJrCWoUmTZMq5ajIkAB/uFAjM6ADUcaeY
-ZESMuTEqghekVYn7KjIV
-=CNiM
+iQJ8BAEBCABmBQJTtxBbXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwNzlCRDk4QzA4RENBRkYzQUEwRjQzMDlF
+QkU2QTMzNkJFMTkwMzlDAAoJEOvmoza+GQOcmqUQANvG6TsQ+cdJ58/gIG6CEuSV
+QY7t8I7mB59MHs5wP2eYXfj9DybY4MWhI4Hcvi3xJhEnyARspjEK+8WMP5EzmRA1
+m0K02aSJ3YMUzcaQCvQ2JF9g1vow4t3QNrKAAG4rXt2n5SDBE81eJD+Vhnyx7+bX
+llNv8hT7WMMZp9HD0GYjZpjtjLOR/vqR1mvg6D4wMPYRAjWgoal0hPfjwr6hHpLG
+Vuz+Aw+qK6i/lOAZQYFqPf4+9XlyX6O3e1DS7jvvMe8pkLy+d9MaURK4cYgNLcjd
+J4HVXrvC0RA1jS11FujCfJwbtaSTOh2eF6XvPXZ+ULrvdUm1iSdkl1KgcbWuX7DA
+H6HRP7O2BiYGADETOiK6V16Qg8OqM/j0E4LnDvamLJq90kBFPIM5dnPEkkX8XOgk
+SMwAk9h+OVF+pjoUhGCUqqRFvDeuWm/NrQ/3fdB4zsaHLGyx72oyWaa6eLElmaW8
+hqLcHrf0eIJzLKLhPzfyQyuH16RpQmqhLeJCUd/9IQ+CHOkyt5Fiv0uomJDT4cL2
+7cBdoWTZzCme/quWADbTzCcSvhDzo3lZ8QS63UOA5JiFmAan9rZ/1EOYcRMtx6+w
+tlYYxn1k6fghUDGB4yaEZ6i0IFOvq0IIQXtWiyMI6Bey9RxUXrvJbKCbBSbRpDPX
+ncf+9Xj3p5E64IG/fMEj
+=kcE5
-----END PGP SIGNATURE-----
diff --git a/dev-lang/perl/perl-5.12.4-r1.ebuild b/dev-lang/perl/perl-5.12.4-r1.ebuild
deleted file mode 100644
index 2d1245ffc257..000000000000
--- a/dev-lang/perl/perl-5.12.4-r1.ebuild
+++ /dev/null
@@ -1,634 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.12.4-r1.ebuild,v 1.8 2012/01/02 22:52:21 zmedico Exp $
-
-EAPI=4
-
-inherit eutils alternatives flag-o-matic toolchain-funcs multilib
-
-PATCH_VER=1
-
-PERL_OLDVERSEN="5.12.3 5.12.2 5.12.1 5.12.0"
-
-SHORT_PV="${PV%.*}"
-MY_P="perl-${PV/_rc/-RC}"
-MY_PV="${PV%_rc*}"
-
-DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
-
-SRC_URI="
- mirror://cpan/src/${MY_P}.tar.bz2
- mirror://cpan/authors/id/L/LB/LBROCARD/${MY_P}.tar.bz2
- mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
- http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2"
-# mirror://cpan/src/${MY_P}.tar.bz2
-# mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
-HOMEPAGE="http://www.perl.org/"
-
-LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-IUSE="berkdb build debug doc gdbm ithreads"
-
-COMMON_DEPEND="berkdb? ( sys-libs/db )
- gdbm? ( >=sys-libs/gdbm-1.8.3 )
- >=sys-devel/libperl-5.10.1
- !!<sys-devel/libperl-5.10.1
- app-arch/bzip2
- sys-libs/zlib"
-DEPEND="${COMMON_DEPEND}
- elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )"
-RDEPEND="${COMMON_DEPEND}"
-PDEPEND=">=app-admin/perl-cleaner-2.5"
-
-S="${WORKDIR}/${MY_P}"
-
-dual_scripts() {
- src_remove_dual_scripts perl-core/Archive-Tar 1.54 ptar ptardiff
- src_remove_dual_scripts perl-core/Digest-SHA 5.47 shasum
- src_remove_dual_scripts perl-core/CPAN 1.945.600 cpan
- src_remove_dual_scripts perl-core/CPANPLUS 0.900.0 cpanp cpan2dist cpanp-run-perl
- src_remove_dual_scripts perl-core/Encode 2.39 enc2xs piconv
- src_remove_dual_scripts perl-core/ExtUtils-MakeMaker 6.56 instmodsh
- src_remove_dual_scripts perl-core/ExtUtils-ParseXS 2.210.0 xsubpp
- src_remove_dual_scripts perl-core/Module-Build 0.3603 config_data
- src_remove_dual_scripts perl-core/Module-CoreList 2.500.0 corelist
- src_remove_dual_scripts perl-core/PodParser 1.370.0 pod2usage podchecker podselect
- src_remove_dual_scripts perl-core/Test-Harness 3.17 prove
- src_remove_dual_scripts perl-core/podlators 2.3.1 pod2man pod2text
-}
-
-pkg_setup() {
- case ${CHOST} in
- *-freebsd*) osname="freebsd" ;;
- *-dragonfly*) osname="dragonfly" ;;
- *-netbsd*) osname="netbsd" ;;
- *-openbsd*) osname="openbsd" ;;
- *-darwin*) osname="darwin" ;;
- *) osname="linux" ;;
- esac
-
- if use ithreads ; then
- mythreading="-multi"
- myarch="${CHOST%%-*}-${osname}-thread"
- else
- myarch="${CHOST%%-*}-${osname}"
- fi
- if use debug ; then
- myarch="${myarch}-debug"
- fi
-
- LIBPERL="libperl$(get_libname ${MY_PV} )"
- PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}"
- ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
- SITE_LIB="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}"
- SITE_ARCH="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}"
- VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}"
- VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}"
-
- if use ithreads ; then
- echo ""
- ewarn "THREADS WARNING:"
- ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
- ewarn "interpreter-level threading enabled."
- ewarn "Threading is not supported by all applications "
- ewarn "that compile against perl. You use threading at "
- ewarn "your own discretion. "
- fi
- if has_version "<dev-lang/perl-${SHORT_PV}" ; then
- echo ""
- ewarn "UPDATE THE PERL MODULES:"
- ewarn "After updating dev-lang/perl you must reinstall"
- ewarn "the installed perl modules."
- ewarn "Use: perl-cleaner --all"
- elif has_version dev-lang/perl ; then
- # doesnot work
- #if ! has_version dev-lang/perl[ithreads=,debug=] ; then
- #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
- if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
- ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
- ( use debug && ! has_version dev-lang/perl[debug] ) || \
- ( ! use debug && has_version dev-lang/perl[debug] ) ; then
- echo ""
- ewarn "TOGGLED USE-FLAGS WARNING:"
- ewarn "You changed one of the use-flags ithreads or debug."
- ewarn "You must rebuild all perl-modules installed."
- ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
- fi
- fi
- dual_scripts
-}
-
-src_prepare_update_patchlevel_h() {
- [[ -f ${WORKDIR}/perl-patch/series ]] || return 0
-
- while read patch level ; do
- sed -i -e "s/^\t,NULL$/ ,\"${patch//__/_}\"\n&/" "${S}"/patchlevel.h || die
- done < "${WORKDIR}"/perl-patch/series
-}
-
-src_prepare() {
- EPATCH_SOURCE="${WORKDIR}/perl-patch" \
- EPATCH_SUFFIX="diff" \
- EPATCH_FORCE="yes" \
- EPATCH_OPTS="-p1" \
- epatch
-
- src_prepare_update_patchlevel_h
-
- # pod/perltoc.pod fails
- # lib/ExtUtils/t/Embed.t fails
- ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV})
- ln -s ${LIBPERL} libperl$(get_libname )
-}
-
-myconf() {
- # the myconf array is declared in src_configure
- myconf=( "${myconf[@]}" "$@" )
-}
-
-src_configure() {
- declare -a myconf
-
- export LC_ALL="C"
- [[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
-
- # some arches and -O do not mix :)
- use ppc && replace-flags -O? -O1
- # Perl has problems compiling with -Os in your flags with glibc
- use elibc_uclibc || replace-flags "-Os" "-O2"
- # This flag makes compiling crash in interesting ways
- filter-flags "-malign-double"
- # Fixes bug #97645
- use ppc && filter-flags "-mpowerpc-gpopt"
- # Fixes bug #143895 on gcc-4.1.1
- filter-flags "-fsched2-use-superblocks"
-
- use sparc && myconf -Ud_longdbl
-
- # 266337
- export BUILD_BZIP2=0
- export BZIP2_INCLUDE=/usr/include
- export BZIP2_LIB=/usr/$(get_libdir)
- cat <<-EOF > "${S}/cpan/Compress-Raw-Zlib/config.in"
- BUILD_ZLIB = False
- INCLUDE = /usr/include
- LIB = /usr/$(get_libdir)
-
- OLD_ZLIB = False
- GZIP_OS_CODE = AUTO_DETECT
- EOF
-
- # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
-
- myndbm='U'
- mygdbm='U'
- mydb='U'
-
- if use gdbm ; then
- mygdbm='D'
- myndbm='D'
- fi
- if use berkdb ; then
- mydb='D'
- has_version '=sys-libs/db-1*' && myndbm='D'
- fi
-
- myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
-
- if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
- ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
- myconf -Ui_db -Ui_ndbm
- fi
-
- use ithreads && myconf -Dusethreads
-
- if use debug ; then
- append-cflags "-g"
- myconf -DDEBUGGING
- elif [[ ${CFLAGS} == *-g* ]] ; then
- myconf -DDEBUGGING=-g
- else
- myconf -DDEBUGGING=none
- fi
-
- if [[ -n ${PERL_OLDVERSEN} ]] ; then
- local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v}/${myarch}${mythreading} ${v} "; done )
- myconf -Dinc_version_list="$inclist"
- fi
-
- [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
-
- if [[ $(get_libdir) != "lib" ]] ; then
- # We need to use " and not ', as the written config.sh use ' ...
- myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
- fi
-
- sh Configure \
- -des \
- -Duseshrplib \
- -Darchname="${myarch}" \
- -Dcc="$(tc-getCC)" \
- -Doptimize="${CFLAGS}" \
- -Dldflags="${LDFLAGS}" \
- -Dprefix='/usr' \
- -Dsiteprefix='/usr' \
- -Dvendorprefix='/usr' \
- -Dscriptdir='/usr/bin' \
- -Dprivlib="${PRIV_LIB}" \
- -Darchlib="${ARCH_LIB}" \
- -Dsitelib="${SITE_LIB}" \
- -Dsitearch="${SITE_ARCH}" \
- -Dvendorlib="${VENDOR_LIB}" \
- -Dvendorarch="${VENDOR_ARCH}" \
- -Dman1dir=/usr/share/man/man1 \
- -Dman3dir=/usr/share/man/man3 \
- -Dsiteman1dir=/usr/share/man/man1 \
- -Dsiteman3dir=/usr/share/man/man3 \
- -Dvendorman1dir=/usr/share/man/man1 \
- -Dvendorman3dir=/usr/share/man/man3 \
- -Dman1ext='1' \
- -Dman3ext='3pm' \
- -Dlibperl="${LIBPERL}" \
- -Dlocincpth=' ' \
- -Duselargefiles \
- -Dd_semctl_semun \
- -Dcf_by='Gentoo' \
- -Dmyhostname='localhost' \
- -Dperladmin='root@localhost' \
- -Dinstallusrbinperl='n' \
- -Ud_csh \
- -Uusenm \
- "${myconf[@]}" || die "Unable to configure"
-}
-
-src_compile() {
- # bug 331113
- emake -j1 || die "emake failed"
-}
-
-src_test() {
- if [[ ${EUID} == 0 ]] ; then
- ewarn "Test fails with a sandbox error (#328793) if run as root. Skipping tests..."
- return 0
- fi
- use elibc_uclibc && export MAKEOPTS+=" -j1"
- TEST_JOBS=$(echo -j1 ${MAKEOPTS} | sed -r 's/.*(-j[[:space:]]*|--jobs=)([[:digit:]]+).*/\2/' ) \
- make test_harness || die "test failed"
-}
-
-src_install() {
- local i
- local coredir="${ARCH_LIB}/CORE"
-
-# # Fix for "stupid" modules and programs
-# dodir ${SITE_ARCH} ${SITE_LIB}
-# keepdir "${VENDOR_ARCH}" #338802 for enc2xs
-
- local installtarget=install
- if use build ; then
- installtarget=install.perl
- fi
- make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
-
- rm -f "${D}"/usr/bin/perl
- ln -s perl${MY_PV} "${D}"/usr/bin/perl
-
- dolib.so "${D}"/${coredir}/${LIBPERL} || die
- dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
- dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname) || die
- rm -f "${D}"/${coredir}/${LIBPERL}
- dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
- dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${SHORT_PV})
- dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
-
- rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages"
-
-# # A poor fix for the miniperl issues
-# dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
-# fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
-# dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
-# fperms 0755 /usr/bin/xsubpp
-
- # This removes ${D} from Config.pm
- for i in $(find "${D}" -iname "Config.pm" ) ; do
- einfo "Removing ${D} from ${i}..."
- sed -i -e "s:${D}::" "${i}" || die "Sed failed"
- done
-
- find "${D}" -type f -name .packlist -delete || die
-
- # Note: find out from psm why we would need/want this.
- # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
- # find "${D}" -name "*NDBM*" | xargs rm -f
-
- dodoc Changes* README AUTHORS || die
-
- if use doc ; then
- # HTML Documentation
- # We expect errors, warnings, and such with the following.
-
- dodir /usr/share/doc/${PF}/html
- LD_LIBRARY_PATH=. ./perl installhtml \
- --podroot='.' \
- --podpath='lib:ext:pod:vms' \
- --recurse \
- --htmldir="${D}/usr/share/doc/${PF}/html" \
- --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
- fi
-
- if use build ; then
- src_remove_extra_files
- fi
-
- dual_scripts
-}
-
-pkg_postinst() {
- dual_scripts
-
- if [[ "${ROOT}" = "/" ]] ; then
- local INC DIR file
- INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${MY_PV}'|etc|local|perl$/; print "$line\n" }')
- einfo "Removing old .ph files"
- for DIR in ${INC} ; do
- if [[ -d "${DIR}" ]] ; then
- for file in $(find "${DIR}" -name "*.ph" -type f ) ; do
- rm -f "${file}"
- einfo "<< ${file}"
- done
- fi
- done
- # Silently remove the now empty dirs
- for DIR in ${INC} ; do
- if [[ -d "${DIR}" ]] ; then
- find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
- fi
- done
- if ! use build ; then
- ebegin "Generating ConfigLocal.pm (ignore any error)"
- enc2xs -C
- fi
-
- einfo "Converting C header files to the corresponding Perl format (ignore any error)"
- pushd /usr/include >/dev/null
- h2ph -Q -a -d ${ARCH_LIB} \
- asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h \
- sys/socket.h sys/time.h wait.h sysexits.h
- popd >/dev/null
-
-# This has been moved into a function because rumor has it that a future release
-# of portage will allow us to check what version was just removed - which means
-# we will be able to invoke this only as needed :)
- # Tried doing this via -z, but $INC is too big...
- #if [[ "${INC}x" != "x" ]]; then
- # cleaner_msg
- #fi
- fi
-}
-
-pkg_postrm(){
- dual_scripts
-
-# if [[ -e ${ARCH_LIB}/Encode/ConfigLocal.pm ]] ; then
-# ebegin "Removing ConfigLocal.pm"
-# rm "${ARCH_LIB}/Encode/ConfigLocal.pm"
-# fi
-}
-
-cleaner_msg() {
- eerror "You have had multiple versions of perl. It is recommended"
- eerror "that you run perl-cleaner now. perl-cleaner will"
- eerror "assist with this transition. This script is capable"
- eerror "of cleaning out old .ph files, rebuilding modules for "
- eerror "your new version of perl, as well as re-emerging"
- eerror "applications that compiled against your old libperl$(get_libname)"
- eerror
- eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
- eerror "Part of the rebuilding of applications compiled against "
- eerror "your old libperl involves temporarily unmerging"
- eerror "them - interruptions could leave you with unmerged"
- eerror "packages before they can be remerged."
- eerror ""
- eerror "If you have run perl-cleaner and a package still gives"
- eerror "you trouble, and re-emerging it fails to correct"
- eerror "the problem, please check http://bugs.gentoo.org/"
- eerror "for more information or to report a bug."
- eerror ""
-}
-
-src_remove_dual_scripts() {
-
- local i pkg ver ff
- pkg="$1"
- ver="$2"
- shift 2
- if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
- for i in "$@" ; do
- alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
- if [[ ${i} != cpanp-run-perl ]] ; then
- ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
- ff=${ff##*.1}
- alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
- fi
- done
- elif has "${EBUILD_PHASE:-none}" "setup" ; then
- for i in "$@" ; do
- if [[ -f ${ROOT}/usr/bin/${i} && ! -h ${ROOT}/usr/bin/${i} ]] ; then
- has_version ${pkg} && ewarn "You must reinstall $pkg !"
- break
- fi
- done
- else
- for i in "$@" ; do
- if ! [[ -f "${D}"/usr/bin/${i} ]] ; then
- use build || ewarn "/usr/bin/${i} does not exist!"
- continue
- fi
- mv "${D}"/usr/bin/${i}{,-${ver}-${P}} || die
- if [[ -f ${D}/usr/share/man/man1/${i}.1 ]] ; then
- mv "${D}"/usr/share/man/man1/${i}{.1,-${ver}-${P}.1} || die
- else
- echo "/usr/share/man/man1/${i}.1 does not exist!"
- fi
- done
- fi
-}
-
-src_remove_extra_files() {
- local prefix="./usr" # ./ is important
- local bindir="${prefix}/bin"
- local libdir="${prefix}/$(get_libdir)"
-
- # I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
- # Then, I added several files to get GNU autotools running
- # FIXME: should this be in a separated file to be sourced?
- local MINIMAL_PERL_INSTALL="
- ${bindir}/h2ph
- ${bindir}/perl
- ${bindir}/perl${MY_PV}
- ${bindir}/pod2man
- ${libdir}/${LIBPERL}
- ${libdir}/libperl$(get_libname)
- ${libdir}/libperl$(get_libname ${SHORT_PV})
- .${PRIV_LIB}/AutoLoader.pm
- .${PRIV_LIB}/B/Deparse.pm
- .${PRIV_LIB}/Carp.pm
- .${PRIV_LIB}/Carp/Heavy.pm
- .${PRIV_LIB}/Class/Struct.pm
- .${PRIV_LIB}/DirHandle.pm
- .${PRIV_LIB}/Exporter.pm
- .${PRIV_LIB}/Exporter/Heavy.pm
- .${PRIV_LIB}/ExtUtils/Command.pm
- .${PRIV_LIB}/ExtUtils/Command/MM.pm
- .${PRIV_LIB}/ExtUtils/Constant.pm
- .${PRIV_LIB}/ExtUtils/Constant/Base.pm
- .${PRIV_LIB}/ExtUtils/Constant/Utils.pm
- .${PRIV_LIB}/ExtUtils/Constant/XS.pm
- .${PRIV_LIB}/ExtUtils/Embed.pm
- .${PRIV_LIB}/ExtUtils/Install.pm
- .${PRIV_LIB}/ExtUtils/Installed.pm
- .${PRIV_LIB}/ExtUtils/Liblist.pm
- .${PRIV_LIB}/ExtUtils/Liblist/Kid.pm
- .${PRIV_LIB}/ExtUtils/MM.pm
- .${PRIV_LIB}/ExtUtils/MM_Any.pm
- .${PRIV_LIB}/ExtUtils/MM_MacOS.pm
- .${PRIV_LIB}/ExtUtils/MM_Unix.pm
- .${PRIV_LIB}/ExtUtils/MY.pm
- .${PRIV_LIB}/ExtUtils/MakeMaker.pm
- .${PRIV_LIB}/ExtUtils/Manifest.pm
- .${PRIV_LIB}/ExtUtils/Miniperl.pm
- .${PRIV_LIB}/ExtUtils/Mkbootstrap.pm
- .${PRIV_LIB}/ExtUtils/Mksymlists.pm
- .${PRIV_LIB}/ExtUtils/Packlist.pm
- .${PRIV_LIB}/ExtUtils/testlib.pm
- .${PRIV_LIB}/File/Basename.pm
- .${PRIV_LIB}/File/Compare.pm
- .${PRIV_LIB}/File/Copy.pm
- .${PRIV_LIB}/File/Find.pm
- .${PRIV_LIB}/File/Path.pm
- .${PRIV_LIB}/File/stat.pm
- .${PRIV_LIB}/FileHandle.pm
- .${PRIV_LIB}/Getopt/Long.pm
- .${PRIV_LIB}/Getopt/Std.pm
- .${PRIV_LIB}/IPC/Open2.pm
- .${PRIV_LIB}/IPC/Open3.pm
- .${PRIV_LIB}/PerlIO.pm
- .${PRIV_LIB}/Pod/InputObjects.pm
- .${PRIV_LIB}/Pod/Man.pm
- .${PRIV_LIB}/Pod/ParseLink.pm
- .${PRIV_LIB}/Pod/Parser.pm
- .${PRIV_LIB}/Pod/Select.pm
- .${PRIV_LIB}/Pod/Text.pm
- .${PRIV_LIB}/Pod/Usage.pm
- .${PRIV_LIB}/SelectSaver.pm
- .${PRIV_LIB}/Symbol.pm
- .${PRIV_LIB}/Text/ParseWords.pm
- .${PRIV_LIB}/Text/Tabs.pm
- .${PRIV_LIB}/Text/Wrap.pm
- .${PRIV_LIB}/Tie/Hash.pm
- .${PRIV_LIB}/Time/Local.pm
- .${PRIV_LIB}/XSLoader.pm
- .${PRIV_LIB}/autouse.pm
- .${PRIV_LIB}/base.pm
- .${PRIV_LIB}/bigint.pm
- .${PRIV_LIB}/bignum.pm
- .${PRIV_LIB}/bigrat.pm
- .${PRIV_LIB}/blib.pm
- .${PRIV_LIB}/bytes.pm
- .${PRIV_LIB}/bytes_heavy.pl
- .${PRIV_LIB}/charnames.pm
- .${PRIV_LIB}/constant.pm
- .${PRIV_LIB}/diagnostics.pm
- .${PRIV_LIB}/fields.pm
- .${PRIV_LIB}/filetest.pm
- .${PRIV_LIB}/if.pm
- .${PRIV_LIB}/integer.pm
- .${PRIV_LIB}/less.pm
- .${PRIV_LIB}/locale.pm
- .${PRIV_LIB}/open.pm
- .${PRIV_LIB}/overload.pm
- .${PRIV_LIB}/sigtrap.pm
- .${PRIV_LIB}/sort.pm
- .${PRIV_LIB}/stat.pl
- .${PRIV_LIB}/strict.pm
- .${PRIV_LIB}/subs.pm
- .${PRIV_LIB}/unicore/To/Fold.pl
- .${PRIV_LIB}/unicore/To/Lower.pl
- .${PRIV_LIB}/unicore/To/Upper.pl
- .${PRIV_LIB}/utf8.pm
- .${PRIV_LIB}/utf8_heavy.pl
- .${PRIV_LIB}/vars.pm
- .${PRIV_LIB}/vmsish.pm
- .${PRIV_LIB}/warnings
- .${PRIV_LIB}/warnings.pm
- .${PRIV_LIB}/warnings/register.pm
- .${ARCH_LIB}/B.pm
- .${ARCH_LIB}/CORE/libperl$(get_libname)
- .${ARCH_LIB}/Config.pm
- .${ARCH_LIB}/Config_heavy.pl
- .${ARCH_LIB}/Cwd.pm
- .${ARCH_LIB}/Data/Dumper.pm
- .${ARCH_LIB}/DynaLoader.pm
- .${ARCH_LIB}/Errno.pm
- .${ARCH_LIB}/Fcntl.pm
- .${ARCH_LIB}/File/Glob.pm
- .${ARCH_LIB}/File/Spec.pm
- .${ARCH_LIB}/File/Spec/Unix.pm
- .${ARCH_LIB}/IO.pm
- .${ARCH_LIB}/IO/File.pm
- .${ARCH_LIB}/IO/Handle.pm
- .${ARCH_LIB}/IO/Pipe.pm
- .${ARCH_LIB}/IO/Seekable.pm
- .${ARCH_LIB}/IO/Select.pm
- .${ARCH_LIB}/IO/Socket.pm
- .${ARCH_LIB}/IO/Socket/INET.pm
- .${ARCH_LIB}/IO/Socket/UNIX.pm
- .${ARCH_LIB}/List/Util.pm
- .${ARCH_LIB}/NDBM_File.pm
- .${ARCH_LIB}/POSIX.pm
- .${ARCH_LIB}/Scalar/Util.pm
- .${ARCH_LIB}/Socket.pm
- .${ARCH_LIB}/Storable.pm
- .${ARCH_LIB}/attributes.pm
- .${ARCH_LIB}/auto/Cwd/Cwd$(get_libname)
- .${ARCH_LIB}/auto/Data/Dumper/Dumper$(get_libname)
- .${ARCH_LIB}/auto/DynaLoader/dl_findfile.al
- .${ARCH_LIB}/auto/Fcntl/Fcntl$(get_libname)
- .${ARCH_LIB}/auto/File/Glob/Glob$(get_libname)
- .${ARCH_LIB}/auto/IO/IO$(get_libname)
- .${ARCH_LIB}/auto/POSIX/POSIX$(get_libname)
- .${ARCH_LIB}/auto/POSIX/autosplit.ix
- .${ARCH_LIB}/auto/POSIX/fstat.al
- .${ARCH_LIB}/auto/POSIX/load_imports.al
- .${ARCH_LIB}/auto/POSIX/stat.al
- .${ARCH_LIB}/auto/POSIX/tmpfile.al
- .${ARCH_LIB}/auto/Socket/Socket$(get_libname)
- .${ARCH_LIB}/auto/Storable/Storable$(get_libname)
- .${ARCH_LIB}/auto/Storable/_retrieve.al
- .${ARCH_LIB}/auto/Storable/_store.al
- .${ARCH_LIB}/auto/Storable/autosplit.ix
- .${ARCH_LIB}/auto/Storable/retrieve.al
- .${ARCH_LIB}/auto/Storable/store.al
- .${ARCH_LIB}/auto/re/re$(get_libname)
- .${ARCH_LIB}/encoding.pm
- .${ARCH_LIB}/lib.pm
- .${ARCH_LIB}/ops.pm
- .${ARCH_LIB}/re.pm
- .${ARCH_LIB}/threads.pm
-"
-
- pushd "${D}" > /dev/null
- # Remove cruft
- einfo "Removing files that are not in the minimal install"
- echo "${MINIMAL_PERL_INSTALL}"
- for f in $(find . -type f ) ; do
- has "${f}" ${MINIMAL_PERL_INSTALL} || rm -f "${f}"
- done
- # Remove empty directories
- find . -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
- #for f in ${MINIMAL_PERL_INSTALL} ; do
- # [[ -e $f ]] || ewarn "$f unused in MINIMAL_PERL_INSTALL"
- #done
- popd > /dev/null
-}