Perl update in core

This commit is contained in:
Manuel 2011-03-26 10:53:39 +00:00
parent c3270a8b6f
commit 9db8ddab88
5 changed files with 145 additions and 106 deletions

View File

@ -1,11 +1,13 @@
# $Id: PKGBUILD 66843 2010-02-01 19:44:26Z giovanni $ #
# Maintainer: Dale Blount <dale@archlinux.org> # Chakra Packages for Chakra, part of chakra-project.org
# Contributor: Dale Blount <dale@archlinux.org> #
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=perl-error pkgname=perl-error
_realname=Error _realname=Error
pkgver=0.17016 pkgver=0.17016
pkgrel=1 pkgrel=2
pkgdesc="Perl/CPAN Error module - Error/exception handling in an OO-ish way" pkgdesc="Perl/CPAN Error module - Error/exception handling in an OO-ish way"
url="http://search.cpan.org/dist/${_realname}/" url="http://search.cpan.org/dist/${_realname}/"
arch=(i686 x86_64) arch=(i686 x86_64)

View File

@ -1,132 +1,135 @@
# $Id: PKGBUILD 54318 2009-10-08 13:21:54Z francois $ #
# Maintainer: kevin <kevin.archlinux.org> # Chakra Packages for Chakra, part of chakra-project.org
# Contributor: judd <jvinet.zeroflux.org> #
# Contributor: francois <francois.archlinux.org> # maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=perl pkgname=perl
pkgver=5.12.2 pkgver=5.12.3
pkgrel=1 pkgrel=1
pkgdesc="Practical Extraction and Report Language" pkgdesc="A highly capable, feature-rich programming language"
arch=(i686 x86_64) arch=(i686 x86_64)
license=('GPL' 'PerlArtistic') license=('GPL' 'PerlArtistic')
url="http://www.perl.org" url="http://www.perl.org"
groups=('base') groups=('base')
depends=('gdbm' 'db>=4.8' 'coreutils' 'glibc' 'sh') depends=('gdbm' 'db>=4.8' 'coreutils' 'glibc' 'sh')
source=(http://www.perl.com/CPAN/src/perl-${pkgver}.tar.bz2 source=(http://www.cpan.org/src/5.0/perl-${pkgver}.tar.bz2 perlbin.sh fix-h2ph-and-tests.patch)
perlbin.sh)
install=perl.install install=perl.install
provides=( provides=(
perl-ansicolor=2.00 perl-archive-extract=0.38
perl-archive-extract=0.34 perl-archive-tar=1.54
perl-archive-tar=1.52 perl-attribute-handlers=0.87
perl-autodie=2.06_01 perl-autodie=2.06_01
perl-attribute-handlers=0.85 perl-autoloader=5.70
perl-autoloader=5.68 perl-base=2.15
perl-b-debug=1.11 perl-b-debug=1.12
perl-b-lint=1.11
perl-base=2.14
perl-bignum=0.23 perl-bignum=0.23
perl-cgi=3.43 perl-b-lint=1.11_01
perl-class-isa=0.33 perl-cgi=3.49
perl-compress-raw-bzib2=2.020 perl-class-isa=0.36
perl-compress-raw-zlib=2.020 perl-compress-raw-bzip2=2.024
perl-constant=1.17 perl-compress-raw-zlib=2.024
perl-cpan=1.9402 perl-constant=1.20
perl-cpanplus=0.88 perl-cpan=1.94_56
perl-cpanplus=0.90
perl-cpanplus-dist-build=0.46
perl-data-dumper=2.125
perl-db_file=1.820 perl-db_file=1.820
perl-dprof=20080331.00 perl-devel-dprof=20080331.00
perl-data-dumper=2.124
perl-devel-ppport=3.19
perl-devel-peek=1.04 perl-devel-peek=1.04
perl-devel-ppport=3.19
perl-digest=1.16 perl-digest=1.16
perl-digest-md5=2.39 perl-digest-md5=2.39
perl-digest-sha=5.47 perl-digest-sha=5.47
perl-encode=2.35 perl-encode=2.39
perl-encoding-warnings=0.11 perl-encoding-warnings=0.11
perl-exporter=5.63 perl-exporter=5.64_01
perl-extutils-cbuilder=0.2602 perl-extutils-cbuilder=0.27
perl-extutils-command=1.16 perl-extutils-command=1.16
perl-extutils-constant=0.22 perl-extutils-constant=0.22
perl-extutils-embed=1.28 perl-extutils-embed=1.28
perl-extutils-install=1.54 perl-extutils-install=1.55
perl-extutils-makemaker=6.55_02 perl-extutils-makemaker=6.56
perl-extutils-manifest=1.56 perl-extutils-manifest=1.57
perl-extutils-parsexs=2.2002 perl-extutils-parsexs=2.21
perl-file-fetch=0.20 perl-file-fetch=0.24
perl-file-path=2.07_03 perl-file-path=2.08_01
perl-file-temp=0.22 perl-file-temp=0.22
perl-filter=1.37 perl-filter=1.37
perl-filter-simple=0.84 perl-filter-simple=0.84
perl-getopt-long=2.38 perl-getopt-long=2.38
perl-if=0.05 perl-if=0.05
perl-io=1.25 perl-io=1.25_02
perl-io-compress=2.020 perl-io-compress=2.024
perl-io-zlib=1.09 perlio-via-quotedprint=0.06
perl-ipc-cmd=0.46 perl-io-zlib=1.10
perl-ipc-cmd=0.54
perl-ipc-sysv=2.01 perl-ipc-sysv=2.01
perl-libnet=1.22 perl-libnet=1.22
perl-locale-codes=2.07 perl-locale-codes=2.07
perl-locale-maketext=0.13 perl-locale-maketext=1.14
perl-locale-maketext-simple=0.18 perl-locale-maketext-simple=0.21
perl-log-message=0.02 perl-log-message=0.02
perl-log-message-simple=0.04 perl-log-message-simple=0.06
perl-mime-base64=3.08 perl-math-bigint=1.89_01
perl-math-bigint=1.89
perl-math-bigint-fastcalc=0.19 perl-math-bigint-fastcalc=0.19
perl-math-bigrat=0.22 perl-math-bigrat=0.24
perl-math-complex=1.56 perl-math-complex=1.56
perl-memoize=1.01_03 perl-memoize=1.01_03
perl-module-build=0.340201 perl-mime-base64=3.08
perl-module-corelist=2.18 perl-module-build=0.3603
perl-module-corelist=2.29
perl-module-load=0.16 perl-module-load=0.16
perl-module-load-conditional=0.30 perl-module-load-conditional=0.34
perl-module-loaded=0.02 perl-module-loaded=0.06
perl-module-pluggable=3.9 perl-module-pluggable=3.9
perl-next=0.64
perl-net-ping=2.36 perl-net-ping=2.36
perl-object-accessor=0.34 perl-next=0.64
perl-object-accessor=0.36
perl-package-constants=0.02 perl-package-constants=0.02
perl-params-check=0.26 perl-params-check=0.26
perl-parent=0.221 perl-parent=0.223
perl-parse-cpan-meta=1.39 perl-parse-cpan-meta=1.40
perl-pathtools=3.30 perl-pathtools=3.31
perl-pod-escapes=1.04 perl-pod-escapes=1.04
perl-pod-latex=0.58 perl-pod-latex=0.58
perl-podlators=2.3.1
perl-pod-parser=1.37 perl-pod-parser=1.37
perl-pod-perldoc=3.14_04 perl-pod-perldoc=3.15_02
perl-pod-simple=3.07 perl-pod-plainer=1.02
perl-podlators=2.2.2 perl-pod-simple=3.14
perl-safe=2.18 perl-safe=2.27
perl-scalar-list-utils=1.21 perl-scalar-list-utils=1.22
perl-selfloader=1.17 perl-selfloader=1.17
perl-shell=0.72_01 perl-shell=0.72_01
perl-storable=2.20 perl-storable=2.22
perl-switch=2.14 perl-switch=2.16
perl-sys-syslog=0.27 perl-sys-syslog=0.27
perl-term-ansicolor=2.02
perl-term-cap=1.12 perl-term-cap=1.12
perl-term-ui=0.20 perl-term-ui=0.20
perl-test=1.25_02 perl-test=1.25_02
perl-test-harness=3.17 perl-test-harness=3.17
perl-test-simple=0.92 perl-test-simple=0.94
perl-text-balanced=2.0.0 perl-text-balanced=2.02
perl-text-parsewords=3.27 perl-text-parsewords=3.27
perl-text-soundex=3.03 perl-text-soundex=3.03_01
perl-text-tabs+wraps=2009.0305 perl-text-tabs+wraps=2009.0305
perl-thread-queue=2.11 perl-thread-queue=2.11
perl-threads=1.75
perl-thread-semaphore=2.09 perl-thread-semaphore=2.09
perl-threads=1.72 perl-threads-shared=1.32
perl-threads-shared=1.29
perl-tie-file=0.97_02 perl-tie-file=0.97_02
perl-tie-refhash=1.38 perl-tie-refhash=1.38
perl-time-hires=1.9719 perl-time-hires=1.9719
perl-time-local=1.1901 perl-time-local=1.1901_01
perl-time-piece=1.15 perl-time-piece=1.15_01
perl-unicode-collate=0.52 perl-unicode-collate=0.52_01
perl-unicode-normalize=1.03 perl-unicode-normalize=1.03
perl-version=0.77 perl-version=0.82
perl-win32=0.39 perl-win32=0.39
perl-win32api-file=0.1101 perl-win32api-file=0.1101
perl-xsloader=0.10 perl-xsloader=0.10
perlio-via-quotedprint=0.06
) )
options=('!makeflags' '!purge') options=('!makeflags' '!purge')
@ -140,26 +143,31 @@ build() {
# for i686 # for i686
arch_opts="" arch_opts=""
fi fi
./Configure -des -Dusethreads -Duseshrplib -Doptimize="${CFLAGS}" -Dprefix=/usr \ ./Configure -des -Dusethreads -Duseshrplib -Doptimize="${CFLAGS}" \
-Dinstallprefix=${pkgdir}/usr -Dvendorprefix=/usr \ -Dprefix=/usr -Dinstallprefix=${pkgdir}/usr -Dvendorprefix=/usr \
-Dprivlib=/usr/share/perl5/core_perl \ -Dprivlib=/usr/share/perl5/core_perl \
-Darchlib=/usr/lib/perl5/core_perl \ -Darchlib=/usr/lib/perl5/core_perl \
-Dsitelib=/usr/share/perl5/site_perl/${pkgver} \ -Dsitelib=/usr/share/perl5/site_perl \
-Dsitearch=/usr/lib/perl5/site_perl/${pkgver} \ -Dsitearch=/usr/lib/perl5/site_perl \
-Dvendorlib=/usr/share/perl5/vendor_perl \ -Dvendorlib=/usr/share/perl5/vendor_perl \
-Dvendorarch=/usr/lib/perl5/vendor_perl \ -Dvendorarch=/usr/lib/perl5/vendor_perl \
-Dotherlibdirs=/usr/lib/perl5/current:/usr/lib/perl5/site_perl/current \ -Dscriptdir=/usr/bin/core_perl \
-Dscriptdir='/usr/bin/perlbin/core' \ -Dsitescript=/usr/bin/site_perl \
-Dsitescript='/usr/bin/perlbin/site' \ -Dvendorscript=/usr/bin/vendor_perl \
-Dvendorscript='/usr/bin/perlbin/vendor' \ -Dinc_version_list=none \
-Dman1ext=1perl -Dman3ext=3perl ${arch_opts} -Dman1ext=1perl -Dman3ext=3perl ${arch_opts}
patch -Np1 -i $srcdir/fix-h2ph-and-tests.patch
make || return 1 make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make install make install
### Perl Settings ### ### Perl Settings ###
# Change man page extensions for site and vendor module builds. # Change man page extensions for site and vendor module builds.
sed -e '/^man1ext=/ s/1perl/1p/' -e '/^man3ext=/ s/3perl/3pm/' \ sed -e '/^man1ext=/ s/1perl/1p/' -e '/^man3ext=/ s/3perl/3pm/' \
-e "/^cf_email=/ s/'.*'/'chakra-linux@googlegroups.com'/" \
-e "/^perladmin=/ s/'.*'/'chakra-linux@googlegroups.com'/" \
-i ${pkgdir}/usr/lib/perl5/core_perl/Config_heavy.pl -i ${pkgdir}/usr/lib/perl5/core_perl/Config_heavy.pl
### CPAN Settings ### ### CPAN Settings ###
@ -179,13 +187,11 @@ build() {
${pkgdir}/etc/profile.d/perlbin.sh ${pkgdir}/etc/profile.d/perlbin.sh
(cd ${pkgdir}/usr/bin; mv perl${pkgver} perl) (cd ${pkgdir}/usr/bin; mv perl${pkgver} perl)
(cd ${pkgdir}/usr/bin/perlbin/core; \ (cd ${pkgdir}/usr/bin/core_perl; ln -sf c2ph pstruct; ln -sf s2p psed)
ln -sf c2ph pstruct; ln -sf s2p psed)
grep -Rl "${pkgdir}" ${pkgdir}/usr | \ grep -Rl "${pkgdir}" ${pkgdir}/usr | \
xargs sed -i "s^${pkgdir}^^g" xargs sed -i "s^${pkgdir}^^g"
# Remove all pod files *except* those under /usr/share/perl5/core_perl/pod/ # Remove all pod files *except* those under /usr/share/perl5/core_perl/pod/
# (FS#16488)
rm -f $pkgdir/usr/share/perl5/core_perl/*.pod rm -f $pkgdir/usr/share/perl5/core_perl/*.pod
for d in $pkgdir/usr/share/perl5/core_perl/*; do for d in $pkgdir/usr/share/perl5/core_perl/*; do
if [ -d $d -a $(basename $d) != "pod" ]; then if [ -d $d -a $(basename $d) != "pod" ]; then
@ -195,5 +201,6 @@ build() {
find $pkgdir/usr/lib -name *.pod -delete find $pkgdir/usr/lib -name *.pod -delete
find $pkgdir -name .packlist -delete find $pkgdir -name .packlist -delete
} }
md5sums=('7b018fe9c2f434eff0c629b4c515a8fc' md5sums=('72f3f7e1c700e79bbf9d9279ca5b42d9'
'9c4e3e56d71f123e92a68986df5ea924') 'f86eb0dba1638ca6d1c8fff1b06c2a71'
'294b5311cbfc50e7dcffbee85854da38')

View File

@ -8,3 +8,11 @@ post_install() {
return 0 return 0
} }
post_upgrade() {
echo '- The directories /usr/lib/perl5/current, /usr/lib/perl5/site_perl/current,'
echo ' /usr/lib/perl5/site_perl/5.10.1, and /usr/share/perl5/site_perl/5.10.1'
echo ' have been removed from @INC.'
echo '- The script/binary directories are now /usr/bin/*_perl instead of'
echo ' /usr/lib/perl5/*_perl/bin which will be eventually removed.'
}

25
perl/perlbin.sh Executable file → Normal file
View File

@ -1,2 +1,23 @@
# Set path to perl scripts. # Set path to perl scriptdirs if they exist
export PATH="${PATH}:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core" # https://wiki.archlinux.org/index.php/Perl_Policy#Binaries_and_Scripts
# Added /usr/bin/*_perl dirs for scripts
# Remove /usr/lib/perl5/*_perl/bin in next release
[ -d /usr/bin/site_perl ] &&
PATH=$PATH:/usr/bin/site_perl
[ -d /usr/lib/perl5/site_perl/bin ] &&
PATH=$PATH:/usr/lib/perl5/site_perl/bin
[ -d /usr/bin/vendor_perl ] &&
PATH=$PATH:/usr/bin/vendor_perl
[ -d /usr/lib/perl5/vendor_perl/bin ] &&
PATH=$PATH:/usr/lib/perl5/vendor_perl/bin
[ -d /usr/bin/core_perl ] &&
PATH=$PATH:/usr/bin/core_perl
export PATH
# If you have modules in non-standard directories you can add them here.
#export PERLLIB=dir1:dir2

View File

@ -1,19 +1,20 @@
# $Id: PKGBUILD 49946 2009-08-17 06:59:15Z jgc $ # Chakra Packages for Chakra, part of chakra-project.org
# Maintainer: dorphell <dorphell@archlinux.org> #
# Contributor: herb <hrose@archlinux.org> # maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=perlxml pkgname=perlxml
_realname=XML-Parser _realname=XML-Parser
pkgver=2.36 pkgver=2.40
pkgrel=2 pkgrel=1
pkgdesc="XML::Parser - an XML parser module for perl" pkgdesc="XML::Parser - an XML parser module for perl"
arch=(i686 x86_64) arch=(i686 x86_64)
license=('GPL' 'PerlArtistic') license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/" url="http://search.cpan.org/dist/${_realname}/"
depends=('perl>=5.10.0' 'expat>=2.0') depends=('perl>=5.10.0' 'expat>=2.0')
options=(!emptydirs) options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/${_realname}-${pkgver}.tar.gz) source=(http://search.cpan.org/CPAN//authors/id/C/CH/CHORNY/${_realname}-${pkgver}.tar.gz)
md5sums=('1b868962b658bd87e1563ecd56498ded') md5sums=('c66e9adba003d0667cc40115ccd837a5')
build() { build() {
cd "${srcdir}/${_realname}-${pkgver}" cd "${srcdir}/${_realname}-${pkgver}"