Ticket #17803: Portfile.diff

File Portfile.diff, 3.1 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 15 years ago)
  • Portfile

    old new  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id: Portfile 42001 2008-11-13 13:35:36Z nox@macports.org $
    23
    34PortSystem      1.0
    45
    56name            perl5.8
    6 version         5.8.8
    7 revision        3
     7version         5.8.9
    88categories      lang
    99platforms       darwin freebsd linux
    1010maintainers     ricci openmaintainer
     
    1919distname        perl-${version}
    2020use_bzip2       yes
    2121homepage        http://www.perl.org/
    22 master_sites    http://www.cpan.org/src/5.0/
     22master_sites    http://www.cpan.org/src/
    2323
    24 checksums       md5 a377c0c67ab43fd96eeec29ce19e8382 \
    25                 sha1 4aab490040727ca4419098720eca2ba4367df539 \
    26                 rmd160 e78f26d9b96e6db35f946ad4ff55e3a69385c71b
     24checksums        \
     25    md5     1cb52a76ce77fa300218da96577793ec \
     26    sha1    19843b5a7585cf35d96c07dbcd419bbdd5813617 \
     27    rmd160  680004238d626ec985075e1b4519b7f0b34f57e5
    2728
    28 patchfiles      patch-makedepend.diff
    29 
    30 platform darwin {
    31     patchfiles-append   patch-hints_darwin.diff
    32 
    33     pre-configure {
    34         reinplace "s|ld=\"MACOSX_DEPLOYMENT_TARGET=10.3|ld=\"env MACOSX_DEPLOYMENT_TARGET=10.3|g" "${worksrcpath}/hints/darwin.sh"
    35     }
    36 }
    37 
    38 pre-configure {
     29post-patch {
    3930    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
    4033}
    4134
    4235configure.env       LC_ALL=C
    43 configure.cmd       sh Configure
     36configure.cmd       /bin/sh Configure
    4437configure.pre_args
    45 configure.post_args -des -Dprefix='${prefix}' -Dccflags="-I'${prefix}/include'"\
    46                     -Dldflags=-L'${prefix}/lib' \
    47                     -Dvendorprefix='${prefix}'
     38configure.args \
     39    -des \
     40    -D prefix='${prefix}' \
     41    -D ldflags=\${LDFLAGS} \
     42    -D vendorprefix='${prefix}' \
     43    -D man3ext='3pm' \
     44    -D cc=\${CC} \
     45    -D ld=\${CC}
    4846
    4947universal_variant   no
    5048
     
    5250
    5351post-destroot {
    5452    ln -s ${prefix}/bin/perl${version} ${destroot}${prefix}/bin/$name
    55 
    56     foreach man3File [glob ${destroot}${prefix}/share/man/man3/*] {
    57         file rename ${man3File} ${man3File}pm
    58     }
    5953}
    6054
    6155variant threads description {Build with thread support} {
     
    6660    configure.args-append   -Duseshrplib
    6761}
    6862
    69 platform darwin 8 {
    70     configure.post_args-append  -Dcc=/usr/bin/gcc-4.0
    71 }
    72 
    73 platform darwin 9 {
    74     post-patch {
    75         if {[variant_isset shared]} {
    76             reinplace \
    77             "s|\$(CC) \$(CLDFLAGS) \$(NAMESPACEFLAGS) -o miniperl |\$(CC) \$(CLDFLAGS) -o miniperl |g" \
    78             ${worksrcpath}/Makefile.SH
    79             reinplace \
    80             "s|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) \$(LLIBPERL) \$(libs)|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) perl\$(OBJ_EXT) \$(filter-out op\$(OBJ_EXT),\$(obj)) \$(libs)|g" \
    81             ${worksrcpath}/Makefile.SH
    82         }
    83     }
    84 }
    85 
    8663livecheck.check regex
    8764livecheck.url   http://www.cpan.org/src
    8865livecheck.regex {perl-(5\.8\.\d)\.}