source: trunk/dports/java/gant/Portfile

Last change on this file was 144200, checked in by ryandesign@…, 19 months ago

gant: whitespace changes and rearranging; add modeline

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- 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
2# $Id: Portfile 144200 2016-01-04 17:50:09Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        Gant Gant 1.9.10
8name                gant
9categories          java devel groovy
10platforms           darwin
11maintainers         nomaintainer
12license             Apache-2
13supported_archs     noarch
14
15description         A groovy based tool for scripting ant
16
17long_description    Gant is a tool for scripting Ant tasks using Groovy instead of XML \
18                    to specify the logic. A Gant specification is a Groovy script and so \
19                    can bring all the power of Groovy to bear directly, something not \
20                    possible with Ant scripts. Whilst it might be seen as a competitor \
21                    to Ant, Gant uses Ant tasks for many of the actions, so Gant is really \
22                    an alternative way of doing things using Ant, but using a \
23                    programming language rather than XML to specify the rules.
24
25distname            ${name}-${version}
26extract.suffix      .tgz
27master_sites        https://web.archive.org/web/20150506155753/http://dist.codehaus.org/gant/distributions/
28
29checksums           rmd160  8ed15ba3b3306263c1c32c408ac72174cbd6a76f \
30                    sha256  33042f2e221a8407103a04b63232c18ce34902637e268aa02a4b4b7bafa90a19
31
32post-extract {
33    foreach f [glob -directory ${worksrcpath} README* conf/* lib/*] {
34        file attributes ${f} -permissions a+r
35    }
36}
37
38use_configure       no
39
40build.cmd           true
41
42platform darwin {
43    build.env       JAVA_HOME=/Library/Java/Home
44}
45
46pre-destroot {
47    # Remove extraneous bat files
48    delete {*}[glob -directory ${worksrcpath}/bin *.bat]
49}
50
51destroot {
52    # Create the target java directory
53    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
54
55    # Copy over the needed elements of our directory tree
56    file copy ${worksrcpath}/bin                            \
57              ${worksrcpath}/lib                            \
58              ${worksrcpath}/conf                           \
59              ${destroot}${prefix}/share/java/${name}
60
61    # Symlink gant into the bin directory
62    ln -s ${prefix}/share/java/${name}/bin/gant ${destroot}${prefix}/bin
63}
64
65notes "
66Remember to set the environment variable GANT_HOME to the path to\
67the gant distribution: ${prefix}/share/java/${name}
68"
Note: See TracBrowser for help on using the repository browser.