# -*- 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 github 1.0 github.setup google google-java-format 1.25.0 v # Change github.tarball_from to 'releases' or 'archive' next update github.tarball_from tarball revision 0 maintainers {@danchr danchr} openmaintainer license Apache-2 categories java devel textproc description Reformat Java source code to comply with Google Java Style long_description {*}${description} checksums rmd160 c6b6b8f60d65a3347781757a168eb1a97728a61f \ sha256 fde76f476709db6ddeafe81ce2ccb3137c468a5e3104e3142ee66303fdbf9375 \ size 208294 depends_build bin:mvn3:maven3 \ port:openjdk21-graalvm use_configure no set java_home ${prefix}/Library/Java/JavaVirtualMachines/jdk-21-oracle-graalvm-community.jdk/Contents/Home set maven_local_repository ${worksrcpath}/.m2/repository pre-build { file mkdir ${maven_local_repository} } build.cmd mvn3 build.target "package" build.env-append JAVA_HOME=${java_home} build.pre_args-append \ -Dmaven.repo.local=${maven_local_repository} \ -DskipTests -Pnative build.dir ${worksrcpath}/core destroot { # Ensure needed directories xinstall -m 755 -d ${destroot}${prefix}/share/java # Install jar foreach f [glob ${worksrcpath}/core/target/${name}-${version}*.jar] { xinstall -m 644 $f ${destroot}${prefix}/share/java } # Install binary xinstall -m 755 ${worksrcpath}/core/target/${name} \ ${destroot}${prefix}/bin/${name} }