| 1 | DESCRIPTION="Open Source next-generation build tool." |
|---|
| 2 | HOMEPAGE="http://www.scons.org/" |
|---|
| 3 | LICENSE="MIT" |
|---|
| 4 | COPYRIGHT="2001-2010 The SCons Foundation" |
|---|
| 5 | SRC_URI="http://ovh.dl.sourceforge.net/sourceforge/scons/scons-2.0.1.tar.gz" |
|---|
| 6 | CHECKSUM_MD5="beca648b894cdbf85383fffc79516d18" |
|---|
| 7 | REVISION="1" |
|---|
| 8 | STATUS_HAIKU="stable" |
|---|
| 9 | DEPEND="dev-lang/python >= 2.5.4" |
|---|
| 10 | BUILD { |
|---|
| 11 | cd scons-2.0.1 |
|---|
| 12 | for f in "script/scons script/scons-time script/sconsign"; do |
|---|
| 13 | sed -i -e "s@#! /usr/bin/env python@#! /bin/env python@" $f |
|---|
| 14 | done |
|---|
| 15 | python setup.py build |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | INSTALL { |
|---|
| 19 | if [ ! -z ${DESTDIR} ]; then |
|---|
| 20 | options="${options} --root=\"${DESTDIR}\"" |
|---|
| 21 | fi |
|---|
| 22 | options="${options} --prefix=`finddir B_COMMON_DIRECTORY`" |
|---|
| 23 | options="${options} --install-data=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`" |
|---|
| 24 | options="${options} --symlink-scons" |
|---|
| 25 | options="${options} --standard-lib" |
|---|
| 26 | |
|---|
| 27 | cd scons-2.0.1 |
|---|
| 28 | python setup.py install $options |
|---|
| 29 | } |
|---|