# -*- 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 name launch4j version 3.12 categories java maintainers nomaintainer license GPL-2 description Cross-platform Java executable wrapper long_description \ Launch4j is a cross-platform tool for wrapping Java \ applications distributed as jars in lightweight Windows \ native executables. The executable can be configured to \ search for a certain JRE version or use a bundled one, \ and it's possible to set runtime options, like the \ initial/max heap size. The wrapper also provides better \ user experience through an application icon, a native \ pre-JRE splash screen, a custom process name, and a Java \ download page in case the appropriate JRE cannot be found. homepage http://launch4j.sourceforge.net/ platforms darwin master_sites sourceforge distname launch4j-${version}-macosx-x86 extract.suffix .tgz checksums md5 089cbecf8f6aa022258044f3090b5cdf \ sha1 62f4732c0c1bb9a68c1dd129c1d696525ae38dcb \ rmd160 abd6e1b13ed016d5e4be4d4744824007ec1841ec \ sha256 754e557036ff4a469b4a24443c809113f85b9a0689a5ffdcf35a8a6e986c458f \ size 7287503 use_configure no build {} worksrcdir launch4j post-extract { reinplace "s|^LAUNCH4J=.*|LAUNCH4J=${prefix}/share/launch4j/launch4j.jar|" ${worksrcpath}/launch4j } destroot { set sharedir ${destroot}${prefix}/share set l4jdir ${sharedir}/launch4j set l4jdoc ${sharedir}/doc/launch4j xinstall -d -m 755 ${l4jdoc} file rename ${worksrcpath}/web ${l4jdoc} file rename ${worksrcpath}/demo ${l4jdoc} file rename ${worksrcpath}/LICENSE.txt ${l4jdoc} file rename ${worksrcpath}/w32api/MinGW.LICENSE.txt ${l4jdoc} file delete ${worksrcpath}/w32api_jni/MinGW.LICENSE.txt foreach doc {ant JGoodies.Forms JGoodies.Looks Nuvola.Icon.Theme XStream commons foxtrot} { file rename ${worksrcpath}/lib/${doc}.LICENSE.txt ${l4jdoc} } file rename ${worksrcpath}/bin/COPYING ${l4jdoc}/bin.COPYING file rename ${worksrcpath}/head/LICENSE.txt ${l4jdoc}/head.LICENSE.txt file rename ${worksrcpath}/head_jni_BETA/LICENSE.txt ${l4jdoc}/head_jni_BETA.LICENSE.txt file rename ${worksrcpath}/sign4j/README.txt ${l4jdoc}/sign4j.README.txt file delete -force ${worksrcpath}/head_src file delete -force ${worksrcpath}/src file delete -force ${worksrcpath}/maven file delete ${worksrcpath}/build.xml file delete ${worksrcpath}/launch4j.jfpr file delete ${worksrcpath}/.classpath file delete ${worksrcpath}/.project file delete ${worksrcpath}/.gitignore file delete -force ${worksrcpath}/.settings xinstall -d -m 755 ${sharedir} file copy ${worksrcpath} ${sharedir} ln -s ../share/launch4j/launch4j ${destroot}${prefix}/bin/launch4j } livecheck.type regex livecheck.regex {launch4j-[0-9]+/([a-zA-Z0-9.]+\.[a-zA-Z0-9.]+)}