summaryrefslogtreecommitdiff
path: root/dev-util/scons
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/scons
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/scons')
-rw-r--r--dev-util/scons/Manifest20
-rw-r--r--dev-util/scons/files/scons-2.1.0-jython.patch13
-rw-r--r--dev-util/scons/metadata.xml18
-rw-r--r--dev-util/scons/scons-2.3.5.ebuild52
-rw-r--r--dev-util/scons/scons-2.4.1.ebuild52
-rw-r--r--dev-util/scons/scons-2.5.0.ebuild52
-rw-r--r--dev-util/scons/scons-2.5.1.ebuild52
7 files changed, 259 insertions, 0 deletions
diff --git a/dev-util/scons/Manifest b/dev-util/scons/Manifest
new file mode 100644
index 000000000000..dfe958f4e480
--- /dev/null
+++ b/dev-util/scons/Manifest
@@ -0,0 +1,20 @@
+AUX scons-2.1.0-jython.patch 427 SHA256 f973254e500325334c44f7db86daec87954aa47287c8aa92146a91ed172eb97a SHA512 5ffe6ee08e2dbf7dfb92e67a2b4ac75a5566a34680dbe86eae749c67709e8ddf585ddbd4549c0151c022567f171240c329cc546ce3d0bfb76efd2c8bd6f185e1 WHIRLPOOL 3316c6f83c5792cbc4e58d721a57df972eba0dcc90a0bea4fcc0222affd014662b11b06cc6699d4e6fa1bc41468318b82b33f47a6e4d20a5ff7194fde79e5173
+DIST scons-2.3.5-user.html 1280097 SHA256 2724fe17e3901f6c70dc190e7a215a86e3c103f90393588480f0adb7c2c9a9bb SHA512 e2c80beacd03f4071e33f8084e499e54c8529e68ec02b972d0d0944b6e096437fd70f59339ebba652cc5539475e1b4eb8b80e4a3d188413ca5181af9ae5b70d3 WHIRLPOOL d73ef9a5f1cbf9a0cf70124b224a50b7d4ca5d7a35bddb6b88f3fa14ba5fbee1e2721ad9179698b5cd45f24bf91815bc15e4c0d40d21b34a761ec68243a1fc74
+DIST scons-2.3.5-user.pdf 2505997 SHA256 4e157b75b49b6e15f339811102b8e3e8af761ed197a6fe0df01c535ecb16f758 SHA512 137ab2d3b1cab6821f2d8a8fde33406e2a7d46a4c26eec9de1073d3c03f49e1d485ae7884ed3cd2e41a0e3d2ef457e103d782dc1deb01a280c48e4f5e7e68f1e WHIRLPOOL f5394cc86930ec60259af01232948cd10aa7c240bf75262d622a94f0b2311bdc70835921b8ff7a5e2091adc035ce56ad1c0b69c22def1305082af3f6a3aaf802
+DIST scons-2.3.5.tar.gz 631619 SHA256 8a8993e1914801ace5ce83c92bf4c43127669750e9dec8eb93574e57729e9c42 SHA512 aad0213d70c06b02d647a4de4a4fdcd9970e7bda6f3ba0b33e9ba05677af617302b3a557e7cb13560c9057c3b11fbc27cf5e8e7511297058ad9599a04c8381a3 WHIRLPOOL 545d759d0d3ecd54b706712030b5091f1c56f8a3762118c4fd2d27aae9a407e59bffa81ca3592369467a2561eeba867c2a3f91f4652ee34afd4514b06627fd7f
+DIST scons-2.4.1-user.html 1110981 SHA256 d77b75e8b04e60843269f9fc0b83a8c903d3b47599f2502e50f0acd2754b9e27 SHA512 e73caa3daedb5da419a417dbec73a3958da162311e9ad09a7d5e9d6989686b24cf5c1b34fdb1d547a43de1da36e99566e6c367fde05af032a2d1000a7e12270c WHIRLPOOL 6813fc873d6a50dd830ba697324b4fe18be73089dd54cef08ef36758670a66bf5d596cdb2d3f26f1d0d4a68000d4467ba39e5dab104e1506d64b9c413b4f90bb
+DIST scons-2.4.1-user.pdf 2527773 SHA256 196f678894e0cb2d72fa4f8922a1554345ca3ae66c7a51e4599687bfb41d8f8e SHA512 d53d41e51096d1923e168054d335da1498e9ca338e39aef7985967f839656d368b65a8b979dac701ca1c529deeff4a79f402f058d23ef4e658f849ce0784eb45 WHIRLPOOL 7a78b888a93fecc464c7b11cbe79464ddd4d1319604806b3357c2a45629c0cbe9ddda8d290c3ffefd25c74020b7712437f4482aedb709d2a62a6b141d9c21134
+DIST scons-2.4.1.tar.gz 638990 SHA256 8fc4f42928c69bcbb33e1be94b646f2c700b659693fabc778c192d4d22f753a7 SHA512 bd0830719dfc0c2e8620ec767ee6342af74a170cd895acda2995761eafe52e1efa9471626fcaedb0dd9a779ef9bb9b4306bd6cd3c2a5bd7bd2500018b40653e0 WHIRLPOOL d0d57d8c3377b2ac807ae5293ba905cb74623695a4ab0c70a08a3a07e358f8b59edbc1283e4b6df8b81e64858a7d71cc025296af982531bffc8badc2e0b32f2f
+DIST scons-2.5.0-user.html 1111090 SHA256 f79b154c256e0b74d5b9ac099c6ce4afd146253bf9e42a463028499987307adf SHA512 650be28d9be4322b51d31c001ffce339aa926dd3aa2b59c4e16e34151c26f0aa62f9d7a7407d0bcf1ae0e5f10e2e31a5adb66a7a189afac084101c6b0dc209e4 WHIRLPOOL ea702d23fb73423f019a507898fb388276595867afd453537caed74eea6baebfdcfd770a82593b8e525dcae9df1712aa1ff6a7bbc93a24fd2a8e3d8a07db218a
+DIST scons-2.5.0-user.pdf 2527810 SHA256 bf389a8471801b554aba22e3a568e4e654db847c1815ef62a787d3d9f7f59e62 SHA512 f8572db6d2fb4e6c4814d785fcde0a2c0bbe647265bf8b8904c315cf46af60636f273843d757f630b9a70f33762cca7010c4dc475143be670ee1c008e6be9155 WHIRLPOOL 8208dfa62e1ee32ecb22610f20b1789a193c01a338835a617b3facbc875202e45ff67c911b6ed5f2b05f1c9b16bbcc222fc195dc9b9d4cbbbfd844133d67a182
+DIST scons-2.5.0.tar.gz 619991 SHA256 eb296b47f23c20aec7d87d35cfa386d3508e01d1caa3040ea6f5bbab2292ace9 SHA512 abb0069976390182b77dbf6f20819c30ccf5fe9f58032eef7694ef408dceb63cfd1d1be69e7c0bced8a179297243b1a93924dd5064cd7c123ea118619bb53572 WHIRLPOOL db06c588de670cb253e551012a3a5abd6d304fb165c6578965f3a46b12cf65745c8e7fc03d4fbccfeba51519b86f624b7bf6417ccd65a8fcb11af812b118e882
+DIST scons-2.5.1-user.html 1112180 SHA256 42c69adcc6f098e61ceb2bd1c12acbd35bf654c9341e2390d0d2191111f88c57 SHA512 5be58a6bba4b92fc51f0b271fd7e08b820dda10775aaa40a012c0e54d485e02ebf6d0d0be379bd90980a9b496e86a951c8760a4a90107fb3b8f422e874e46046 WHIRLPOOL 31b4ffee0b58bfb502c72f7e4120aeac0ddc5713bee976b18e8ac3972670ee5baa708da58bf76a9cf91b4cb9730e5a17fd775235b06cb9d4fe438a6e54f7712b
+DIST scons-2.5.1-user.pdf 2522755 SHA256 dfba0c3800854010998a8184bdc829184d5965c6638d28dd9b552c50418fd1f6 SHA512 0bd7f67a1355ec33125bef87ce1bc352bda5b0befd9809673a427851c843191d74930b4ca9add705152393521f81d926595d173b0101013da216217dc5b64397 WHIRLPOOL cdc648537a6418a4ffac513d051030c6ec68812be4962aa2242ae85b99a4ecb08e209d03035eb90414a430b859bf94d5e5912efb0223ba7e0565428471470e03
+DIST scons-2.5.1.tar.gz 620909 SHA256 0b25218ae7b46a967db42f2a53721645b3d42874a65f9552ad16ce26d30f51f2 SHA512 0e39f7f22a6c4ecc13edcd843b050754da5ded5371b3a8b406395f7b53dd280f95f804707eec271f8de3624d06f5b4ba3cc788dc4eb891cad224a163544f51b9 WHIRLPOOL b3e17c9b4d5b0b490132c6d15ffd4a32b879e2b6819f666fe29605074b0c2f48598ec0252ead76841b49c00942078b94fd43e834dea0acd317a8ac1e06554ad9
+EBUILD scons-2.3.5.ebuild 1728 SHA256 1ab1795c629b4fa530c89dc1eaeba366e73ad98d06ab088e431c8f2a0f1a1147 SHA512 e1a645980bb9e096c558a0f3925f7019ddfb6823792e81bffc632a76e45b6724866ded80502ef806a921bdc99661b3ad6f2c1809823300b7b897662cb0b975c3 WHIRLPOOL 8ff1310d1236c1b3469abfc4280b8cb091ac492966267ba46d1fac2c40dacc1fb083ee56cc50b90928e32655c3f9f93b41f06ce67637d1cfc31203f3f54ae9e5
+EBUILD scons-2.4.1.ebuild 1703 SHA256 4bf9a1e8fed173a2243722fcf63e27441bb821d614fecc7f7310d69eb28dfee4 SHA512 69f7b513981e51bf547aad20f31af7ee98b77bb11bc10257499f92ea32d4a664cf83d77cabea81a56b068f2c18a40503567611e7ba78b987d4c6de1d52648b90 WHIRLPOOL f15f022bc122181aec07d19f87d68c3fdd49f78bf4d58a8faf01295949e05d62efd745183e7d574c2b5566b0edb4ed5fbf6553eb63831472c639e0994fdff3ec
+EBUILD scons-2.5.0.ebuild 1713 SHA256 fe1efd5e004f164f55aad7384a81264a46ebd0ce6bc2d1b631f73a8701ceac0f SHA512 223a1b338295c4e1aecfe8765344ba026367ba0d2cacfb269c40a9cf880baba1cd51932c93ee70b78d3666dce97c9047fb49df0c55f74de1525b46356aadeddd WHIRLPOOL 8b178f18690493cddbe232d8f5775994e6f5c502326372bb9a5d925c215e2a2443e4fa0f9d606d102c3f7d8d095644adc99730fe67d78f6c687693c593799f05
+EBUILD scons-2.5.1.ebuild 1725 SHA256 3b5dce21cf986289d17280dc4c96fa7a776ea8dd7ae40b7b14944af1b20871b6 SHA512 a5fa3ee3607112a4985b60c1b8cba91430b46770d5bc9161b344a697bb02af5d7d109c16e268a716eba80098a0743816b6afa6abd1f38fc17736f726c14f26e3 WHIRLPOOL 66aa848d3b2460d5f9c46224bf1a17a91d75c094ccc1dd693c640c172ce646bb95188b8595b946904c702b6476af5b49445251ab1510f3675c37d360eb90d002
+MISC ChangeLog 5523 SHA256 e6c309404405c512e887249ddc1a0cfcaafb32dfc7a30e3d8223460d2dfdb431 SHA512 13d26938019a1ce44428d0889ea1762ede92528108dff4800206037a21333a3d1d18b0750b95c881cbf4538516022697b9c096ddb0a327fef38c96ea50f03266 WHIRLPOOL c3dfc0f94ed224e87b800a3025f669aea1fc84a78be2e35cda84c537fdb73bddd0c77ac84657045b9e93089b0ef92aa0326fc885f0437f6315c748c8466c3082
+MISC ChangeLog-2015 12535 SHA256 d6a731c023cd5c8980d049de917e73bbc9ad2174f216f6b1d8318cf352494bff SHA512 ce3a96d022a41a180ce4331c6143ab2a5489c8837d6effece10a57ae3c04e5e1c53c6bf2f9b454847b416dc81f3e5e0f1e2729f76df4ddd57f9b748be6322090 WHIRLPOOL 567ee01c560fbe9f0cd55ae164a240939ac25434a3237ae064989279f2a69b9cdef5a8b7b7f70119978e6d92e3ee3287eabe0a5d4f874449801674d807bf3916
+MISC metadata.xml 704 SHA256 0480a11273aa566920c082dfa4630db3c7589e382943a1785b6b4a55891aa04b SHA512 62e5c8c23f1c67c218ff6b33c1f941ac3c258b39a5b2d799bedceb734aa5b2e29a718f90823ab5bf199e9d1eb8236aefaddcbff99c6d03f58987fb4936b10aa6 WHIRLPOOL 1c2506d063a5d97e67edba3f3d96cb5b7ba17cb751a82599ec923a3687d2f12a4a2f01857ae81de9841a64dea4a2ae4461debf57ec0f1240e6255f514a8a82a9
diff --git a/dev-util/scons/files/scons-2.1.0-jython.patch b/dev-util/scons/files/scons-2.1.0-jython.patch
new file mode 100644
index 000000000000..ca04e12031e1
--- /dev/null
+++ b/dev-util/scons/files/scons-2.1.0-jython.patch
@@ -0,0 +1,13 @@
+http://scons.tigris.org/issues/show_bug.cgi?id=2791
+
+--- setup.py
++++ setup.py
+@@ -325,7 +325,7 @@
+ self.copy_scons(src, scons_version_bat)
+
+ # --- distutils copy/paste ---
+- if os.name == 'posix':
++ if hasattr(os, 'chmod'):
+ # Set the executable bits (owner, group, and world) on
+ # all the scripts we just installed.
+ for file in self.get_outputs():
diff --git a/dev-util/scons/metadata.xml b/dev-util/scons/metadata.xml
new file mode 100644
index 000000000000..979bab55bc3a
--- /dev/null
+++ b/dev-util/scons/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <longdescription lang="en">
+ SCons is a make replacement providing a range of enhanced
+ features such as automated dependency generation and built in
+ compilation cache support. SCons rule sets are Python scripts so
+ as well as the features it provides itself SCons allows you to use
+ the full power of Python to control compilation.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">scons</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/scons/scons-2.3.5.ebuild b/dev-util/scons/scons-2.3.5.ebuild
new file mode 100644
index 000000000000..2c581c3b0cbf
--- /dev/null
+++ b/dev-util/scons/scons-2.3.5.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 pypy )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc"
+
+PATCHES=( "${FILESDIR}/${PN}-2.1.0-jython.patch" )
+
+python_prepare_all() {
+ # https://bugs.gentoo.org/show_bug.cgi?id=361061
+ 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
+ # and make sure the build system doesn't "force" /usr/local/ :(
+ sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --standard-lib \
+ --no-version-script \
+ --install-data "${EPREFIX}"/usr/share
+}
+
+python_install_all() {
+ local DOCS=( {CHANGES,README,RELEASE}.txt )
+ distutils-r1_python_install_all
+
+ use doc && dodoc "${DISTDIR}"/${P}-user.{pdf,html}
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Build system does not use build_scripts properly.
+ # http://scons.tigris.org/issues/show_bug.cgi?id=2891
+ python_replicate_script "${ED}"usr/bin/scons{,ign,-time}
+}
diff --git a/dev-util/scons/scons-2.4.1.ebuild b/dev-util/scons/scons-2.4.1.ebuild
new file mode 100644
index 000000000000..68b9b393ddfa
--- /dev/null
+++ b/dev-util/scons/scons-2.4.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 pypy )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+#PATCHES=( )
+
+python_prepare_all() {
+ # https://bugs.gentoo.org/show_bug.cgi?id=361061
+ 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
+ # and make sure the build system doesn't "force" /usr/local/ :(
+ sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --standard-lib \
+ --no-version-script \
+ --install-data "${EPREFIX}"/usr/share
+}
+
+python_install_all() {
+ local DOCS=( {CHANGES,README,RELEASE}.txt )
+ distutils-r1_python_install_all
+
+ use doc && dodoc "${DISTDIR}"/${P}-user.{pdf,html}
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Build system does not use build_scripts properly.
+ # http://scons.tigris.org/issues/show_bug.cgi?id=2891
+ python_replicate_script "${ED}"usr/bin/scons{,ign,-time}
+}
diff --git a/dev-util/scons/scons-2.5.0.ebuild b/dev-util/scons/scons-2.5.0.ebuild
new file mode 100644
index 000000000000..1229463da8c0
--- /dev/null
+++ b/dev-util/scons/scons-2.5.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 pypy )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+#PATCHES=( )
+
+python_prepare_all() {
+ # https://bugs.gentoo.org/show_bug.cgi?id=361061
+ 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
+ # and make sure the build system doesn't "force" /usr/local/ :(
+ sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --standard-lib \
+ --no-version-script \
+ --install-data "${EPREFIX}"/usr/share
+}
+
+python_install_all() {
+ local DOCS=( {CHANGES,README,RELEASE}.txt )
+ distutils-r1_python_install_all
+
+ use doc && dodoc "${DISTDIR}"/${P}-user.{pdf,html}
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Build system does not use build_scripts properly.
+ # http://scons.tigris.org/issues/show_bug.cgi?id=2891
+ python_replicate_script "${ED}"usr/bin/scons{,ign,-time}
+}
diff --git a/dev-util/scons/scons-2.5.1.ebuild b/dev-util/scons/scons-2.5.1.ebuild
new file mode 100644
index 000000000000..d377f041389e
--- /dev/null
+++ b/dev-util/scons/scons-2.5.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 pypy )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+#PATCHES=( )
+
+python_prepare_all() {
+ # https://bugs.gentoo.org/show_bug.cgi?id=361061
+ 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
+ # and make sure the build system doesn't "force" /usr/local/ :(
+ sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --standard-lib \
+ --no-version-script \
+ --install-data "${EPREFIX}"/usr/share
+}
+
+python_install_all() {
+ local DOCS=( {CHANGES,README,RELEASE}.txt )
+ distutils-r1_python_install_all
+
+ use doc && dodoc "${DISTDIR}"/${P}-user.{pdf,html}
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Build system does not use build_scripts properly.
+ # http://scons.tigris.org/issues/show_bug.cgi?id=2891
+ python_replicate_script "${ED}"usr/bin/scons{,ign,-time}
+}