# $Id: Portfile 51955 2009-06-07 10:04:10Z arthurk@macports.org $

PortSystem			1.0
PortGroup			python25 1.0

name				scons
version				1.2.0
categories			devel python
maintainers			landonf openmaintainer
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     53b6aa7281811717a57598e319441cf7 \
                    sha1    cd6be8698a384ea2ac4f5191cef94f57b2f84bbb \
                    rmd160  69c1fcc7c3af55c801f26fc7370dd01a17dc2327

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}
}
