=== p5-file-temp/Portfile
==================================================================
|
|
|
1 | 1 | # $Id$ |
2 | 2 | |
3 | | PortSystem 1.0 |
4 | | PortGroup perl5 1.0 |
5 | | perl5.setup File-Temp 0.17 |
| 3 | PortSystem 1.0 |
6 | 4 | |
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. |
| 5 | name p5-file-temp |
| 6 | version 0.17 |
| 7 | revision 1 |
| 8 | categories perl |
| 9 | maintainers narf_tm@macports.org |
| 10 | description return name and handle of a temporary file safely |
| 11 | long_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. |
15 | 17 | |
16 | | platforms darwin |
| 18 | checksums md5 9c096b38cf45e579ce5b0f53bcb090b2 |
| 19 | platforms darwin |
| 20 | master_sites http://cpan.perl.org/authors/id/T/TJ/TJENNESS/ |
| 21 | homepage http://search.cpan.org/~tjenness/ |
| 22 | distname File-Temp-${version} |
| 23 | dist_subdir perl5 |
| 24 | depends_lib path:${prefix}/bin/perl:perl5.8 |
17 | 25 | |
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 |
| 29 | configure.cmd ${prefix}/bin/perl |
| 30 | configure.pre_args Makefile.PL |
| 31 | test.run yes |
| 32 | destroot.target pure_install |
| 33 | |
| 34 | |
| 35 | post-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 | } |