Ticket #12950: perl5.8_1.diff
File perl5.8_1.diff, 8.5 KB (added by nox@…, 17 years ago) |
---|
-
lang/perl5.8/files/patch-perl.c
1 Revert the order of @INC from PRIV SITE VENDOR to SITE VENDOR PRIV. 2 3 --- perl.c.orig 2007-10-20 19:21:12.000000000 +0200 4 +++ perl.c 2007-10-20 19:40:47.000000000 +0200 5 @@ -4770,45 +4770,12 @@ 6 } 7 8 /* Use the ~-expanded versions of APPLLIB (undocumented), 9 - ARCHLIB PRIVLIB SITEARCH SITELIB VENDORARCH and VENDORLIB 10 + SITEARCH SITELIB VENDORARCH VENDORLIB ARCHLIB and PRIVLIB 11 */ 12 #ifdef APPLLIB_EXP 13 incpush(APPLLIB_EXP, TRUE, TRUE, TRUE); 14 #endif 15 16 -#ifdef ARCHLIB_EXP 17 - incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE); 18 -#endif 19 -#ifdef MACOS_TRADITIONAL 20 - { 21 - Stat_t tmpstatbuf; 22 - SV * privdir = NEWSV(55, 0); 23 - char * macperl = PerlEnv_getenv("MACPERL"); 24 - 25 - if (!macperl) 26 - macperl = ""; 27 - 28 - Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl); 29 - if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) 30 - incpush(SvPVX(privdir), TRUE, FALSE, TRUE); 31 - Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl); 32 - if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) 33 - incpush(SvPVX(privdir), TRUE, FALSE, TRUE); 34 - 35 - SvREFCNT_dec(privdir); 36 - } 37 - if (!PL_tainting) 38 - incpush(":", FALSE, FALSE, TRUE); 39 -#else 40 -#ifndef PRIVLIB_EXP 41 -# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" 42 -#endif 43 -#if defined(WIN32) 44 - incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE); 45 -#else 46 - incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE); 47 -#endif 48 - 49 #ifdef SITEARCH_EXP 50 /* sitearch is always relative to sitelib on Windows for 51 * DLL-based path intuition to work correctly */ 52 @@ -4854,9 +4821,20 @@ 53 incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE); 54 #endif 55 56 +#ifdef ARCHLIB_EXP 57 + incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE); 58 +#endif 59 +#ifndef PRIVLIB_EXP 60 +# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" 61 +#endif 62 +#if defined(WIN32) 63 + incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE); 64 +#else 65 + incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE); 66 +#endif 67 + 68 if (!PL_tainting) 69 incpush(".", FALSE, FALSE, TRUE); 70 -#endif /* MACOS_TRADITIONAL */ 71 } 72 73 #if defined(DOSISH) || defined(EPOC) || defined(SYMBIAN) -
lang/perl5.8/Portfile
4 4 5 5 name perl5.8 6 6 version 5.8.8 7 revision 1 7 8 categories lang 8 platforms 9 maintainers no maintainer9 platforms darwin freebsd linux 10 maintainers nox 10 11 description Perl 5.8.x - Practical Extraction and Report Language 11 12 12 13 long_description \ … … 24 25 sha1 4aab490040727ca4419098720eca2ba4367df539 \ 25 26 rmd160 e78f26d9b96e6db35f946ad4ff55e3a69385c71b 26 27 28 patchfiles patch-perl.c 29 27 30 platform darwin { 28 31 patchfiles-append patch-hints_darwin.sh 29 32 30 33 pre-configure { 31 reinplace "s|ld=\"MACOSX_DEPLOYMENT_TARGET=10.3|ld=\"env MACOSX_DEPLOYMENT_TARGET=10.3|g" "${worksrcpath}/hints/darwin.sh"34 reinplace -E "s|ld=\"(MACOSX_DEPLOYMENT_TARGET)|ld=\"env \\1|" ${worksrcpath}/hints/darwin.sh 32 35 } 33 36 } 34 37 35 configure.env LC_ALL=C 36 configure.cmd sh Configure 37 configure.pre_args 38 configure.post_args -des -Dprefix='${prefix}' -Dccflags="-I'${prefix}/include'"\ 39 -Dldflags=-L'${prefix}/lib' \ 40 -Dvendorprefix='${prefix}' 38 configure.env-append LC_ALL=C 39 configure.cmd ./configure.gnu 40 configure.args -Dvendorprefix=${prefix} \ 41 -Dusethreads \ 42 -Duseshrplib 41 43 42 44 test.run yes 43 45 44 46 post-destroot { 45 47 foreach man3File [glob ${destroot}/${prefix}/share/man/man3/*] { 46 file rename ${man3File} ${man3File}pm48 move ${man3File} ${man3File}pm 47 49 } 48 50 } 49 51 50 variant threads { 51 configure.args-append -Dusethreads 52 } 52 platform darwin 8 { 53 configure.compiler gcc-4.0 53 54 54 variant shared { 55 configure.args-append -Duseshrplib 55 post-patch { 56 reinplace -E "/MACOSX_DEPLOYMENT_TARGET/s/10\\.3/10.4/" ${worksrcpath}/hints/darwin.sh 57 } 56 58 } 57 59 58 platform darwin 8 {59 configure.post_args-append -Dcc=/usr/bin/gcc-4.060 }61 62 60 livecheck.check regex 63 61 livecheck.url ${master_sites} 64 livecheck.regex latest_is_(\\d+(?:\\.\\d+)*)62 livecheck.regex {latest_is_(\d+(?:\.\d+)*)} 65 63 -
perl/p5-getopt-long/Portfile
4 4 PortGroup perl5 1.0 5 5 6 6 perl5.setup Getopt-Long 2.37 7 revision 1 7 8 maintainers nox openmaintainer 8 9 categories-append devel 9 10 platforms darwin … … 24 25 25 26 depends_lib-append port:p5-pathtools 26 27 27 # Perl searches vendor location last, so this won't28 # override the older version included with perl29 # if we install it in the vendor location30 set perl5.lib ${prefix}/lib/perl5/${perl5.version}31 32 configure.args33 34 post-destroot {35 ui_msg "You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port"36 }37 -
perl/p5-pathtools/Portfile
4 4 PortGroup perl5 1.0 5 5 6 6 perl5.setup PathTools 3.25 ../../authors/id/K/KW/KWILLIAMS/ 7 revision 1 7 8 platforms darwin 8 9 maintainers geeklair.net:dluke openmaintainer 9 10 description PathTools contains path building and modification classes. … … 11 12 long_description $description 12 13 13 14 homepage http://search.cpan.org/dist/${perl5.module}/ 14 #master_sites http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/15 15 16 16 checksums md5 242b8a6355927625f57048f6c59577ca \ 17 17 sha1 cbaf1a5aab6f7d50adbd00046010ae7e51e033ba \ 18 18 rmd160 d14b9bb83b361a91a22560141b4b2753cf5804d0 19 19 20 # Perl searches vendor location last, so this won't21 # override the older version included with perl22 # if we install it in the vendor location23 set perl5.lib ${prefix}/lib/perl5/${perl5.version}24 25 configure.args26 27 post-destroot {28 ui_msg "You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port"29 }30 -
perl/p5-test-harness/Portfile
4 4 PortGroup perl5 1.0 5 5 6 6 perl5.setup Test-Harness 2.64 7 revision 18 platforms 7 revision 2 8 platforms darwin 9 9 maintainers nomaintainer 10 10 description Run perl standard test scripts with statistics. 11 11 … … 18 18 sha1 65a5442500926f9ef00f9aadbacc2e30377074d8 \ 19 19 rmd160 2ce9ed32114b545344ca517f3ba1dfeb0293d82d 20 20 21 # Perl searches vendor location last, so this won't22 # override the older version included with perl23 # if we install it in the vendor location24 set perl5.lib ${prefix}/lib/perl5/${perl5.version}25 26 configure.args27 28 post-destroot {29 ui_msg "You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port"30 }31 32 21 universal_variant no 33 22 34 23 livecheck.check regexm -
perl/p5-test-simple/Portfile
4 4 PortGroup perl5 1.0 5 5 6 6 perl5.setup Test-Simple 0.72 7 revision 1 7 8 maintainers sal@email.arc.nasa.gov 8 9 description Basic utilities for writing perl tests 9 10 long_description ${description} … … 15 16 16 17 depends_lib-append port:p5-test-harness 17 18 18 # Perl searches vendor location last, so this won't19 # override the older version included with perl20 # if we install it in the vendor location21 set perl5.lib ${prefix}/lib/perl5/${perl5.version}22 23 configure.args24 25 post-destroot {26 ui_msg "You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port"27 }28 29 19 universal_variant no 30 20