a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 21866 2007-02-10 19:55:41Z markd@macports.org $
PortSystem 1.0
name checkstyle
version 4.3
categories java lang
platforms darwin
maintainers dglo@icecube.wisc.edu
description CheckStyle is a Java source code analyzer
long_description Checkstyle is a Java source code analyzer. \
It automates the process of checking Java code, \
and can be made to support almost any coding \
standard. It can also find class design problems, \
duplicate code, or bug patterns like \
double checked locking.
homepage http://checkstyle.sourceforge.net/
master_sites sourceforge
distname ${name}-src-${version}
checksums md5 b1e6288526e9258947b9eeef69d08e6b
use_zip yes
depends_build bin:ant:apache-ant
depends_lib bin:java:kaffe
depends_run port:junit
worksrcdir ${name}-src-${version}
use_configure no
build.cmd ant
build.target build.bindist
build.dir ${worksrcpath}
build.env CLASSPATH=${prefix}/share/java/junit.jar
destroot {
xinstall -m 755 ${filespath}/${name} ${destroot}${prefix}/bin
reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/java \
${destroot}${prefix}/share/doc
xinstall -m 644 ${worksrcpath}/target/dist/${name}-${version}/${name}-all-${version}.jar \
${destroot}${prefix}/share/java/${name}.jar
xinstall -m 644 ${worksrcpath}/target/dist/${name}-${version}/${name}-optional-${version}.jar \
${destroot}${prefix}/share/java/${name}-optional.jar
file copy ${worksrcpath}/target/docs \
${destroot}${prefix}/share/doc/${name}
file mkdir ${destroot}${prefix}/share/${name}/
foreach xsl [glob -nocomplain ${worksrcpath}/contrib/*.xsl] {
file copy ${xsl} ${destroot}${prefix}/share/${name}/
}
}