# $Id: Portfile,v 1.6 2006/01/31 08:33:20 blb Exp $

PortSystem			1.0
PortGroup			python24 1.0
name				scons
version				0.96.91
categories			devel python
maintainers			blb@opendarwin.org
description			Software construction tool
long_description \
	SCons is an Open Source software construction tool--that is, a \
	next-generation build tool. Think of SCons as an improved, \
	cross-platform substitute for the classic Make utility with integrated \
	functionality similar to autoconf/automake and compiler caches such as \
	ccache.

platforms			darwin

homepage			http://www.scons.org/
master_sites		sourceforge

checksums			md5 af5bd40fcc0e8d0b7c7210d513991802

patchfiles			patch-setup.py patch-scons patch-sconsign
post-patch {
	reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/script/scons \
		${worksrcpath}/script/sconsign
}

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/man/man1 \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.txt \
		RELEASE.txt ${destroot}${prefix}/share/doc/${name}
}

