summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2005-08-12 10:21:14 +0000
committerMichael Cummings <mcummings@gentoo.org>2005-08-12 10:21:14 +0000
commit1de073eeeb2bf9e9226be15da85ed66d712bb038 (patch)
tree4bf9c59ce94554d8d13421ea66028cc3ee74d311 /dev-lang/perl/perl-5.8.7.ebuild
parentMarking stable x86 - marked an old one by mistake earlier (diff)
downloadgentoo-2-1de073eeeb2bf9e9226be15da85ed66d712bb038.tar.gz
gentoo-2-1de073eeeb2bf9e9226be15da85ed66d712bb038.tar.bz2
gentoo-2-1de073eeeb2bf9e9226be15da85ed66d712bb038.zip
getlibdir changes for 5.8.7, bug #58931
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-lang/perl/perl-5.8.7.ebuild')
-rw-r--r--dev-lang/perl/perl-5.8.7.ebuild90
1 files changed, 64 insertions, 26 deletions
diff --git a/dev-lang/perl/perl-5.8.7.ebuild b/dev-lang/perl/perl-5.8.7.ebuild
index 5014c3439c6d..c8d930b0725f 100644
--- a/dev-lang/perl/perl-5.8.7.ebuild
+++ b/dev-lang/perl/perl-5.8.7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.8.7.ebuild,v 1.4 2005/08/08 14:58:02 koon Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.8.7.ebuild,v 1.5 2005/08/12 10:21:14 mcummings Exp $
inherit eutils flag-o-matic toolchain-funcs multilib
@@ -13,12 +13,12 @@ DESCRIPTION="Larry Wall's Practical Extraction and Reporting Language"
S="${WORKDIR}/${MY_P}"
SRC_URI="ftp://ftp.perl.org/pub/CPAN/src/${MY_P}.tar.bz2"
HOMEPAGE="http://www.perl.org/"
-LIBPERL="libperl.so.${PERLSLOT}.${SHORT_PV}"
+LIBPERL="libperl$(get_libname).${PERLSLOT}.${SHORT_PV}"
LICENSE="Artistic GPL-2"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="berkdb debug doc gdbm ithreads perlsuid build minimal"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~s390 ~sh ~sparc ~x86"
+IUSE="berkdb debug doc gdbm ithreads perlsuid build minimal userland_Darwin"
PERL_OLDVERSEN="5.8.0 5.8.2 5.8.4 5.8.5 5.8.6"
DEPEND="!elibc_uclibc? ( sys-apps/groff )
@@ -120,7 +120,7 @@ src_unpack() {
# with ssp enabled. This become fatal during compile time so we
# temporally disable ssp on two regexp files till upstream has a
# chance to work it out. Bug #97452
- epatch "${FILESDIR}"/${P}-regexp-nossp.patch
+ use userland_Darwin || epatch "${FILESDIR}"/${P}-regexp-nossp.patch
}
src_configure() {
@@ -139,6 +139,8 @@ src_configure() {
if [[ ${KERNEL} == "FreeBSD" && "${ELIBC}" = "FreeBSD" ]]; then
osname="freebsd"
+ elif [[ ${USERLAND} == "Darwin" ]]; then
+ osname="darwin"
else
# Default setting
osname="linux"
@@ -262,8 +264,8 @@ src_install() {
local coredir="/usr/lib/perl5/${PV}/${myarch}${mythreading}/CORE"
dodir ${coredir}
dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
- dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl.so.${PERLSLOT}
- dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl.so
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname).${PERLSLOT}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
# Fix for "stupid" modules and programs
dodir /usr/lib/perl5/site_perl/${PV}/${myarch}${mythreading}
@@ -391,6 +393,31 @@ src_remove_extra_files()
${prV}/DirHandle.pm
${prV}/Exporter/Heavy.pm
${prV}/Exporter.pm
+ ${prV}/ExtUtils/Command.pm
+ ${prV}/ExtUtils/Constant.pm
+ ${prV}/ExtUtils/Embed.pm
+ ${prV}/ExtUtils/Installed.pm
+ ${prV}/ExtUtils/Install.pm
+ ${prV}/ExtUtils/Liblist.pm
+ ${prV}/ExtUtils/MakeMaker.pm
+ ${prV}/ExtUtils/Manifest.pm
+ ${prV}/ExtUtils/Mkbootstrap.pm
+ ${prV}/ExtUtils/Mksymlists.pm
+ ${prV}/ExtUtils/MM_Any.pm
+ ${prV}/ExtUtils/MM_MacOS.pm
+ ${prV}/ExtUtils/MM.pm
+ ${prV}/ExtUtils/MM_Unix.pm
+ ${prV}/ExtUtils/MY.pm
+ ${prV}/ExtUtils/Packlist.pm
+ ${prV}/ExtUtils/testlib.pm
+ ${prV}/ExtUtils/Miniperl.pm
+ ${prV}/ExtUtils/Command/MM.pm
+ ${prV}/ExtUtils/Constant/Base.pm
+ ${prV}/ExtUtils/Constant/Utils.pm
+ ${prV}/ExtUtils/Constant/XS.pm
+ ${prV}/ExtUtils/Liblist/Kid.pm
+ ${prV}/ExtUtils/MakeMaker/bytes.pm
+ ${prV}/ExtUtils/MakeMaker/vmsish.pm
${prV}/fields.pm
${prV}/File/Basename.pm
${prV}/File/Compare.pm
@@ -404,32 +431,32 @@ src_remove_extra_files()
${prV}/filetest.pm
${prVA}/attrs.pm
${prVA}/auto/attrs
- ${prVA}/auto/Cwd/Cwd.so
- ${prVA}/auto/Data/Dumper/Dumper.so
+ ${prVA}/auto/Cwd/Cwd.$(get_libname)
+ ${prVA}/auto/Data/Dumper/Dumper.$(get_libname)
${prVA}/auto/DynaLoader/dl_findfile.al
- ${prVA}/auto/Fcntl/Fcntl.so
- ${prVA}/auto/File/Glob/Glob.so
- ${prVA}/auto/IO/IO.so
+ ${prVA}/auto/Fcntl/Fcntl.$(get_libname)
+ ${prVA}/auto/File/Glob/Glob.$(get_libname)
+ ${prVA}/auto/IO/IO.$(get_libname)
${prVA}/auto/POSIX/autosplit.ix
${prVA}/auto/POSIX/fstat.al
${prVA}/auto/POSIX/load_imports.al
${prVA}/auto/POSIX/POSIX.bs
- ${prVA}/auto/POSIX/POSIX.so
+ ${prVA}/auto/POSIX/POSIX.$(get_libname)
${prVA}/auto/POSIX/stat.al
${prVA}/auto/POSIX/tmpfile.al
- ${prVA}/auto/re/re.so
- ${prVA}/auto/Socket/Socket.so
+ ${prVA}/auto/re/re.$(get_libname)
+ ${prVA}/auto/Socket/Socket.$(get_libname)
${prVA}/auto/Storable/autosplit.ix
${prVA}/auto/Storable/_retrieve.al
${prVA}/auto/Storable/retrieve.al
- ${prVA}/auto/Storable/Storable.so
+ ${prVA}/auto/Storable/Storable.$(get_libname)
${prVA}/auto/Storable/_store.al
${prVA}/auto/Storable/store.al
${prVA}/B/Deparse.pm
${prVA}/B.pm
${prVA}/Config.pm
${prVA}/Config_heavy.pl
- ${prVA}/CORE/libperl.so
+ ${prVA}/CORE/libperl$(get_libname)
${prVA}/Cwd.pm
${prVA}/Data/Dumper.pm
${prVA}/DynaLoader.pm
@@ -504,6 +531,15 @@ src_remove_extra_files()
${prV}/warnings.pm
${prV}/warnings/register.pm"
+ # Catch the headers in CORE
+ if use minimal ; then
+ for header in `find ${D}${prVA} -name "*.h"|sed -e "s:${D}::g"`; do
+ #header=`echo $head|sed -e "s:${D}::g"`
+ MINIMAL_PERL_INSTALL="${MINIMAL_PERL_INSTALL}
+ $header"
+ done
+ fi
+
if use perlsuid ; then
MINIMAL_PERL_INSTALL="${MINIMAL_PERL_INSTALL}
${bindir}/suidperl
@@ -513,6 +549,8 @@ src_remove_extra_files()
pushd ${D} > /dev/null
# Remove cruft
einfo "Removing files that are not in the minimal install"
+ echo "${MINIMAL_PERL_INSTALL}"
+ sleep 120
for f in $(find . -type f); do
has ${f} ${MINIMAL_PERL_INSTALL} || rm -f ${f}
done
@@ -523,12 +561,12 @@ src_remove_extra_files()
pkg_postinst() {
# Make sure we do not have stale/invalid libperl.so 's ...
- if [ -f "${ROOT}usr/$(get_libdir)/libperl.so" -a ! -L "${ROOT}usr/$(get_libdir)/libperl.so" ]
+ if [ -f "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" -a ! -L "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" ]
then
- mv -f ${ROOT}usr/$(get_libdir)/libperl.so ${ROOT}usr/$(get_libdir)/libperl.so.old
+ mv -f ${ROOT}usr/$(get_libdir)/libperl$(get_libname) ${ROOT}usr/$(get_libdir)/libperl$(get_libname).old
fi
- local perllib="`readlink -f ${ROOT}usr/$(get_libdir)/libperl.so | sed -e 's:^.*/::'`"
+ local perllib="`readlink -f ${ROOT}usr/$(get_libdir)/libperl$(get_libname) | sed -e 's:^.*/::'`"
# If we are installing perl, we need the /usr/lib/libperl.so symlink to
# point to the version of perl we are running, else builing something
@@ -536,12 +574,12 @@ pkg_postinst() {
if [ "${perllib}" != "${LIBPERL}" ]
then
# Delete stale symlinks
- rm -f ${ROOT}usr/$(get_libdir)/libperl.so
- rm -f ${ROOT}usr/$(get_libdir)/libperl.so.${PERLSLOT}
+ rm -f ${ROOT}usr/$(get_libdir)/libperl$(get_libname)
+ rm -f ${ROOT}usr/$(get_libdir)/libperl$(get_libname).${PERLSLOT}
# Regenerate libperl.so.${PERLSLOT}
- ln -snf ${LIBPERL} ${ROOT}usr/$(get_libdir)/libperl.so.${PERLSLOT}
+ ln -snf ${LIBPERL} ${ROOT}usr/$(get_libdir)/libperl$(get_libname).${PERLSLOT}
# Create libperl.so (we use the *soname* versioned lib here ..)
- ln -snf libperl.so.${PERLSLOT} ${ROOT}usr/$(get_libdir)/libperl.so
+ ln -snf libperl$(get_libname).${PERLSLOT} ${ROOT}usr/$(get_libdir)/libperl$(get_libname)
fi
INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${PV}'|etc|local|perl$/; print "$line\n" }')
@@ -575,7 +613,7 @@ pkg_postinst() {
# Tried doing this via -z, but $INC is too big...
if [ "${INC}x" != "x" ]; then
cleaner_msg
- epause 10
+ epause 5
fi
}
@@ -585,7 +623,7 @@ cleaner_msg() {
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.so"
+ 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 "