source: trunk/dports/lang/groovy/Portfile @ 146377

Last change on this file since 146377 was 146377, checked in by khindenburg@…, 4 years ago

groovy: update to 2.4.6 maintainer #50814

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 146377 2016-03-06 19:25:09Z khindenburg@macports.org $
2
3PortSystem 1.0
4
5name            groovy
6version         2.4.6
7
8categories      lang java
9maintainers     breun.nl:nils openmaintainer
10platforms       darwin
11license         Apache-2
12supported_archs noarch
13
14description     Groovy -- a Java-based scripting language
15
16long_description Groovy... \
17                * is an agile and dynamic language for the Java Virtual Machine \
18                * builds upon the strengths of Java but has additional power \
19                  features inspired by languages like Python, Ruby and Smalltalk \
20                * makes modern programming features available to Java developers \
21                  with almost-zero learning curve \
22                * provides the ability to statically type check and statically \
23                  compile your code for robustness and performance \
24                * supports Domain-Specific Languages and other compact syntax so \
25                  your code becomes easy to read and maintain \
26                * makes writing shell and build scripts easy with its powerful \
27                  processing primitives, OO abilities and an Ant DSL \
28                * increases developer productivity by reducing scaffolding code \
29                  when developing web, GUI, database or console applications \
30                * simplifies testing by supporting unit testing and mocking \
31                  out-of-the-box \
32                * seamlessly integrates with all existing Java classes and \
33                  libraries \
34                * compiles straight to Java bytecode so you can use it anywhere \
35                  you can use Java
36
37homepage        http://groovy-lang.org/
38master_sites    https://dl.bintray.com/${name}/maven/
39distname        apache-${name}-binary-${version}
40use_zip         yes
41
42checksums       rmd160  11c331c49f03b2e8981c67eb4e4c2a19eb24b449 \
43                sha256  9b3fb5b51bc21342bba13f090a88ad6d89b20c4a7a166dd50df2ac763c278768
44
45worksrcdir      ${name}-${version}
46
47use_configure   no
48
49build {}
50
51destroot {
52    set target ${destroot}${prefix}/share/java/${name}
53
54    # Create the target java directory
55    xinstall -m 755 -d ${target}
56
57    # Copy over the needed elements of our directory tree
58    foreach d { bin conf embeddable indy lib } {
59        copy ${worksrcpath}/${d} ${target}
60    }
61
62    # Remove extraneous bat files
63    foreach f [glob -directory ${target}/bin *.bat] {
64        delete ${f}
65    }
66
67    # Add symlinks to the scripts
68    foreach f { grape groovy groovyConsole groovyc groovydoc groovysh java2groovy startGroovy } {
69        ln -s ../share/java/${name}/bin/${f} ${destroot}${prefix}/bin
70    }
71}
72
73livecheck.regex ${name}-binary-(\[\\d\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.