[144200] trunk/dports/java/gant/Portfile
ryandesign at macports.org
ryandesign at macports.org
Mon Jan 4 09:50:09 PST 2016
Revision: 144200
https://trac.macports.org/changeset/144200
Author: ryandesign at macports.org
Date: 2016-01-04 09:50:09 -0800 (Mon, 04 Jan 2016)
Log Message:
-----------
gant: whitespace changes and rearranging; add modeline
Modified Paths:
--------------
trunk/dports/java/gant/Portfile
Modified: trunk/dports/java/gant/Portfile
===================================================================
--- trunk/dports/java/gant/Portfile 2016-01-04 17:46:28 UTC (rev 144199)
+++ trunk/dports/java/gant/Portfile 2016-01-04 17:50:09 UTC (rev 144200)
@@ -1,25 +1,27 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
PortGroup github 1.0
github.setup Gant Gant 1.9.10
-name gant
-categories java devel groovy
-maintainers nomaintainer
+name gant
+categories java devel groovy
+platforms darwin
+maintainers nomaintainer
license Apache-2
+supported_archs noarch
-description A groovy based tool for scripting ant
-long_description Gant is a tool for scripting Ant tasks using Groovy instead of XML \
- to specify the logic. A Gant specification is a Groovy script and so \
- can bring all the power of Groovy to bear directly, something not \
- possible with Ant scripts. Whilst it might be seen as a competitor \
- to Ant, Gant uses Ant tasks for many of the actions, so Gant is really \
- an alternative way of doing things using Ant, but using a \
- programming language rather than XML to specify the rules.
-
-platforms darwin
+description A groovy based tool for scripting ant
+long_description Gant is a tool for scripting Ant tasks using Groovy instead of XML \
+ to specify the logic. A Gant specification is a Groovy script and so \
+ can bring all the power of Groovy to bear directly, something not \
+ possible with Ant scripts. Whilst it might be seen as a competitor \
+ to Ant, Gant uses Ant tasks for many of the actions, so Gant is really \
+ an alternative way of doing things using Ant, but using a \
+ programming language rather than XML to specify the rules.
+
distname ${name}-${version}
extract.suffix .tgz
master_sites https://web.archive.org/web/20150506155753/http://dist.codehaus.org/gant/distributions/
@@ -33,31 +35,30 @@
}
}
-use_configure no
+use_configure no
-build.cmd true
-supported_archs noarch
+build.cmd true
platform darwin {
- build.env JAVA_HOME=/Library/Java/Home
+ build.env JAVA_HOME=/Library/Java/Home
}
pre-destroot {
- # Remove extraneous bat files
+ # Remove extraneous bat files
delete {*}[glob -directory ${worksrcpath}/bin *.bat]
}
-destroot {
- # Create the target java directory
- xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
+destroot {
+ # Create the target java directory
+ xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
- # Copy over the needed elements of our directory tree
- file copy ${worksrcpath}/bin \
- ${worksrcpath}/lib \
- ${worksrcpath}/conf \
- ${destroot}${prefix}/share/java/${name}
+ # Copy over the needed elements of our directory tree
+ file copy ${worksrcpath}/bin \
+ ${worksrcpath}/lib \
+ ${worksrcpath}/conf \
+ ${destroot}${prefix}/share/java/${name}
- # Symlink gant into the bin directory
+ # Symlink gant into the bin directory
ln -s ${prefix}/share/java/${name}/bin/gant ${destroot}${prefix}/bin
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160104/a55b010e/attachment.html>
More information about the macports-changes
mailing list