| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/scons/scons-2.1.0.ebuild,v 1.12 2012/08/02 06:56:04 patrick Exp $ |
| 4 |
|
| 5 |
EAPI="4" |
| 6 |
PYTHON_DEPEND="2:2.5" |
| 7 |
PYTHON_USE_WITH="threads(+)" |
| 8 |
SUPPORT_PYTHON_ABIS="1" |
| 9 |
RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-*" |
| 10 |
PYTHON_MODNAME="SCons" |
| 11 |
|
| 12 |
inherit distutils eutils |
| 13 |
|
| 14 |
DESCRIPTION="Extensible Python-based build utility" |
| 15 |
HOMEPAGE="http://www.scons.org/" |
| 16 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
| 17 |
doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf |
| 18 |
http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )" |
| 19 |
|
| 20 |
LICENSE="MIT" |
| 21 |
SLOT="0" |
| 22 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
| 23 |
IUSE="doc" |
| 24 |
|
| 25 |
DEPEND="" |
| 26 |
RDEPEND="" |
| 27 |
|
| 28 |
DOCS="CHANGES.txt RELEASE.txt" |
| 29 |
|
| 30 |
src_prepare() { |
| 31 |
distutils_src_prepare |
| 32 |
epatch "${FILESDIR}/scons-1.2.0-popen.patch" |
| 33 |
epatch "${FILESDIR}/${P}-jython.patch" |
| 34 |
|
| 35 |
# https://bugs.gentoo.org/show_bug.cgi?id=361061 |
| 36 |
sed -i -e "s|/usr/local/bin:/opt/bin:/bin:/usr/bin|${EPREFIX}usr/local/bin:${EPREFIX}opt/bin:${EPREFIX}bin:${EPREFIX}usr/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin|g" engine/SCons/Platform/posix.py || die |
| 37 |
# and make sure the build system doesn't "force" /usr/local/ :( |
| 38 |
sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die |
| 39 |
} |
| 40 |
|
| 41 |
src_install () { |
| 42 |
distutils_src_install \ |
| 43 |
--standard-lib \ |
| 44 |
--no-version-script \ |
| 45 |
--install-data "${EPREFIX}"/usr/share |
| 46 |
|
| 47 |
if use doc ; then |
| 48 |
insinto /usr/share/doc/${PF} |
| 49 |
doins "${DISTDIR}"/${P}-user.{pdf,html} |
| 50 |
fi |
| 51 |
} |