Skip to content
Permalink
Browse files

cleaned up variants

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@2418 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Michael Maibaum
Michael Maibaum committed Apr 7, 2003
1 parent 2b8559a commit 28e4bc460231e434ca365f6f60c08c5a213c60ec
Showing with 17 additions and 21 deletions.
  1. +17 −21 lang/perl5.8/Portfile
@@ -1,44 +1,40 @@
# $Id: Portfile,v 1.20 2003/03/12 03:03:46 michaelm Exp $
# $Id: Portfile,v 1.21 2003/04/07 14:05:50 michaelm Exp $

PortSystem 1.0
name perl5.8
version 5.8.0
revision 2
revision 3
categories lang
maintainers michaelm@opendarwin.org
description Perl 5.8.0
platforms darwin freebsd
distname perl-${version}
master_sites http://www.cpan.org/src/5.0/
checksums md5 d9bdb180620306023fd35901a2878b62
global platform_dir
configure.cmd sh Configure
unset configure.pre_args
variant darwin { patchfiles patch-perlio-darwin.diff }
configure.post_args -des -Dinstallprefix=${destroot}/${prefix} \
-Dprefix='${prefix}' -Dccflags="-I'${prefix}/include'\
-I'${prefix}/include/db4' -Dldflags=-L'${prefix}/lib'"

variant threads { configure.args-append -Dusethreads }


#fix to set install* variables....
# set install* variables....
variant freebsd {
post-install {
cd ${destroot}/${prefix}/lib/perl5/${version}/freebsd
system "cat Config.pm |sed s#${destroot}/##g >Config.pm.new"
system "cat .packlist | sed s#${destroot}/##g >.packlist.new"
system "mv Config.pm.new Config.pm && \
mv .packlist.new .packlist"
}
set platform_dir freebsd
}
variant darwin {
set platform_dir darwin
patchfiles patch-perlio-darwin.diff
}
#fix to set install* variables....
variant darwin {
post-install {
cd ${destroot}/${prefix}/lib/perl5/${version}/darwin
system "cat Config.pm |sed s#${destroot}/##g >Config.pm.new"
system "cat .packlist | sed s#${destroot}/##g > .packlist.new"
system "mv Config.pm.new Config.pm && \
mv .packlist.new .packlist"
}
}

# fix install variables
post-install {
cd ${destroot}/${prefix}/lib/perl5/${version}/${platform_dir}
system "cat Config.pm |sed s#${destroot}/##g >Config.pm.new"
system "cat .packlist | sed s#${destroot}/##g >.packlist.new"
system "mv Config.pm.new Config.pm && \
mv .packlist.new .packlist"
}

0 comments on commit 28e4bc4

Please sign in to comment.
You can’t perform that action at this time.