DESCRIPTION="Open Source next-generation build tool."
HOMEPAGE="http://www.scons.org/"
LICENSE="MIT"
COPYRIGHT="2001-2010 The SCons Foundation"
SRC_URI="http://ovh.dl.sourceforge.net/sourceforge/scons/scons-2.0.1.tar.gz"
CHECKSUM_MD5="beca648b894cdbf85383fffc79516d18"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-lang/python >= 2.5.4"
BUILD {
	cd scons-2.0.1
	for f in "script/scons script/scons-time script/sconsign"; do
		sed -i -e "s@#! /usr/bin/env python@#! /bin/env python@" $f
	done
	python setup.py build
}

INSTALL {
	if [ ! -z ${DESTDIR} ]; then
		options="${options} --root=\"${DESTDIR}\""
	fi
	options="${options} --prefix=`finddir B_COMMON_DIRECTORY`"
	options="${options} --install-data=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`"
	options="${options} --symlink-scons"
	options="${options} --standard-lib"
	
	cd scons-2.0.1
	python setup.py install $options
}
