Changeset 2418 for trunk/dports


Ignore:
Timestamp:
Apr 7, 2003, 2:05:50 PM (21 years ago)
Author:
michaelm
Message:

cleaned up variants

File:
1 edited

Legend:

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

    r2236 r2418  
    1 # $Id: Portfile,v 1.20 2003/03/12 03:03:46 michaelm Exp $
     1# $Id: Portfile,v 1.21 2003/04/07 14:05:50 michaelm Exp $
    22
    33PortSystem 1.0
    44name                       perl5.8
    55version                    5.8.0
    6 revision                   2
     6revision                   3
    77categories                 lang
    88maintainers                michaelm@opendarwin.org
     
    1212master_sites               http://www.cpan.org/src/5.0/
    1313checksums                  md5 d9bdb180620306023fd35901a2878b62
     14global                     platform_dir
    1415configure.cmd              sh Configure
    1516unset                      configure.pre_args
    16 variant        darwin    { patchfiles     patch-perlio-darwin.diff }
    1717configure.post_args        -des -Dinstallprefix=${destroot}/${prefix} \
    1818                             -Dprefix='${prefix}' -Dccflags="-I'${prefix}/include'\
     
    2222
    2323
    24 #fix to set install* variables....
     24# set install* variables....
    2525variant freebsd    {
    26                      post-install {
    27                         cd ${destroot}/${prefix}/lib/perl5/${version}/freebsd
    28                         system "cat Config.pm |sed s#${destroot}/##g  >Config.pm.new"
    29                         system "cat .packlist | sed s#${destroot}/##g >.packlist.new"
    30                         system  "mv Config.pm.new Config.pm && \
    31                                  mv .packlist.new .packlist"
    32                                  }
     26                    set platform_dir freebsd
    3327                   }
    34 #fix to set install* variables....
    35 variant darwin    {
    36                     post-install {
    37                        cd ${destroot}/${prefix}/lib/perl5/${version}/darwin
    38                        system "cat Config.pm |sed s#${destroot}/##g  >Config.pm.new"
    39                        system "cat .packlist | sed s#${destroot}/##g > .packlist.new"
    40                        system  "mv Config.pm.new Config.pm && \
    41                                 mv .packlist.new .packlist"
    42                                  }
    43                   }
     28variant darwin     {
     29                    set platform_dir darwin
     30                    patchfiles     patch-perlio-darwin.diff
     31                   }
    4432
     33# fix install variables
     34post-install {
     35              cd ${destroot}/${prefix}/lib/perl5/${version}/${platform_dir}
     36              system "cat Config.pm |sed s#${destroot}/##g  >Config.pm.new"
     37              system "cat .packlist | sed s#${destroot}/##g >.packlist.new"
     38              system  "mv Config.pm.new Config.pm && \
     39              mv .packlist.new .packlist"
     40             }
Note: See TracChangeset for help on using the changeset viewer.