Changeset 131310 for trunk/dports/lang/perl5.14
- Timestamp:
- Jan 9, 2015, 2:12:52 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/lang/perl5.14/Portfile
r119428 r131310 8 8 set branch [join [lrange [split ${version} .] 0 1] .] 9 9 categories lang 10 platforms darwin freebsd linux 10 11 license {Artistic-1 GPL} 11 platforms darwin freebsd linux12 12 maintainers nomaintainer 13 13 14 description Perl 5.14.x - Practical Extraction and Report Language 15 long_description Perl is a general-purpose programming language \ 16 originally developed for text manipulation and now \ 17 used for a wide range of tasks including system \ 18 administration, web development, network \ 19 programming, GUI development, and more. 20 homepage http://www.perl.org/ 14 21 15 long_description Perl is a general-purpose programming language originally developed \ 16 for text manipulation and now used for a wide range of tasks including \ 17 system administration, web development, network programming, GUI \ 18 development, and more. 22 depends_lib-append port:gdbm 19 23 24 master_sites http://www.cpan.org/src/5.0/ 20 25 distname perl-${version} 21 26 use_bzip2 yes 22 homepage http://www.perl.org/23 master_sites http://www.cpan.org/src/5.0/24 27 25 28 checksums rmd160 b06a822864f2c8e4e77a1ebef74d37c00cba54d6 \ 26 29 sha256 eece8c2b0d491bf6f746bd1f4f1bb7ce26f6b98e91c54690c617d7af38964745 27 28 depends_lib-append port:gdbm29 30 30 31 patchfiles patch-Configure.diff \ … … 55 56 -Dprefix='${prefix}' \ 56 57 -Dscriptdir='${prefix}/bin' \ 57 -Dcppflags="\${CPPFLAGS}"\58 -Dccflags="\${CFLAGS}"\59 -Dldflags="\${LDFLAGS}"\58 {-Dcppflags="$CPPFLAGS"} \ 59 {-Dccflags="$CFLAGS"} \ 60 {-Dldflags="$LDFLAGS"} \ 60 61 -Dvendorprefix='${prefix}' \ 61 62 -Dusemultiplicity=y \ 62 63 -Dusethreads \ 63 64 -Duseshrplib \ 64 -D cc=\${CC} \65 -D ld=\${CC} \66 -D man1ext='1pm'\67 -D man3ext='3pm'\68 -D 69 -D 70 -D 71 -D 72 -D 73 -D 74 -D 75 -D 76 -D pager="/usr/bin/less -sR"\77 -D 78 -D 65 {-Dcc="$CC"} \ 66 {-Dld="$CC"} \ 67 -Dman1ext=1pm \ 68 -Dman3ext=3pm \ 69 -Dman1dir='${prefix}/share/man/man1p' \ 70 -Dman3dir='${prefix}/share/man/man3p' \ 71 -Dsitebin='${prefix}/libexec/perl${branch}/sitebin' \ 72 -Dsiteman1dir='${prefix}/share/perl${branch}/siteman/man1' \ 73 -Dsiteman3dir='${prefix}/share/perl${branch}/siteman/man3' \ 74 -Dvendorbin='${prefix}/libexec/perl${branch}' \ 75 -Dvendorman1dir='${prefix}/share/perl${branch}/man/man1' \ 76 -Dvendorman3dir='${prefix}/share/perl${branch}/man/man3' \ 77 -Dpager='/usr/bin/less -sR' \ 78 -Dperlpath="${prefix}/bin/perl${branch}" \ 79 -Dstartperl="#!${prefix}/bin/perl${branch}" 79 80 80 81 # Allow perl to find p5-* ports installed by previous (minor) versions 81 set platsuffix "" 82 if {${os.platform} eq "darwin"} { 83 set platsuffix "-2level" 84 } 85 configure.args-append "-D inc_version_list=\"5.14.2/${os.platform}-thread-multi${platsuffix} 5.14.2 5.14.1/${os.platform}-thread-multi${platsuffix} 5.14.1 5.14.0/${os.platform}-thread-multi${platsuffix} 5.14.0\"" 82 set platsuffix [expr {${os.platform} eq "darwin" ? "-2level" : ""}] 83 configure.args-append -Dinc_version_list='5.14.2/${os.platform}-thread-multi${platsuffix} 5.14.2 5.14.1/${os.platform}-thread-multi${platsuffix} 5.14.1 5.14.0/${os.platform}-thread-multi${platsuffix} 5.14.0' 86 84 87 85 … … 93 91 94 92 post-build { 95 reinplace -E {s |-arch [a-z0-9_]+||g} \93 reinplace -E {s/-arch [a-z0-9_]+//g} \ 96 94 ${worksrcpath}/lib/Config_heavy.pl 97 95 } … … 108 106 delete ${destroot}${prefix}/bin/perl 109 107 foreach binFile [glob -directory "${destroot}${prefix}/bin" *] { 110 if {$binFile !="${destroot}${prefix}/bin/perl${version}"} {108 if {$binFile ne "${destroot}${prefix}/bin/perl${version}"} { 111 109 move ${binFile} ${binFile}-${branch} 112 110 }
Note: See TracChangeset
for help on using the changeset viewer.