# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 # $Id$ # vim: set fileencoding=utf-8 tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl : PortSystem 1.0 name glassfishv3 epoch 62 version 3 revision 3 categories java maintainers openmaintainer krischik platforms darwin description An open source application server long_description GlassFish is an open source application server project \ led by Sun Microsystems for the Java EE platform. homepage https://glassfish.dev.java.net/ master_sites http://download.java.net/glassfish/v3/release distname glassfish-v${version} checksums md5 537b1c6574316ebc4dc69ba6dd26e213 \ sha1 84f596bc014cfa7fa79c7f54b03b189c8d393160 \ rmd160 3b6df4be5f40752238b1ce613da64c9ae02abb17 use_zip yes use_configure no worksrcdir ${name} build.cmd true destroot { foreach f [glob -directory ${worksrcpath}/bin *.bat] { file delete $f } xinstall -m 755 -d ${destroot}${prefix}/share/java xinstall -m 755 -d ${destroot}${applications_dir}/Utilities file copy ${worksrcpath} ${destroot}${prefix}/share/java/${name} foreach script {Java_6 Java_5 Start_Glassfish_Domain1 Stop_Glassfish_Domain1} { xinstall -m 755 \ -W ${filespath} \ ${script}.command \ ${destroot}${applications_dir}/Utilities/${script}.command reinplace s|@PREFIX@|${prefix}|g \ ${destroot}${applications_dir}/Utilities/${script}.command } ui_msg "#############################################################" ui_msg "# Glassfish v3 preview needs Java 6 to be active #" ui_msg "# on the command-line. For this the symbolic links #" ui_msg "# in /System/Library/Frameworks/JavaVM.framework/Versions #" ui_msg "# need to be changed. This can be archived with the #" ui_msg "# provided /Applications/MacPorts/Utilities/Java_6.command #" ui_msg "# shell script. (Use on your own risk) #" ui_msg "#############################################################" } livecheck.type regex livecheck.url "http://download.java.net/glassfish/v${version}/promoted" livecheck.regex glassfish-v${version}-preview-b(\[0-9.\]+)${extract.suffix}