New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16830: default-perl-5.10.diff

File default-perl-5.10.diff, 6.4 KB (added by jmr@…, 3 years ago)

updated patch

  • perl5/Portfile

     
    44PortSystem      1.0 
    55 
    66name            perl5 
    7 version         5.8.9 
     7version         5.10 
    88categories      lang 
    99platforms       darwin freebsd linux 
    1010maintainers     ricci mcalhoun 
    11 #description     Perl 5 - Practical Extraction and Report Language (maintenance release) 
    1211 
    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. 
     12description     Virtual port for the latest perl 5.x 
     13long_description ${description} 
    1814 
    19 #distname        perl-${version} 
    20 #use_bzip2       yes 
    2115homepage        http://www.perl.org/ 
    22 #master_sites    http://www.cpan.org/src/ 
     16distfiles 
    2317 
    24 #checksums        \ 
    25 #    md5     1cb52a76ce77fa300218da96577793ec \ 
    26 #    sha1    19843b5a7585cf35d96c07dbcd419bbdd5813617 \ 
    27 #    rmd160  680004238d626ec985075e1b4519b7f0b34f57e5 
     18depends_lib     port:perl5.10 
    2819 
    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 
     20use_configure   no 
    9821build {} 
    99 description Placeholder port. See http://trac.macports.org/ticket/16830 
    100 long_description ${description} 
    10122destroot { 
    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    } 
    10429} 
    105 archive {} 
    106 livecheck.type      none 
    107 master_sites 
    108 depends_lib port:perl5.8 
    10930 
    110 post-destroot { 
    111     ln -s perl${version} ${destroot}${prefix}/bin/$name 
    112 } 
    113 ####################################################### 
     31livecheck.type     none 
  • perl5.10/Portfile

     
    44 
    55name            perl5.10 
    66version         5.10.1 
    7 revision        0 
     7revision        1 
    88categories      lang 
    99platforms       darwin freebsd linux 
    1010maintainers     ricci openmaintainer 
     
    4545                    -Dldflags=-L'${prefix}/lib' \ 
    4646                    -Dvendorprefix='${prefix}'  \ 
    4747                                        -D cc=\${CC} \ 
    48                                         -D ld=\${CC} \ 
     48                                        -D ld=\${CC} 
    4949 
    5050##                                      -D man1ext='1pm' \ 
    5151##                                      -D man3ext='3pm' \ 
     
    5656##                                      -D vendorman1dir='${prefix}/share/man/man1' \ 
    5757##                                      -D vendorman3dir='${prefix}/share/man/man3' 
    5858 
     59if { [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 
    5965configure.ccache        no 
    6066 
    6167universal_variant   no 
  • perl5.8/Portfile

     
    55 
    66name            perl5.8 
    77version         5.8.9 
    8 revision        3 
     8revision        4 
    99categories      lang 
    1010platforms       darwin freebsd linux 
    1111maintainers     ricci openmaintainer 
     
    5959 
    6060# Allow perl to find p5-* port installed by the last version 
    6161if { [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\"" 
    6363} 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\"" 
    6565} 
    6666 
    6767set exclude_libs {bind gdbm db} 
     
    7878test.run            yes 
    7979 
    8080post-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    } 
    8188    ln -s perl${version} ${destroot}${prefix}/bin/$name 
    8289} 
    8390