Ticket #11175: p5-file-temp_r1.diff

File p5-file-temp_r1.diff, 2.6 KB (added by mgrimes@…, 17 years ago)
  • p5-file-temp/Portfile

    === p5-file-temp/Portfile
    ==================================================================
     
    11# $Id$
    22
    3 PortSystem 1.0
    4 PortGroup perl5 1.0
    5 perl5.setup                     File-Temp 0.17
     3PortSystem          1.0
    64
    7 maintainers                     narf_tm@macports.org
    8 description                     return name and handle of a temporary file safely
    9 long_description        File::Temp can be used to create and open temporary files \
    10                                         in a safe way. There is both a function interface and an \
    11                                         object-oriented interface. The File::Temp constructor or \
    12                                         the tempfile() function can be used to return the name \
    13                                         and the open filehandle of a temporary file. The tempdir() \
    14                                         function can be used to create a temporary directory.
     5name                p5-file-temp
     6version             0.17
     7revision            1
     8categories          perl
     9maintainers         narf_tm@macports.org
     10description         return name and handle of a temporary file safely
     11long_description    File::Temp can be used to create and open temporary files \
     12                    in a safe way. There is both a function interface and an \
     13                    object-oriented interface. The File::Temp constructor or \
     14                    the tempfile() function can be used to return the name \
     15                    and the open filehandle of a temporary file. The tempdir() \
     16                    function can be used to create a temporary directory.
    1517
    16 platforms                       darwin
     18checksums           md5 9c096b38cf45e579ce5b0f53bcb090b2
     19platforms           darwin
     20master_sites        http://cpan.perl.org/authors/id/T/TJ/TJENNESS/
     21homepage            http://search.cpan.org/~tjenness/
     22distname            File-Temp-${version}
     23dist_subdir         perl5
     24depends_lib         path:${prefix}/bin/perl:perl5.8
    1725
    18 checksums                       md5 9c096b38cf45e579ce5b0f53bcb090b2
     26#- Perl searches vendor location last, so this won't
     27#- override the older version included with perl
     28#- if we install in the vendor location
     29configure.cmd       ${prefix}/bin/perl
     30configure.pre_args  Makefile.PL
     31test.run            yes
     32destroot.target     pure_install
     33
     34
     35post-destroot {
     36    set perl5.version [lindex [split [exec ${prefix}/bin/perl -V:version] {'}] 1]
     37    foreach packlist [exec find ${destroot}${prefix}/lib/perl5/${perl5.version} -name .packlist] {
     38        ui_info "Fixing packlist ${packlist}"
     39        reinplace "s|${destroot}||" ${packlist}
     40    }
     41    ui_msg "You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port"
     42}