Changeset 44874


Ignore:
Timestamp:
Jan 4, 2009, 9:13:44 AM (10 years ago)
Author:
mcalhoun@…
Message:

perl5.8: Update version 5.8.8 -> 5.8.9.
Disallow use of gdbm or Berkeley Data Base without variant.
Fixes #17803.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/perl5.8/Portfile

    r42001 r44874  
     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$
    23
     
    45
    56name            perl5.8
    6 version         5.8.8
    7 revision        3
     7version         5.8.9
    88categories      lang
    99platforms       darwin freebsd linux
     
    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 cppflags="\${CPPFLAGS}" \
     42    -D ldflags="\${LDFLAGS}" \
     43    -D vendorprefix='${prefix}' \
     44    -D man3ext='3pm' \
     45    -D cc=\${CC} \
     46    -D ld=\${CC}
     47
     48set exclude_libs {bind gdbm db}
     49
     50post-patch {
     51    foreach lib ${exclude_libs} {
     52        configure.args-append  -U i_${lib}
     53        reinplace "s|\\(libswanted=.*\\)${lib} *\\(.*\\)|\\1\\2|" ${worksrcpath}/Configure
     54    }
     55}
    4856
    4957universal_variant   no
     
    5260
    5361post-destroot {
    54     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     }
     62    ln -s perl${version} ${destroot}${prefix}/bin/$name
    5963}
    6064
     
    6771}
    6872
    69 platform darwin 8 {
    70     configure.post_args-append  -Dcc=/usr/bin/gcc-4.0
     73variant gdbm description {Build with gdbm support} {
     74    depends_lib-append port:gdbm
     75    set exclude_libs [ldelete ${exclude_libs} gdbm]
    7176}
    7277
    73 platform darwin 9 {
     78variant db description {Build with Berkeley Data Base support} {
     79    depends_lib-append port:db47
     80    set exclude_libs [ldelete ${exclude_libs} db]
     81   
    7482    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        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
    8385    }
    8486}
Note: See TracChangeset for help on using the changeset viewer.