# $Id$

PortSystem 1.0

name			statcvs
version			0.2.2
categories		devel java
license			LGPL-2.1+
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
description		generates tables and charts about a CVS repository
long_description	StatCVS retrieves information from a CVS repository and \
				generates various tables and charts describing the history of \
				a software project development, such as a timeline for the \
				lines of code, contribution of each developer, etc.

homepage		http://statcvs.sourceforge.net/
master_sites	sourceforge
distname		${distname}-source
checksums		md5 498f50991aff384426279528757c462c
use_zip			yes

depends_build	bin:ant:apache-ant
depends_lib		bin:java:kaffe \
				port:jfreechart \
				port:junit
depends_run		bin:cvs:cvs

worksrcdir		${name}-${version}

post-extract	{
	file delete ${worksrcpath}/lib/junit.jar \
		${worksrcpath}/lib/jfreechart-0.9.21.jar
	system "ln -sf ${prefix}/share/java/jfreechart.jar ${worksrcpath}/lib/jfreechart-0.9.21.jar"
	system "ln -sf ${prefix}/share/java/junit.jar ${worksrcpath}/lib/junit.jar"
}

use_configure	no

build.cmd		ant
build.target	dist

destroot	{
	xinstall -m 755 ${filespath}/statcvs ${destroot}${prefix}/bin
	reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/statcvs
	xinstall -m 755 -d ${destroot}${prefix}/share/java/
	xinstall -m 644 ${worksrcpath}/dist/statcvs.jar \
		${destroot}${prefix}/share/java/
}