# $Id: Portfile 141685 2015-10-26 20:09:58Z khindenburg@macports.org $ PortSystem 1.0 name groovy version 2.4.5 categories lang java maintainers breun.nl:nils openmaintainer platforms darwin license Apache-2 supported_archs noarch description Groovy -- a Java-based scripting language long_description Groovy... \ * is an agile and dynamic language for the Java Virtual Machine \ * builds upon the strengths of Java but has additional power \ features inspired by languages like Python, Ruby and Smalltalk \ * makes modern programming features available to Java developers \ with almost-zero learning curve \ * provides the ability to statically type check and statically \ compile your code for robustness and performance \ * supports Domain-Specific Languages and other compact syntax so \ your code becomes easy to read and maintain \ * makes writing shell and build scripts easy with its powerful \ processing primitives, OO abilities and an Ant DSL \ * increases developer productivity by reducing scaffolding code \ when developing web, GUI, database or console applications \ * simplifies testing by supporting unit testing and mocking \ out-of-the-box \ * seamlessly integrates with all existing Java classes and \ libraries \ * compiles straight to Java bytecode so you can use it anywhere \ you can use Java homepage http://groovy-lang.org/ master_sites http://dl.bintray.com/${name}/maven/ distname apache-${name}-binary-${version} use_zip yes checksums rmd160 87ea07599dd100dedda57dbac86a3036029134f7 \ sha256 87e8e9af1f718b84c9bca5a8c42425aadb9e97d8e4ad64e0c91f7c1454cd4caa worksrcdir ${name}-${version} use_configure no build {} destroot { set target ${destroot}${prefix}/share/java/${name} # Create the target java directory xinstall -m 755 -d ${target} # Copy over the needed elements of our directory tree foreach d { bin conf embeddable indy lib } { copy ${worksrcpath}/${d} ${target} } # Remove extraneous bat files foreach f [glob -directory ${target}/bin *.bat] { delete ${f} } # Add symlinks to the scripts foreach f { grape groovy groovyConsole groovyc groovydoc groovysh java2groovy startGroovy } { ln -s ../share/java/${name}/bin/${f} ${destroot}${prefix}/bin } } livecheck.regex ${name}-binary-(\[\\d\.\]+)${extract.suffix}