# -*- 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 PortSystem 1.0 PortGroup java 1.0 name groovy version 4.0.20 revision 0 categories lang java maintainers {breun.nl:nils @breun} openmaintainer platforms {darwin any} 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 https://groovy-lang.org/ master_sites https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/ distname apache-${name}-binary-${version} use_zip yes checksums rmd160 24d1477dec54527d1b143ede44afd6986c6aaf1c \ sha256 fdf70cc57eff997f3fa5aee2b340d311593912e822ad810b3fd6ee403985eb75 \ size 29824179 worksrcdir ${name}-${version} use_configure no java.version 1.8+ java.fallback openjdk21 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 grooid 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 grape_completion groovy groovy_completion groovyConsole groovyConsole_completion groovyc groovyc_completion groovydoc groovydoc_completion groovysh groovysh_completion java2groovy startGroovy } { ln -s ../share/java/${name}/bin/${f} ${destroot}${prefix}/bin } } livecheck.regex ${name}-binary-(\[\\d\.\]+)${extract.suffix}