[116085] trunk/dports/science/demeter/Portfile
macsforever2000 at macports.org
macsforever2000 at macports.org
Fri Jan 17 14:49:14 PST 2014
Revision: 116085
https://trac.macports.org/changeset/116085
Author: macsforever2000 at macports.org
Date: 2014-01-17 14:49:13 -0800 (Fri, 17 Jan 2014)
Log Message:
-----------
demeter: Require perl 5.16. symlink main binaries into path.
Modified Paths:
--------------
trunk/dports/science/demeter/Portfile
Modified: trunk/dports/science/demeter/Portfile
===================================================================
--- trunk/dports/science/demeter/Portfile 2014-01-17 21:38:56 UTC (rev 116084)
+++ trunk/dports/science/demeter/Portfile 2014-01-17 22:49:13 UTC (rev 116085)
@@ -4,6 +4,7 @@
PortSystem 1.0
PortGroup perl5 1.0
PortGroup github 1.0
+PortGroup active_variants 1.1
# Need to use perl 5.16 because p5.12-wx does not work. But make the perl version easy to change.
set perl-version 5.16
@@ -11,6 +12,7 @@
name demeter
version 0.9.18.2
+revision 1
categories science
platforms darwin
@@ -83,6 +85,9 @@
patchfiles patch-DocBuilder-Artemis.pm.diff \
patch-DocBuilder-Athena.pm.diff
+require_active_variants \
+ perl5 perl5_16
+
post-patch {
reinplace "s|@@PERL-VERSION@@|${perl-version}|g" ${worksrcpath}/DocBuilder/Artemis.pm
reinplace "s|@@PERL-VERSION@@|${perl-version}|g" ${worksrcpath}/DocBuilder/Athena.pm
@@ -93,3 +98,10 @@
build.cmd ./Build
build.target install
+
+post-destroot {
+ # Put the main executables (perl scripts) into the PATH
+ ln -s ${prefix}/libexec/perl5.16/sitebin/dartemis ${destroot}${prefix}/bin/artemis
+ ln -s ${prefix}/libexec/perl5.16/sitebin/dathena ${destroot}${prefix}/bin/athena
+ ln -s ${prefix}/libexec/perl5.16/sitebin/dhephaestus ${destroot}${prefix}/bin/hephaestus
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140117/fcb96185/attachment-0001.html>
More information about the macports-changes
mailing list