# $Id$ PortSystem 1.0 name jgoodies-common version 1.4.0 categories java platforms darwin maintainers blair description Helper classes for other jgoodies-* packages long_description The JGoodies Common library provides convenience \ code for other JGoodies libraries and applications. homepage http://www.jgoodies.com/downloads/libraries.html master_sites http://www.jgoodies.com/download/libraries/common/ distname ${name}-1_4_0 checksums sha1 f3e8f55997a6ac9c1130590e7a23125f0dbc8d77 \ sha256 3653468448825fb47c926c0729b49bfa693fe9d64b518b5f608a1c2e594c5569 use_zip yes depends_lib bin:java:kaffe use_configure no worksrcdir ${name}-${version} if {${os.platform} == "darwin" && ${os.major} < 10} { pre-fetch { ui_error "${name} ${version} requires OS X 10.6 or greater for Java 6." return -code error "incompatible OS X version" } } build.cmd true destroot { set javadir ${destroot}${prefix}/share/java set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d -m 755 ${javadir} xinstall -d -m 755 ${docdir} file copy ${worksrcpath}/${name}-${version}.jar ${javadir}/${name}.jar foreach f {LICENSE.txt README.html RELEASE-NOTES.txt docs} { file copy ${worksrcpath}/${f} ${docdir}/ } }