summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2010-11-15 18:57:06 +0000
committerTorsten Veller <tove@gentoo.org>2010-11-15 18:57:06 +0000
commitafaf01222e5a1ba63ef8e158b026ae1fc61fc17d (patch)
treed72a9d8a3718fa598de8d7aba3c58337f2f15e4c /dev-lang
parentAdd new qt3support useflag per user request. Bug #345443 (diff)
downloadhistorical-afaf01222e5a1ba63ef8e158b026ae1fc61fc17d.tar.gz
historical-afaf01222e5a1ba63ef8e158b026ae1fc61fc17d.tar.bz2
historical-afaf01222e5a1ba63ef8e158b026ae1fc61fc17d.zip
Cleanup
Package-Manager: portage-2.2.0_alpha4/cvs/Linux x86_64
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/perl/ChangeLog6
-rw-r--r--dev-lang/perl/Manifest18
-rw-r--r--dev-lang/perl/perl-5.12.1-r1.ebuild612
-rw-r--r--dev-lang/perl/perl-5.12.1-r2.ebuild616
-rw-r--r--dev-lang/perl/perl-5.12.2.ebuild624
5 files changed, 16 insertions, 1860 deletions
diff --git a/dev-lang/perl/ChangeLog b/dev-lang/perl/ChangeLog
index a4c91111fc60..b55f121f79ae 100644
--- a/dev-lang/perl/ChangeLog
+++ b/dev-lang/perl/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-lang/perl
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.341 2010/11/13 16:07:16 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.342 2010/11/15 18:57:06 tove Exp $
+
+ 15 Nov 2010; Torsten Veller <tove@gentoo.org> -perl-5.12.1-r1.ebuild,
+ -perl-5.12.1-r2.ebuild, -perl-5.12.2.ebuild:
+ Cleanup
13 Nov 2010; Raúl Porcel <armin76@gentoo.org> perl-5.12.2-r2.ebuild:
alpha/ia64/m68k/s390/sh/sparc stable wrt #340023
diff --git a/dev-lang/perl/Manifest b/dev-lang/perl/Manifest
index 5d306294d22b..326776068701 100644
--- a/dev-lang/perl/Manifest
+++ b/dev-lang/perl/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX perl-5.8.7-MakeMaker-RUNPATH.patch 859 RMD160 b0e95fcd9b1bbc085e9986f8910e3fbcf3f78eb2 SHA1 1e7c2f05ffaf8f6aee753ab106a9798e6920ff06 SHA256 3d327c525e0cf57899eca48d417fa4363f40da9b0d6b70b61e951521749047ab
AUX perl-5.8.8-CAN-2005-0448-rmtree-2.patch 8187 RMD160 db38f78ef5de917719c810595072929ecb11c93a SHA1 da502e4a524b4c86e24ad5e5a027657ebecb9bd5 SHA256 def78de69a0ef27204dfc1f5f39fcd4da1b38327f446e4dca1d37b9890b338e4
AUX perl-5.8.8-CVE-2008-1927.patch 8129 RMD160 523467accd75f42ea254b1aed219efbfc2c32637 SHA1 0a36c92bb3c59064f3370376a76ef66c63fb1ba4 SHA256 614ebf7a0885fb5f7203627a3051f4df8fee2988d6bfec5a3d8fe70d97f9e45b
@@ -27,21 +30,22 @@ AUX perl-prelink-lpthread.patch 476 RMD160 f3252258e5f7a0f82b5f9ea49598ea9f4b0b4
AUX perl-regexp-nossp.patch 460 RMD160 dde3a25904275896e98d7b7f3a02926c8dbc5ca5 SHA1 e7de561f7885fb3d49635fa2dc733c0eed63b987 SHA256 e2d923711bb856b3c7f790dbc1cd1f468d647c1e50a3ff8a18745023c73b3e36
DIST perl-5.10.1-9.tar.bz2 7388 RMD160 3758c2c78e22ed55fb90db283cfd9e5998535903 SHA1 edd1150deee51079be514f8ae8a3b14b1912c0ef SHA256 bd84671e6686288c098c26c0a61d1b8471ab38d8c16fb87571011398770cef44
DIST perl-5.10.1.tar.bz2 11608061 RMD160 840b3a5ac3d7f517770ce789676ebd9154d9ee5a SHA1 98b762b5cd4fb76dd354dfa5ba0d21bc2acacaf2 SHA256 9385f2c8c2ca8b1dc4a7c31903f1f8dc8f2ba867dc2a9e5c93012ed6b564e826
-DIST perl-5.12.1-5.tar.bz2 6215 RMD160 c2ad54b68e6f787a74a81f435b9414fdc685e35d SHA1 04759880b400531d08cdd271e3a1749a7c2c3b5a SHA256 eb7155fe32857d91172627d8b9159ed2ffe7ec8e55df41320d6845dda21fc30c
-DIST perl-5.12.1.tar.bz2 12296076 RMD160 8be9ff9bae56fdf03d64cee21ab2148c5d6464e1 SHA1 75a8a17cec15d68c6bb959b0aa9879d2ded6f90d SHA256 e9189f09447b2b90a1d186b418f91e583eba41eec238e8f5b8730f71d5fc1ec5
-DIST perl-5.12.2-1.tar.bz2 4777 RMD160 9e9df77d05d7ace20d84e3619168aac1398d5d7c SHA1 69142a681db27cb1fc15798e417cc82721e76fc9 SHA256 294064bb188cd461faa40ef6abc60c8bcf328b394011bf5008326a851b3be505
DIST perl-5.12.2-2.tar.bz2 4806 RMD160 f8594dfc53b7a591d50d481dd475d661d448ec91 SHA1 f09d6acca8a0fbfade6f9e3aff2ce455ccbfca58 SHA256 72043b4cd6dd92a28005ee0f7a148043f16b0d39534d9823fda73a91c576c777
DIST perl-5.12.2-5.tar.bz2 6638 RMD160 d5777eb32c4b0be9cc0843f73c75a97d391aef56 SHA1 8643a248c159ca19b2e2967340044e61d6318e1f SHA256 2cbf34d1c53b3472477aee590bedacb8ded2906f02633101f762e1bc6c087e13
DIST perl-5.12.2-6.tar.bz2 7354 RMD160 2c22bd14803e084b263d766cb59a3064e9a64adc SHA1 c702b88d19682c7cc6d6d2909f4a08525b63bb82 SHA256 f40889475e1db924f2614f2c5b9b6cfa6fd94d9bed94b63681c7cddaa28e1ec5
DIST perl-5.12.2.tar.bz2 12348985 RMD160 c41fa3ef2c982172f73d5ddfd695cde747a92e95 SHA1 75dbbdfa5bf8d4fc813503253e2b58486fa5a4eb SHA256 3b9a75fe4ae7a9a2a17be8c8c64754ef6fd706ca528170737b03e3db7d8eae0e
DIST perl-5.8.8.tar.bz2 10123359 RMD160 e78f26d9b96e6db35f946ad4ff55e3a69385c71b SHA1 4aab490040727ca4419098720eca2ba4367df539 SHA256 818a140d9c04ea8dab3a05104b34ced7f7d9d0a91bfed91baf89a84d0dfb1bc9
EBUILD perl-5.10.1.ebuild 18185 RMD160 0e3b9ab08c0466a9de90151af365197c6bc4c17f SHA1 b426fe6fb590fa43b86d1058e1b90cc7b4f02b44 SHA256 a895a1b9398fd9f2573930e53d12ce75d12e0d7e581fdd62d699417ab548086d
-EBUILD perl-5.12.1-r1.ebuild 18793 RMD160 8ee9ccb69fc6bbda036b3fb46b2dee7db36a5cef SHA1 7afff5d0eb57ffed194bde64710b66c885a5ce53 SHA256 765c5c9a13d6314080488f5ef5343817ce6d174827ace2c0ac58fe342bb89a45
-EBUILD perl-5.12.1-r2.ebuild 18918 RMD160 e161192272782e588ed187ec2abf96b7a8505c2c SHA1 af24062a30e5b0dc6890efbaa12013a422e962e3 SHA256 87a7df5062a9df47b048bf7067e50b11efc04dc167a18129732748646deff9ae
EBUILD perl-5.12.2-r1.ebuild 19256 RMD160 94320e5500631f9d195730a0fea55bdca6d88f20 SHA1 49a18bc08971d0c67ee9d1c07117f43ec823a438 SHA256 57ff2f09e857700cf38e1afc69f8e88f6e0791be4084f8fd557b3e45e2f4421c
EBUILD perl-5.12.2-r2.ebuild 19405 RMD160 7a2f03db6cc5964ff5fb5d6ff53a0c4866ece8b8 SHA1 17637f50f5caea9bc14bf2f2e4991ddadb608db3 SHA256 e5f6d1eb0e9b5a30cfe9d5d66a0fd9071b8bf3e0107e324e5b2fe4f0bac348b9
EBUILD perl-5.12.2-r3.ebuild 19413 RMD160 916abe9a06321f576ff8f262e7e8b3a1129bf31c SHA1 d88fe1a6bf4a5e4df14f1ee56a225eb8b6827ffe SHA256 ff490960da9040e873305c9bd15035b1925ed83e872d284f87d23cf2f56d1abc
-EBUILD perl-5.12.2.ebuild 19056 RMD160 4047ee053e967b69f21a0315325adaf7871f9861 SHA1 615717bbce400317d04a85953b9fad97bc810561 SHA256 2e6c4f716ac01a8779b0cbd0a9b735fa6b6ab63ea01298bd99c896e283978597
EBUILD perl-5.8.8-r8.ebuild 20741 RMD160 387b31d0dc009abe64da05b927805dabde836ed3 SHA1 5db4fd908882140e56f6b385c28cdb6047b62bfc SHA256 b8e94ef00fadabccc97547611e9216b60b880f7896cefc713436c797565118ad
-MISC ChangeLog 68214 RMD160 547c42e3e9ff9b6e4129be83075c7820f4a16347 SHA1 59e05d974e7934ae8284b7974c09476da70045a0 SHA256 b48e4918a2dfb2896241d7183ae012dbf3a5f798ee2f8e1fd643c4d6002b466e
+MISC ChangeLog 68341 RMD160 ccce5a6532368055f106cbac377e019e77764404 SHA1 3abb59b217777165eb6ae0710864d68fb516c201 SHA256 23ea5d3033876b6c3b284332b1eef72a1e4b3495fccc2058ea55f9f6194c33a4
MISC metadata.xml 451 RMD160 8424230d79d13df7462c454050058b3526a78e92 SHA1 1ae85db5c1c1fc6413ca324ebc93b6894831b437 SHA256 49e06011c113616fa1f618cf58d42c2d6abbce5f71936f109b6ae3a5dfff587c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iEYEARECAAYFAkzhgogACgkQV3J2n04EauwnmwCfR54V2z/4vKMpCkQNGU6q8/BI
+WykAoIQ/7ddWOrnqy9IplCkjl4UifqhF
+=xXkj
+-----END PGP SIGNATURE-----
diff --git a/dev-lang/perl/perl-5.12.1-r1.ebuild b/dev-lang/perl/perl-5.12.1-r1.ebuild
deleted file mode 100644
index 72f62edadcae..000000000000
--- a/dev-lang/perl/perl-5.12.1-r1.ebuild
+++ /dev/null
@@ -1,612 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.12.1-r1.ebuild,v 1.2 2010/07/28 06:12:23 tove Exp $
-
-EAPI=3
-
-inherit eutils alternatives flag-o-matic toolchain-funcs multilib
-
-PATCH_VER=5
-
-PERL_OLDVERSEN="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/J/JE/JESSE/${MY_P}.tar.bz2
- mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
- http://dev.gentoo.org/~tove/files/${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 ~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.2"
-
-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.9456 cpan
- src_remove_dual_scripts perl-core/CPANPLUS 0.90 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/Module-Build 0.3603 config_data
- src_remove_dual_scripts perl-core/Module-CoreList 2.32 corelist
- src_remove_dual_scripts perl-core/PodParser 1.37 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
- 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. "
- echo
- fi
- if has_version "<dev-lang/perl-${SHORT_PV}" ; then
- ewarn "UPDATE THE PERL MODULES:"
- ewarn "After updating dev-lang/perl you must reinstall"
- ewarn "the installed perl modules."
- ewarn "Use: perl-cleaner --all"
- echo
- 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
- 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"
- echo
- fi
- fi
- dual_scripts
-}
-
-src_prepare_update_patchlevel_h() {
- [[ -f ${WORKDIR}/perl-patch/series ]] || return 0
-
- cat "${WORKDIR}/perl-patch/series" | while read patch level ; do
- sed -i -e "s/^\t,NULL$/ ,\"$patch\"\n&/" "${S}"/patchlevel.h || die
- done
-}
-
-src_prepare() {
- EPATCH_SOURCE="${WORKDIR}/perl-patch" \
- EPATCH_SUFFIX="diff" \
- EPATCH_FORCE="yes" \
- 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"
-
- # 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"
-
- # this is needed because gcc 3.3-compiled kernels will hang
- # the machine trying to run this test - check with `Kumba
- # <rac@gentoo.org> 2003.06.26
- use mips && myconf -Dd_u32align
-
- 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
- fi
-
- if [[ -n ${PERL_OLDVERSEN} ]] ; then
- local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v} ${v}/${myarch}${mythreading}"; done )
- myconf -Dinc_version_list="$inclist"
- fi
- [[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
-
- [[ ${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}" \
- -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_test() {
- use elibc_uclibc && export MAKEOPTS="${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}
-
- 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
-
- dual_scripts
-
- if use build ; then
- src_remove_extra_files
- fi
-}
-
-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" }')
- ebegin "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
- ebegin "Generating ConfigLocal.pm (ignore any error)"
- enc2xs -C
- ebegin "Converting C header files to the corresponding Perl format"
- 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
-}
-
-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() {
-
- use build && return
-
- local i pkg ver ff
- pkg="$1"
- ver="$2"
- shift 2
- if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
- for i in "$@" ; do
- ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
- ff=${ff##*.1}
- alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
- alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
- 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
- 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}/autouse.pm
- .${PRIV_LIB}/B/Deparse.pm
- .${PRIV_LIB}/base.pm
- .${PRIV_LIB}/bigint.pm
- .${PRIV_LIB}/bignum.pm
- .${PRIV_LIB}/bigrat.pm
- .${PRIV_LIB}/blib.pm
- .${PRIV_LIB}/bytes_heavy.pl
- .${PRIV_LIB}/bytes.pm
- .${PRIV_LIB}/Carp/Heavy.pm
- .${PRIV_LIB}/Carp.pm
- .${PRIV_LIB}/charnames.pm
- .${PRIV_LIB}/Class/Struct.pm
- .${PRIV_LIB}/constant.pm
- .${PRIV_LIB}/diagnostics.pm
- .${PRIV_LIB}/DirHandle.pm
- .${PRIV_LIB}/Exporter/Heavy.pm
- .${PRIV_LIB}/Exporter.pm
- .${PRIV_LIB}/ExtUtils/Command.pm
- .${PRIV_LIB}/ExtUtils/Constant.pm
- .${PRIV_LIB}/ExtUtils/Embed.pm
- .${PRIV_LIB}/ExtUtils/Installed.pm
- .${PRIV_LIB}/ExtUtils/Install.pm
- .${PRIV_LIB}/ExtUtils/Liblist.pm
- .${PRIV_LIB}/ExtUtils/MakeMaker.pm
- .${PRIV_LIB}/ExtUtils/Manifest.pm
- .${PRIV_LIB}/ExtUtils/Mkbootstrap.pm
- .${PRIV_LIB}/ExtUtils/Mksymlists.pm
- .${PRIV_LIB}/ExtUtils/MM_Any.pm
- .${PRIV_LIB}/ExtUtils/MM_MacOS.pm
- .${PRIV_LIB}/ExtUtils/MM.pm
- .${PRIV_LIB}/ExtUtils/MM_Unix.pm
- .${PRIV_LIB}/ExtUtils/MY.pm
- .${PRIV_LIB}/ExtUtils/Packlist.pm
- .${PRIV_LIB}/ExtUtils/testlib.pm
- .${PRIV_LIB}/ExtUtils/Miniperl.pm
- .${PRIV_LIB}/ExtUtils/Command/MM.pm
- .${PRIV_LIB}/ExtUtils/Constant/Base.pm
- .${PRIV_LIB}/ExtUtils/Constant/Utils.pm
- .${PRIV_LIB}/ExtUtils/Constant/XS.pm
- .${PRIV_LIB}/ExtUtils/Liblist/Kid.pm
- .${PRIV_LIB}/fields.pm
- .${PRIV_LIB}/File/Basename.pm
- .${PRIV_LIB}/File/Compare.pm
- .${PRIV_LIB}/File/Copy.pm
- .${PRIV_LIB}/File/Find.pm
- .${PRIV_LIB}/FileHandle.pm
- .${PRIV_LIB}/File/Path.pm
- .${PRIV_LIB}/File/stat.pm
- .${PRIV_LIB}/filetest.pm
- .${PRIV_LIB}/Getopt/Long.pm
- .${PRIV_LIB}/Getopt/Std.pm
- .${PRIV_LIB}/if.pm
- .${PRIV_LIB}/integer.pm
- .${PRIV_LIB}/IPC/Open2.pm
- .${PRIV_LIB}/IPC/Open3.pm
- .${PRIV_LIB}/less.pm
- .${PRIV_LIB}/locale.pm
- .${PRIV_LIB}/open.pm
- .${PRIV_LIB}/overload.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}/PerlIO.pm
- .${PRIV_LIB}/SelectSaver.pm
- .${PRIV_LIB}/sigtrap.pm
- .${PRIV_LIB}/sort.pm
- .${PRIV_LIB}/stat.pl
- .${PRIV_LIB}/strict.pm
- .${PRIV_LIB}/subs.pm
- .${PRIV_LIB}/Symbol.pm
- .${PRIV_LIB}/Text/ParseWords.pm
- .${PRIV_LIB}/Text/Tabs.pm
- .${PRIV_LIB}/Text/Wrap.pm
- .${PRIV_LIB}/Time/Local.pm
- .${PRIV_LIB}/unicore/Canonical.pl
- .${PRIV_LIB}/unicore/Exact.pl
- .${PRIV_LIB}/unicore/lib/gc_sc/Digit.pl
- .${PRIV_LIB}/unicore/lib/gc_sc/Word.pl
- .${PRIV_LIB}/unicore/PVA.pl
- .${PRIV_LIB}/unicore/To/Fold.pl
- .${PRIV_LIB}/unicore/To/Lower.pl
- .${PRIV_LIB}/unicore/To/Upper.pl
- .${PRIV_LIB}/utf8_heavy.pl
- .${PRIV_LIB}/utf8.pm
- .${PRIV_LIB}/vars.pm
- .${PRIV_LIB}/vmsish.pm
- .${PRIV_LIB}/warnings
- .${PRIV_LIB}/warnings.pm
- .${PRIV_LIB}/warnings/register.pm
- .${PRIV_LIB}/XSLoader.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/autosplit.ix
- .${ARCH_LIB}/auto/POSIX/fstat.al
- .${ARCH_LIB}/auto/POSIX/load_imports.al
- .${ARCH_LIB}/auto/POSIX/POSIX$(get_libname)
- .${ARCH_LIB}/auto/POSIX/stat.al
- .${ARCH_LIB}/auto/POSIX/tmpfile.al
- .${ARCH_LIB}/auto/re/re$(get_libname)
- .${ARCH_LIB}/auto/Socket/Socket$(get_libname)
- .${ARCH_LIB}/auto/Storable/autosplit.ix
- .${ARCH_LIB}/auto/Storable/_retrieve.al
- .${ARCH_LIB}/auto/Storable/retrieve.al
- .${ARCH_LIB}/auto/Storable/Storable$(get_libname)
- .${ARCH_LIB}/auto/Storable/_store.al
- .${ARCH_LIB}/auto/Storable/store.al
- .${ARCH_LIB}/B.pm
- .${ARCH_LIB}/Config.pm
- .${ARCH_LIB}/Config_heavy.pl
- .${ARCH_LIB}/CORE/libperl$(get_libname)
- .${ARCH_LIB}/Cwd.pm
- .${ARCH_LIB}/Data/Dumper.pm
- .${ARCH_LIB}/DynaLoader.pm
- .${ARCH_LIB}/encoding.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}/_h2ph_pre.ph
- .${ARCH_LIB}/IO/File.pm
- .${ARCH_LIB}/IO/Handle.pm
- .${ARCH_LIB}/IO/Pipe.pm
- .${ARCH_LIB}/IO.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}/lib.pm
- .${ARCH_LIB}/List/Util.pm
- .${ARCH_LIB}/NDBM_File.pm
- .${ARCH_LIB}/ops.pm
- .${ARCH_LIB}/POSIX.pm
- .${ARCH_LIB}/re.pm
- .${ARCH_LIB}/Scalar/Util.pm
- .${ARCH_LIB}/Socket.pm
- .${ARCH_LIB}/Storable.pm
- .${ARCH_LIB}/threads
- .${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
- popd > /dev/null
-}
diff --git a/dev-lang/perl/perl-5.12.1-r2.ebuild b/dev-lang/perl/perl-5.12.1-r2.ebuild
deleted file mode 100644
index 30745f08a099..000000000000
--- a/dev-lang/perl/perl-5.12.1-r2.ebuild
+++ /dev/null
@@ -1,616 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.12.1-r2.ebuild,v 1.1 2010/08/30 11:13:29 tove Exp $
-
-EAPI=3
-
-inherit eutils alternatives flag-o-matic toolchain-funcs multilib
-
-PATCH_VER=5
-
-PERL_OLDVERSEN="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/J/JE/JESSE/${MY_P}.tar.bz2
- mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
- http://dev.gentoo.org/~tove/files/${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 ~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.2"
-
-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.9456 cpan
- src_remove_dual_scripts perl-core/CPANPLUS 0.90 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/Module-Build 0.3603 config_data
- src_remove_dual_scripts perl-core/Module-CoreList 2.32 corelist
- src_remove_dual_scripts perl-core/PodParser 1.37 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
-
- 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"
-
- # 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"
-
- # this is needed because gcc 3.3-compiled kernels will hang
- # the machine trying to run this test - check with `Kumba
- # <rac@gentoo.org> 2003.06.26
- use mips && myconf -Dd_u32align
-
- 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} ${v}/${myarch}${mythreading}"; done )
- myconf -Dinc_version_list="$inclist"
- fi
- [[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
-
- [[ ${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}" \
- -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_test() {
- use elibc_uclibc && export MAKEOPTS="${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}
-
- 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
-
- dual_scripts
-
- if use build ; then
- src_remove_extra_files
- fi
-}
-
-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" }')
- ebegin "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
- ebegin "Generating ConfigLocal.pm (ignore any error)"
- enc2xs -C
- ebegin "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
-}
-
-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() {
-
- use build && return
-
- local i pkg ver ff
- pkg="$1"
- ver="$2"
- shift 2
- if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
- for i in "$@" ; do
- ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
- ff=${ff##*.1}
- alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
- alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
- 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
- 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}/autouse.pm
- .${PRIV_LIB}/B/Deparse.pm
- .${PRIV_LIB}/base.pm
- .${PRIV_LIB}/bigint.pm
- .${PRIV_LIB}/bignum.pm
- .${PRIV_LIB}/bigrat.pm
- .${PRIV_LIB}/blib.pm
- .${PRIV_LIB}/bytes_heavy.pl
- .${PRIV_LIB}/bytes.pm
- .${PRIV_LIB}/Carp/Heavy.pm
- .${PRIV_LIB}/Carp.pm
- .${PRIV_LIB}/charnames.pm
- .${PRIV_LIB}/Class/Struct.pm
- .${PRIV_LIB}/constant.pm
- .${PRIV_LIB}/diagnostics.pm
- .${PRIV_LIB}/DirHandle.pm
- .${PRIV_LIB}/Exporter/Heavy.pm
- .${PRIV_LIB}/Exporter.pm
- .${PRIV_LIB}/ExtUtils/Command.pm
- .${PRIV_LIB}/ExtUtils/Constant.pm
- .${PRIV_LIB}/ExtUtils/Embed.pm
- .${PRIV_LIB}/ExtUtils/Installed.pm
- .${PRIV_LIB}/ExtUtils/Install.pm
- .${PRIV_LIB}/ExtUtils/Liblist.pm
- .${PRIV_LIB}/ExtUtils/MakeMaker.pm
- .${PRIV_LIB}/ExtUtils/Manifest.pm
- .${PRIV_LIB}/ExtUtils/Mkbootstrap.pm
- .${PRIV_LIB}/ExtUtils/Mksymlists.pm
- .${PRIV_LIB}/ExtUtils/MM_Any.pm
- .${PRIV_LIB}/ExtUtils/MM_MacOS.pm
- .${PRIV_LIB}/ExtUtils/MM.pm
- .${PRIV_LIB}/ExtUtils/MM_Unix.pm
- .${PRIV_LIB}/ExtUtils/MY.pm
- .${PRIV_LIB}/ExtUtils/Packlist.pm
- .${PRIV_LIB}/ExtUtils/testlib.pm
- .${PRIV_LIB}/ExtUtils/Miniperl.pm
- .${PRIV_LIB}/ExtUtils/Command/MM.pm
- .${PRIV_LIB}/ExtUtils/Constant/Base.pm
- .${PRIV_LIB}/ExtUtils/Constant/Utils.pm
- .${PRIV_LIB}/ExtUtils/Constant/XS.pm
- .${PRIV_LIB}/ExtUtils/Liblist/Kid.pm
- .${PRIV_LIB}/fields.pm
- .${PRIV_LIB}/File/Basename.pm
- .${PRIV_LIB}/File/Compare.pm
- .${PRIV_LIB}/File/Copy.pm
- .${PRIV_LIB}/File/Find.pm
- .${PRIV_LIB}/FileHandle.pm
- .${PRIV_LIB}/File/Path.pm
- .${PRIV_LIB}/File/stat.pm
- .${PRIV_LIB}/filetest.pm
- .${PRIV_LIB}/Getopt/Long.pm
- .${PRIV_LIB}/Getopt/Std.pm
- .${PRIV_LIB}/if.pm
- .${PRIV_LIB}/integer.pm
- .${PRIV_LIB}/IPC/Open2.pm
- .${PRIV_LIB}/IPC/Open3.pm
- .${PRIV_LIB}/less.pm
- .${PRIV_LIB}/locale.pm
- .${PRIV_LIB}/open.pm
- .${PRIV_LIB}/overload.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}/PerlIO.pm
- .${PRIV_LIB}/SelectSaver.pm
- .${PRIV_LIB}/sigtrap.pm
- .${PRIV_LIB}/sort.pm
- .${PRIV_LIB}/stat.pl
- .${PRIV_LIB}/strict.pm
- .${PRIV_LIB}/subs.pm
- .${PRIV_LIB}/Symbol.pm
- .${PRIV_LIB}/Text/ParseWords.pm
- .${PRIV_LIB}/Text/Tabs.pm
- .${PRIV_LIB}/Text/Wrap.pm
- .${PRIV_LIB}/Time/Local.pm
- .${PRIV_LIB}/unicore/Canonical.pl
- .${PRIV_LIB}/unicore/Exact.pl
- .${PRIV_LIB}/unicore/lib/gc_sc/Digit.pl
- .${PRIV_LIB}/unicore/lib/gc_sc/Word.pl
- .${PRIV_LIB}/unicore/PVA.pl
- .${PRIV_LIB}/unicore/To/Fold.pl
- .${PRIV_LIB}/unicore/To/Lower.pl
- .${PRIV_LIB}/unicore/To/Upper.pl
- .${PRIV_LIB}/utf8_heavy.pl
- .${PRIV_LIB}/utf8.pm
- .${PRIV_LIB}/vars.pm
- .${PRIV_LIB}/vmsish.pm
- .${PRIV_LIB}/warnings
- .${PRIV_LIB}/warnings.pm
- .${PRIV_LIB}/warnings/register.pm
- .${PRIV_LIB}/XSLoader.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/autosplit.ix
- .${ARCH_LIB}/auto/POSIX/fstat.al
- .${ARCH_LIB}/auto/POSIX/load_imports.al
- .${ARCH_LIB}/auto/POSIX/POSIX$(get_libname)
- .${ARCH_LIB}/auto/POSIX/stat.al
- .${ARCH_LIB}/auto/POSIX/tmpfile.al
- .${ARCH_LIB}/auto/re/re$(get_libname)
- .${ARCH_LIB}/auto/Socket/Socket$(get_libname)
- .${ARCH_LIB}/auto/Storable/autosplit.ix
- .${ARCH_LIB}/auto/Storable/_retrieve.al
- .${ARCH_LIB}/auto/Storable/retrieve.al
- .${ARCH_LIB}/auto/Storable/Storable$(get_libname)
- .${ARCH_LIB}/auto/Storable/_store.al
- .${ARCH_LIB}/auto/Storable/store.al
- .${ARCH_LIB}/B.pm
- .${ARCH_LIB}/Config.pm
- .${ARCH_LIB}/Config_heavy.pl
- .${ARCH_LIB}/CORE/libperl$(get_libname)
- .${ARCH_LIB}/Cwd.pm
- .${ARCH_LIB}/Data/Dumper.pm
- .${ARCH_LIB}/DynaLoader.pm
- .${ARCH_LIB}/encoding.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}/_h2ph_pre.ph
- .${ARCH_LIB}/IO/File.pm
- .${ARCH_LIB}/IO/Handle.pm
- .${ARCH_LIB}/IO/Pipe.pm
- .${ARCH_LIB}/IO.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}/lib.pm
- .${ARCH_LIB}/List/Util.pm
- .${ARCH_LIB}/NDBM_File.pm
- .${ARCH_LIB}/ops.pm
- .${ARCH_LIB}/POSIX.pm
- .${ARCH_LIB}/re.pm
- .${ARCH_LIB}/Scalar/Util.pm
- .${ARCH_LIB}/Socket.pm
- .${ARCH_LIB}/Storable.pm
- .${ARCH_LIB}/threads
- .${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
- popd > /dev/null
-}
diff --git a/dev-lang/perl/perl-5.12.2.ebuild b/dev-lang/perl/perl-5.12.2.ebuild
deleted file mode 100644
index f4a0679a8dce..000000000000
--- a/dev-lang/perl/perl-5.12.2.ebuild
+++ /dev/null
@@ -1,624 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.12.2.ebuild,v 1.2 2010/09/20 02:26:25 leio Exp $
-
-EAPI=3
-
-inherit eutils alternatives flag-o-matic toolchain-funcs multilib
-
-PATCH_VER=1
-
-PERL_OLDVERSEN="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/J/JE/JESSE/${MY_P}.tar.bz2
- mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
- http://dev.gentoo.org/~tove/files/${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.2"
-
-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.9456 cpan
- src_remove_dual_scripts perl-core/CPANPLUS 0.90 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/Module-Build 0.3603 config_data
- src_remove_dual_scripts perl-core/Module-CoreList 2.38 corelist
- src_remove_dual_scripts perl-core/PodParser 1.37 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
-
- 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"
-
- # 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"
-
- # this is needed because gcc 3.3-compiled kernels will hang
- # the machine trying to run this test - check with `Kumba
- # <rac@gentoo.org> 2003.06.26
- use mips && myconf -Dd_u32align
-
- 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
- [[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
-
- [[ ${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}" \
- -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
-# mv t/op/filetest{.t,.disable} || die
-# 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}
-
- 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
-
- dual_scripts
-
- if use build ; then
- src_remove_extra_files
- fi
-}
-
-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" }')
- ebegin "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
- ebegin "Generating ConfigLocal.pm (ignore any error)"
- enc2xs -C
- ebegin "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
-}
-
-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() {
-
- use build && return
-
- local i pkg ver ff
- pkg="$1"
- ver="$2"
- shift 2
- if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
- for i in "$@" ; do
- ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
- ff=${ff##*.1}
- alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
- alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
- 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
- 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}/autouse.pm
- .${PRIV_LIB}/B/Deparse.pm
- .${PRIV_LIB}/base.pm
- .${PRIV_LIB}/bigint.pm
- .${PRIV_LIB}/bignum.pm
- .${PRIV_LIB}/bigrat.pm
- .${PRIV_LIB}/blib.pm
- .${PRIV_LIB}/bytes_heavy.pl
- .${PRIV_LIB}/bytes.pm
- .${PRIV_LIB}/Carp/Heavy.pm
- .${PRIV_LIB}/Carp.pm
- .${PRIV_LIB}/charnames.pm
- .${PRIV_LIB}/Class/Struct.pm
- .${PRIV_LIB}/constant.pm
- .${PRIV_LIB}/diagnostics.pm
- .${PRIV_LIB}/DirHandle.pm
- .${PRIV_LIB}/Exporter/Heavy.pm
- .${PRIV_LIB}/Exporter.pm
- .${PRIV_LIB}/ExtUtils/Command.pm
- .${PRIV_LIB}/ExtUtils/Constant.pm
- .${PRIV_LIB}/ExtUtils/Embed.pm
- .${PRIV_LIB}/ExtUtils/Installed.pm
- .${PRIV_LIB}/ExtUtils/Install.pm
- .${PRIV_LIB}/ExtUtils/Liblist.pm
- .${PRIV_LIB}/ExtUtils/MakeMaker.pm
- .${PRIV_LIB}/ExtUtils/Manifest.pm
- .${PRIV_LIB}/ExtUtils/Mkbootstrap.pm
- .${PRIV_LIB}/ExtUtils/Mksymlists.pm
- .${PRIV_LIB}/ExtUtils/MM_Any.pm
- .${PRIV_LIB}/ExtUtils/MM_MacOS.pm
- .${PRIV_LIB}/ExtUtils/MM.pm
- .${PRIV_LIB}/ExtUtils/MM_Unix.pm
- .${PRIV_LIB}/ExtUtils/MY.pm
- .${PRIV_LIB}/ExtUtils/Packlist.pm
- .${PRIV_LIB}/ExtUtils/testlib.pm
- .${PRIV_LIB}/ExtUtils/Miniperl.pm
- .${PRIV_LIB}/ExtUtils/Command/MM.pm
- .${PRIV_LIB}/ExtUtils/Constant/Base.pm
- .${PRIV_LIB}/ExtUtils/Constant/Utils.pm
- .${PRIV_LIB}/ExtUtils/Constant/XS.pm
- .${PRIV_LIB}/ExtUtils/Liblist/Kid.pm
- .${PRIV_LIB}/fields.pm
- .${PRIV_LIB}/File/Basename.pm
- .${PRIV_LIB}/File/Compare.pm
- .${PRIV_LIB}/File/Copy.pm
- .${PRIV_LIB}/File/Find.pm
- .${PRIV_LIB}/FileHandle.pm
- .${PRIV_LIB}/File/Path.pm
- .${PRIV_LIB}/File/stat.pm
- .${PRIV_LIB}/filetest.pm
- .${PRIV_LIB}/Getopt/Long.pm
- .${PRIV_LIB}/Getopt/Std.pm
- .${PRIV_LIB}/if.pm
- .${PRIV_LIB}/integer.pm
- .${PRIV_LIB}/IPC/Open2.pm
- .${PRIV_LIB}/IPC/Open3.pm
- .${PRIV_LIB}/less.pm
- .${PRIV_LIB}/locale.pm
- .${PRIV_LIB}/open.pm
- .${PRIV_LIB}/overload.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}/PerlIO.pm
- .${PRIV_LIB}/SelectSaver.pm
- .${PRIV_LIB}/sigtrap.pm
- .${PRIV_LIB}/sort.pm
- .${PRIV_LIB}/stat.pl
- .${PRIV_LIB}/strict.pm
- .${PRIV_LIB}/subs.pm
- .${PRIV_LIB}/Symbol.pm
- .${PRIV_LIB}/Text/ParseWords.pm
- .${PRIV_LIB}/Text/Tabs.pm
- .${PRIV_LIB}/Text/Wrap.pm
- .${PRIV_LIB}/Time/Local.pm
- .${PRIV_LIB}/unicore/Canonical.pl
- .${PRIV_LIB}/unicore/Exact.pl
- .${PRIV_LIB}/unicore/lib/gc_sc/Digit.pl
- .${PRIV_LIB}/unicore/lib/gc_sc/Word.pl
- .${PRIV_LIB}/unicore/PVA.pl
- .${PRIV_LIB}/unicore/To/Fold.pl
- .${PRIV_LIB}/unicore/To/Lower.pl
- .${PRIV_LIB}/unicore/To/Upper.pl
- .${PRIV_LIB}/utf8_heavy.pl
- .${PRIV_LIB}/utf8.pm
- .${PRIV_LIB}/vars.pm
- .${PRIV_LIB}/vmsish.pm
- .${PRIV_LIB}/warnings
- .${PRIV_LIB}/warnings.pm
- .${PRIV_LIB}/warnings/register.pm
- .${PRIV_LIB}/XSLoader.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/autosplit.ix
- .${ARCH_LIB}/auto/POSIX/fstat.al
- .${ARCH_LIB}/auto/POSIX/load_imports.al
- .${ARCH_LIB}/auto/POSIX/POSIX$(get_libname)
- .${ARCH_LIB}/auto/POSIX/stat.al
- .${ARCH_LIB}/auto/POSIX/tmpfile.al
- .${ARCH_LIB}/auto/re/re$(get_libname)
- .${ARCH_LIB}/auto/Socket/Socket$(get_libname)
- .${ARCH_LIB}/auto/Storable/autosplit.ix
- .${ARCH_LIB}/auto/Storable/_retrieve.al
- .${ARCH_LIB}/auto/Storable/retrieve.al
- .${ARCH_LIB}/auto/Storable/Storable$(get_libname)
- .${ARCH_LIB}/auto/Storable/_store.al
- .${ARCH_LIB}/auto/Storable/store.al
- .${ARCH_LIB}/B.pm
- .${ARCH_LIB}/Config.pm
- .${ARCH_LIB}/Config_heavy.pl
- .${ARCH_LIB}/CORE/libperl$(get_libname)
- .${ARCH_LIB}/Cwd.pm
- .${ARCH_LIB}/Data/Dumper.pm
- .${ARCH_LIB}/DynaLoader.pm
- .${ARCH_LIB}/encoding.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}/_h2ph_pre.ph
- .${ARCH_LIB}/IO/File.pm
- .${ARCH_LIB}/IO/Handle.pm
- .${ARCH_LIB}/IO/Pipe.pm
- .${ARCH_LIB}/IO.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}/lib.pm
- .${ARCH_LIB}/List/Util.pm
- .${ARCH_LIB}/NDBM_File.pm
- .${ARCH_LIB}/ops.pm
- .${ARCH_LIB}/POSIX.pm
- .${ARCH_LIB}/re.pm
- .${ARCH_LIB}/Scalar/Util.pm
- .${ARCH_LIB}/Socket.pm
- .${ARCH_LIB}/Storable.pm
- .${ARCH_LIB}/threads
- .${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
- popd > /dev/null
-}