mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 10:32:15 +08:00
proper perl PKGBUILD
This commit is contained in:
parent
42ec210037
commit
ae3edb1fe7
@ -4,7 +4,7 @@
|
||||
# Contributor: francois <francois.archlinux.org>
|
||||
pkgname=perl
|
||||
pkgver=5.12.2
|
||||
pkgrel=5
|
||||
pkgrel=1
|
||||
pkgdesc="Practical Extraction and Report Language"
|
||||
arch=(i686 x86_64)
|
||||
license=('GPL' 'PerlArtistic')
|
||||
@ -12,7 +12,7 @@ url="http://www.perl.org"
|
||||
groups=('base')
|
||||
depends=('gdbm' 'db>=4.8' 'coreutils' 'glibc' 'sh')
|
||||
source=(http://www.perl.com/CPAN/src/perl-${pkgver}.tar.bz2
|
||||
perlbin.sh perl-5.10.1-archlinux-inc-order.patch)
|
||||
perlbin.sh)
|
||||
install=perl.install
|
||||
provides=(
|
||||
perl-ansicolor=2.00
|
||||
@ -132,7 +132,6 @@ options=('!makeflags' '!purge')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
patch -Np0 -i ../perl-5.10.1-archlinux-inc-order.patch || return 1
|
||||
|
||||
if [ "${CARCH}" = "x86_64" ]; then
|
||||
# for x86_64
|
||||
@ -197,5 +196,4 @@ build() {
|
||||
find $pkgdir -name .packlist -delete
|
||||
}
|
||||
md5sums=('7b018fe9c2f434eff0c629b4c515a8fc'
|
||||
'9c4e3e56d71f123e92a68986df5ea924'
|
||||
'0e4853bd75ee36b8f4c70b78c707b2fa')
|
||||
'9c4e3e56d71f123e92a68986df5ea924')
|
||||
|
@ -1,101 +0,0 @@
|
||||
Tweak @INC so that the ordering is:
|
||||
site (5.8.8)
|
||||
vendor (all)
|
||||
core (5.8.8)
|
||||
obsolete (pre-5.8.8-9) vendor builds
|
||||
|
||||
The rationale being that an admin (via site), or module packager (vendor) can
|
||||
chose to shadow core modules when there is a newer version than is included in
|
||||
core.
|
||||
|
||||
Thanks to Charles Mauch (xterminus) for his work on the initial patch.
|
||||
|
||||
--- perl.c.orig 2007-12-18 05:47:08.000000000 -0500
|
||||
+++ perl.c 2007-12-24 23:15:23.000000000 -0500
|
||||
@@ -4748,44 +4748,12 @@
|
||||
|
||||
/* Use the ~-expanded versions of APPLLIB (undocumented),
|
||||
ARCHLIB PRIVLIB SITEARCH SITELIB VENDORARCH and VENDORLIB
|
||||
+ Arch Linux: SITEARCH SITELIB VENDORARCH VENDORLIB ARCHLIB PRIVLIB OTHER
|
||||
*/
|
||||
#ifdef APPLLIB_EXP
|
||||
incpush(APPLLIB_EXP, TRUE, TRUE, TRUE, TRUE);
|
||||
#endif
|
||||
|
||||
-#ifdef ARCHLIB_EXP
|
||||
- incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE);
|
||||
-#endif
|
||||
-#ifdef MACOS_TRADITIONAL
|
||||
- {
|
||||
- Stat_t tmpstatbuf;
|
||||
- SV * privdir = newSV(0);
|
||||
- char * macperl = PerlEnv_getenv("MACPERL");
|
||||
-
|
||||
- if (!macperl)
|
||||
- macperl = "";
|
||||
-
|
||||
- Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl);
|
||||
- if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode))
|
||||
- incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE);
|
||||
- Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl);
|
||||
- if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode))
|
||||
- incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE);
|
||||
-
|
||||
- SvREFCNT_dec(privdir);
|
||||
- }
|
||||
- if (!PL_tainting)
|
||||
- incpush(":", FALSE, FALSE, TRUE, FALSE);
|
||||
-#else
|
||||
-#ifndef PRIVLIB_EXP
|
||||
-# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl"
|
||||
-#endif
|
||||
-#if defined(WIN32)
|
||||
- incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE);
|
||||
-#else
|
||||
- incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE);
|
||||
-#endif
|
||||
-
|
||||
#ifdef SITEARCH_EXP
|
||||
/* sitearch is always relative to sitelib on Windows for
|
||||
* DLL-based path intuition to work correctly */
|
||||
@@ -4828,6 +4796,40 @@
|
||||
incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE, TRUE);
|
||||
#endif
|
||||
|
||||
+/* Arch Linux: core libs after site and vendor libs. */
|
||||
+#ifdef ARCHLIB_EXP
|
||||
+ incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE);
|
||||
+#endif
|
||||
+#ifdef MACOS_TRADITIONAL
|
||||
+ {
|
||||
+ Stat_t tmpstatbuf;
|
||||
+ SV * privdir = newSV(0);
|
||||
+ char * macperl = PerlEnv_getenv("MACPERL");
|
||||
+
|
||||
+ if (!macperl)
|
||||
+ macperl = "";
|
||||
+
|
||||
+ Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl);
|
||||
+ if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode))
|
||||
+ incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE);
|
||||
+ Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl);
|
||||
+ if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode))
|
||||
+ incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE);
|
||||
+
|
||||
+ SvREFCNT_dec(privdir);
|
||||
+ }
|
||||
+ if (!PL_tainting)
|
||||
+ incpush(":", FALSE, FALSE, TRUE, FALSE);
|
||||
+#else
|
||||
+#ifndef PRIVLIB_EXP
|
||||
+# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl"
|
||||
+#endif
|
||||
+#if defined(WIN32)
|
||||
+ incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE);
|
||||
+#else
|
||||
+ incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE);
|
||||
+#endif
|
||||
+
|
||||
#ifdef PERL_OTHERLIBDIRS
|
||||
incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE, TRUE);
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user