[144182] trunk/dports/java/gant/Portfile

khindenburg at macports.org khindenburg at macports.org
Sun Jan 3 18:22:43 PST 2016


Revision: 144182
          https://trac.macports.org/changeset/144182
Author:   khindenburg at macports.org
Date:     2016-01-03 18:22:43 -0800 (Sun, 03 Jan 2016)
Log Message:
-----------
gant: port fixes from #29303; change to github

Modified Paths:
--------------
    trunk/dports/java/gant/Portfile

Modified: trunk/dports/java/gant/Portfile
===================================================================
--- trunk/dports/java/gant/Portfile	2016-01-04 01:56:12 UTC (rev 144181)
+++ trunk/dports/java/gant/Portfile	2016-01-04 02:22:43 UTC (rev 144182)
@@ -1,9 +1,10 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup           github 1.0
 
+github.setup        Gant Gant 1.9.5
 name				gant
-version				1.9.5
 categories			java devel groovy
 maintainers			nomaintainer
 description			A groovy based tool for scripting ant
@@ -15,19 +16,12 @@
 					an alternative way of doing things using Ant, but using a \
 					programming language rather than XML to specify the rules.
 					
-homepage			http://gant.codehaus.org/
 platforms			darwin
-distname			${name}-${version}
-master_sites		http://dist.codehaus.org/gant/distributions
 checksums 			md5	6930a7bd5209fb6d1e9e8186fd4b18fb \
 					sha1 919c750128af22797b1d53de37c70deda5676ea7 \
 					rmd160 2b23c6e2696629d9fb8878568955e459d51ebcc3
-						
-worksrcdir			${name}-${version}
-set workTarget		""
 
 use_zip				yes
-use_bzip2			no
 use_configure 		no
 
 build.cmd 			true
@@ -39,7 +33,7 @@
 
 pre-destroot {
 	# Remove extraneous bat files
-	foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] {
+	foreach f [glob -directory ${worksrcpath}/bin *.bat] {
 		file delete $f
 	}
 }
@@ -58,9 +52,7 @@
 	system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/gant"
 }
 
-post-activate {
- 	        ui_msg "****************************************************************************"
- 	        ui_msg "* Remember to set the environment variable GANT_HOME to the path to"
- 	        ui_msg "* the gant distribution: ${prefix}/share/java/${name}"
- 	        ui_msg "****************************************************************************"
- }
+notes "
+Remember to set the environment variable GANT_HOME to the path to\
+the gant distribution: ${prefix}/share/java/${name}
+"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160103/71415d9b/attachment.html>


More information about the macports-changes mailing list