Skip to content
Permalink
Browse files

cleaned up formatting, removed redundant pre-install, took out forced…

… link against libdb in prefix (which wasn't working anyway)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@2110 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Michael Maibaum
Michael Maibaum committed Mar 1, 2003
1 parent 097cd92 commit d2556fe892453d2a2a98b581d432dfcaa1aa0458
Showing with 38 additions and 38 deletions.
  1. +38 −38 lang/perl5.8/Portfile
@@ -1,43 +1,43 @@
PortSystem 1.0
name perl5.8
version 5.8.0
categories lang
maintainers michaelm@opendarwin.org
description Perl 5.8.0
platforms darwin freebsd
master_sites http://www.cpan.org/src/
distname stable
checksums stable${extract.sufx} md5 d9bdb180620306023fd35901a2878b62

#depends_lib lib:libdb:db4

worksrcdir perl-${portversion}

configure.cmd sh Configure
unset configure.pre_args

configure.post_args -des -Dinstallprefix=${destroot}/${prefix} -Dprefix='${prefix}' \
-Dccflags="-I'${prefix}/include' -I'${prefix}/include/db4' -Dldflags=-L'${prefix}/lib' ${prefix}/lib/libdb.dylib"


pre-install {system "install -o root -m 755 -d ${destroot}/${prefix}" }


variant threads { configure.args-append -Dusethreads }
name perl5.8
version 5.8.0
categories lang
maintainers michaelm@opendarwin.org
description Perl 5.8.0
platforms darwin freebsd
master_sites http://www.cpan.org/src/
distname stable
checksums stable${extract.sufx} md5 d9bdb180620306023fd35901a2878b62
depends_lib lib:libdb:db4
worksrcdir perl-${portversion}
configure.cmd sh Configure
unset configure.pre_args

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....

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"}
}
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"}
}
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"
}
}
#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"
}
}

0 comments on commit d2556fe

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