[103923] trunk/dports/devel/apache-ant/Portfile

landonf at macports.org landonf at macports.org
Sat Mar 9 21:32:57 PST 2013


Revision: 103923
          https://trac.macports.org/changeset/103923
Author:   landonf at macports.org
Date:     2013-03-09 21:32:57 -0800 (Sat, 09 Mar 2013)
Log Message:
-----------
Respect the configured Java path, rather than hard-coding a reference to the Apple-installed JVM

Modified Paths:
--------------
    trunk/dports/devel/apache-ant/Portfile

Modified: trunk/dports/devel/apache-ant/Portfile
===================================================================
--- trunk/dports/devel/apache-ant/Portfile	2013-03-10 03:03:45 UTC (rev 103922)
+++ trunk/dports/devel/apache-ant/Portfile	2013-03-10 05:32:57 UTC (rev 103923)
@@ -4,7 +4,7 @@
 
 name                    apache-ant
 version                 1.8.4
-revision                3
+revision                4
 categories              devel java
 license                 Apache-2 W3C
 maintainers             openmaintainer blair
@@ -58,6 +58,10 @@
         build.target                    dist
 }
 
+post-patch {
+        reinplace "s|/System/Library/Frameworks/JavaVM.framework/Home|`/usr/libexec/java_home`|g" "${worksrcpath}/bin/ant"
+}
+
 pre-destroot {
         delete \
                 ${worksrcpath}${workTarget}/bin/ant.bat \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130309/80637f02/attachment.html>


More information about the macports-changes mailing list