Ticket #16830: default-perl-5.10.diff
File default-perl-5.10.diff, 6.4 KB (added by jmroot (Joshua Root), 15 years ago) |
---|
-
perl5/Portfile
4 4 PortSystem 1.0 5 5 6 6 name perl5 7 version 5. 8.97 version 5.10 8 8 categories lang 9 9 platforms darwin freebsd linux 10 10 maintainers ricci mcalhoun 11 #description Perl 5 - Practical Extraction and Report Language (maintenance release)12 11 13 #long_description \ 14 # Perl is a general-purpose programming language originally developed \ 15 # for text manipulation and now used for a wide range of tasks including \ 16 # system administration, web development, network programming, GUI \ 17 # development, and more. 12 description Virtual port for the latest perl 5.x 13 long_description ${description} 18 14 19 #distname perl-${version}20 #use_bzip2 yes21 15 homepage http://www.perl.org/ 22 #master_sites http://www.cpan.org/src/ 16 distfiles 23 17 24 #checksums \ 25 # md5 1cb52a76ce77fa300218da96577793ec \ 26 # sha1 19843b5a7585cf35d96c07dbcd419bbdd5813617 \ 27 # rmd160 680004238d626ec985075e1b4519b7f0b34f57e5 18 depends_lib port:perl5.10 28 19 29 #post-patch { 30 # reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Configure 31 # # Ensure that the ld value set in configure.args is used 32 # reinplace "s|ld='cc';||" ${worksrcpath}/hints/darwin.sh 33 #} 34 35 #configure.env LC_ALL=C 36 #configure.cmd /bin/sh Configure 37 #configure.pre_args 38 #configure.args \ 39 # -des \ 40 # -D prefix='${prefix}' \ 41 # -D cppflags="\${CPPFLAGS}" \ 42 # -D ldflags="\${LDFLAGS}" \ 43 # -D vendorprefix='${prefix}' \ 44 # -D man3ext='3pm' \ 45 # -D cc=\${CC} \ 46 # -D ld=\${CC} 47 48 #set exclude_libs {bind gdbm db} 49 50 #post-patch { 51 # foreach lib ${exclude_libs} { 52 # configure.args-append -U i_${lib} 53 # reinplace "s|\\(libswanted=.*\\)${lib} *\\(.*\\)|\\1\\2|" ${worksrcpath}/Configure 54 # } 55 #} 56 57 universal_variant no 58 59 #test.run yes 60 61 #post-destroot { 62 # ln -s perl${version} ${destroot}${prefix}/bin/$name 63 #} 64 65 #variant threads description {Build with thread support} { 66 # configure.args-append -Dusethreads 67 #} 68 69 #variant shared description {Build shared perl library} { 70 # configure.args-append -Duseshrplib 71 #} 72 73 #variant gdbm description {Build with gdbm support} { 74 # depends_lib-append port:gdbm 75 # set exclude_libs [ldelete ${exclude_libs} gdbm] 76 #} 77 78 #variant db description {Build with Berkeley Data Base support} { 79 # depends_lib-append port:db47 80 # set exclude_libs [ldelete ${exclude_libs} db] 81 82 # post-patch { 83 # reinplace "s|${prefix}/include|${prefix}/include ${prefix}/include/db47|g" ${worksrcpath}/Configure 84 # reinplace "s|${prefix}/lib|${prefix}/lib ${prefix}/lib/db47|g" ${worksrcpath}/Configure 85 # } 86 #} 87 88 #livecheck.type regex 89 #livecheck.url http://www.cpan.org/src 90 #livecheck.regex {perl-(5\.8\.\d)\.} 91 92 93 ####################################################### 94 fetch {} 95 checksum {} 96 extract {} 97 use_configure no 20 use_configure no 98 21 build {} 99 description Placeholder port. See http://trac.macports.org/ticket/16830100 long_description ${description}101 22 destroot { 102 xinstall -d ${destroot}${prefix}/share/doc/${name} 103 system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt" 23 ln -s perl${version} ${destroot}${prefix}/bin/${name} 24 ln -s perl${version} ${destroot}${prefix}/bin/perl 25 set binaries {a2p c2ph config_data corelist cpan cpan2dist cpanp cpanp-run-perl dprofpp enc2xs find2perl h2ph h2xs instmodsh libnetcfg perlbug perldoc perlivp piconv pl2pm pod2html pod2latex pod2man pod2text pod2usage podchecker podselect prove psed pstruct ptar ptardiff s2p shasum splain xsubpp} 26 foreach bin $binaries { 27 ln -s ${bin}-${version} ${destroot}${prefix}/bin/${bin} 28 } 104 29 } 105 archive {}106 livecheck.type none107 master_sites108 depends_lib port:perl5.8109 30 110 post-destroot { 111 ln -s perl${version} ${destroot}${prefix}/bin/$name 112 } 113 ####################################################### 31 livecheck.type none -
perl5.10/Portfile
4 4 5 5 name perl5.10 6 6 version 5.10.1 7 revision 07 revision 1 8 8 categories lang 9 9 platforms darwin freebsd linux 10 10 maintainers ricci openmaintainer … … 45 45 -Dldflags=-L'${prefix}/lib' \ 46 46 -Dvendorprefix='${prefix}' \ 47 47 -D cc=\${CC} \ 48 -D ld=\${CC} \48 -D ld=\${CC} 49 49 50 50 ## -D man1ext='1pm' \ 51 51 ## -D man3ext='3pm' \ … … 56 56 ## -D vendorman1dir='${prefix}/share/man/man1' \ 57 57 ## -D vendorman3dir='${prefix}/share/man/man3' 58 58 59 if { [variant_isset threads] } { 60 configure.post_args-append "-D inc_version_list=\"5.10.0/${os.platform}-thread-multi-2level 5.10.0 5.8.9 5.8.8\"" 61 } else { 62 configure.post_args-append "-D inc_version_list=\"5.10.0/${os.platform}-2level 5.10.0 5.8.9 5.8.8\"" 63 } 64 59 65 configure.ccache no 60 66 61 67 universal_variant no -
perl5.8/Portfile
5 5 6 6 name perl5.8 7 7 version 5.8.9 8 revision 38 revision 4 9 9 categories lang 10 10 platforms darwin freebsd linux 11 11 maintainers ricci openmaintainer … … 59 59 60 60 # Allow perl to find p5-* port installed by the last version 61 61 if { [variant_isset threads] } { 62 configure.args-append "-D inc_version_list=\"5.8.8 5.8.8/${os.platform}-thread-multi-2level\""62 configure.args-append "-D inc_version_list=\"5.8.8/${os.platform}-thread-multi-2level 5.8.8\"" 63 63 } else { 64 configure.args-append "-D inc_version_list=\"5.8.8 5.8.8/${os.platform}-2level\""64 configure.args-append "-D inc_version_list=\"5.8.8/${os.platform}-2level 5.8.8\"" 65 65 } 66 66 67 67 set exclude_libs {bind gdbm db} … … 78 78 test.run yes 79 79 80 80 post-destroot { 81 file delete ${destroot}${prefix}/bin/perl 82 set branch [join [lrange [split ${version} .] 0 1] .] 83 foreach bin [glob ${destroot}${prefix}/bin/*] { 84 if {$bin != "${destroot}${prefix}/bin/perl${version}"} { 85 move ${bin} ${bin}-${branch} 86 } 87 } 81 88 ln -s perl${version} ${destroot}${prefix}/bin/$name 82 89 } 83 90