# $Id: Portfile 71533 2010-09-15 20:26:12Z ryandesign@macports.org $

PortSystem			1.0
name				ftjam
version				2.5.2
categories			devel
maintainers			nomaintainer
description			a software build tool like make
long_description	FTJam is an improvement built upon Perforce Jam (or Classic Jam). \
					It is backward compatible with Perforce Jam 2.3. \
					Please note that FTJam port conflicts with Perforce Jam port \
					because they both want to install jam into ${prefix}/bin
homepage			http://freetype.sourceforge.net/jam/
master_sites		sourceforge:freetype
checksums			md5 b06c4c91405ef152ae59712d4fb1b80b \
					sha1 d23c7bb2e21afcacd8dc6086209ff767284a336c \
					rmd160 03f8eb7949005dda4265a8156d20f3dd5a4d1e93
platforms			darwin

use_configure		no

destroot {
	system "install -m 755 ${worksrcpath}/bin.*/jam ${destroot}${prefix}/bin/"
	system "install -m 755 ${worksrcpath}/bin.*/mkjambase ${destroot}${prefix}/bin/"
	xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/
	xinstall -m 644 ${worksrcpath}/Jam.html ${destroot}${prefix}/share/doc/${name}/
	xinstall -m 644 ${worksrcpath}/Jambase.html ${destroot}${prefix}/share/doc/${name}/
	xinstall -m 644 ${worksrcpath}/Jamfile.html ${destroot}${prefix}/share/doc/${name}/
}

livecheck.type	regex
livecheck.url	http://sourceforge.net/project/showfiles.php?group_id=3157
livecheck.regex	{<td><a href="/project/showfiles\.php\?group_id=3157&amp;package_id=19789&amp;release_id=.*">(.*)</a></td>}
