Ticket #12707: p5-pathtools-grouped-finally.diff

File p5-pathtools-grouped-finally.diff, 2.2 KB (added by nox@…, 17 years ago)
  • Portfile

     
    11# $Id$
     2
    23PortSystem              1.0
     4PortGroup       perl5 1.0
    35
    4 name                    p5-pathtools
    5 version                 3.25
    6 categories              perl
    7 maintainers             dluke@geeklair.net
     6perl5.setup     PathTools 3.25
     7platforms       darwin
     8maintainers             geeklair.net:dluke openmaintainer
    89description             PathTools contains path building and modification classes.
     10
    911long_description        $description
    1012
    11 checksums               md5 242b8a6355927625f57048f6c59577ca
    12 platforms               darwin
    13 master_sites            http://cpan.perl.org/authors/id/K/KW/KWILLIAMS/
    14 homepage                http://search.cpan.org/dist/pathtools/
    15 distname                PathTools-${version}
    16 dist_subdir             perl5
    17 depends_lib             path:${prefix}/bin/perl:perl5.8
    18 
    19 #- Perl searches vendor location last, so this won't
    20 #- override the older version included with perl
    21 #- if we install it in the vendor location
    22 configure.cmd           ${prefix}/bin/perl
    23 configure.pre_args      Makefile.PL
    24 test.run                yes
    25 destroot.target         pure_install
     13homepage        http://search.cpan.org/dist/${distname}/
     14master_sites    http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/
     15
     16checksums       md5 242b8a6355927625f57048f6c59577ca \
     17                sha1 cbaf1a5aab6f7d50adbd00046010ae7e51e033ba \
     18                rmd160 d14b9bb83b361a91a22560141b4b2753cf5804d0
     19
     20# Perl searches vendor location last, so this won't
     21# override the older version included with perl
     22# if we install it in the vendor location
     23set perl5.lib   ${prefix}/lib/perl5/${perl5.version}
     24
     25configure.args 
    2626
    2727post-destroot {
    28                 set perl5.version [lindex [split [exec ${prefix}/bin/perl -V:version] {'}] 1]
    29                 foreach packlist [exec find ${destroot}${prefix}/lib/perl5/${perl5.version} -name .packlist] {
    30                         ui_info "Fixing packlist ${packlist}"
    31                         reinplace "s|${destroot}||" ${packlist}
    32                 }
    33                 ui_msg "You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port"
    34         }
     28    ui_msg "You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port"
     29}
     30