--- /dev/null
+# ChangeLog for dev-util/scons
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/scons/ChangeLog,v 1.82 2010/07/18 18:00:16 ssuominen Exp $
+
+*scons-2.0.1 (06 Sep 2010)
+
+ 06 Sep 2010; W. Trevor King <wking@gentoo.org>
+ +scons-2.0.1.ebuild:
+ Version bump.
+
+ 18 Jul 2010; Samuli Suominen <ssuominen@gentoo.org>
+ scons-1.3.0_p20100501.ebuild:
+ ppc64 stable wrt #326241
+
+ 18 Jul 2010; Raúl Porcel <armin76@gentoo.org>
+ scons-1.3.0_p20100501.ebuild:
+ alpha/ia64/sparc stable wrt #326241
+
+ 10 Jul 2010; Christian Faulhammer <fauli@gentoo.org>
+ scons-1.3.0_p20100501.ebuild:
+ stable x86, bug 326241
+
+ 06 Jul 2010; Markos Chandras <hwoarang@gentoo.org>
+ scons-1.3.0_p20100501.ebuild:
+ Stable on amd64 wrt bug #326241
+
+ 25 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ scons-1.3.0_p20100501.ebuild:
+ Use Python 2.
+
+*scons-1.3.0_p20100501 (19 May 2010)
+
+ 19 May 2010; Krzysztof Pawlik <nelchael@gentoo.org>
+ +scons-1.3.0_p20100501.ebuild:
+ Version bump.
+
+ 08 Feb 2010; Peter Volkov <pva@gentoo.org> scons-1.2.0-r1.ebuild,
+ scons-1.2.0_p20091224.ebuild:
+ Add inherit eutils for epatch.
+
+ 08 Jan 2010; Dirkjan Ochtman <djc@gentoo.org>
+ scons-1.2.0_p20091224.ebuild:
+ Replace incorrect usage of P by PN-PV (bug 300076).
+
+*scons-1.2.0_p20091224 (04 Jan 2010)
+
+ 04 Jan 2010; Dirkjan Ochtman <djc@gentoo.org>
+ +scons-1.2.0_p20091224.ebuild:
+ Bump to 1.2.0.d20091224. Thanks to Johan Bergstroem for the patch.
+
+ 12 Apr 2009; Brent Baude <ranger@gentoo.org> scons-1.2.0-r1.ebuild:
+ stable ppc64, bug 264537
+
+ 11 Apr 2009; nixnut <nixnut@gentoo.org> scons-1.2.0-r1.ebuild:
+ ppc stable #264537
+
+ 10 Apr 2009; Raúl Porcel <armin76@gentoo.org> scons-1.2.0-r1.ebuild:
+ ia64/sparc stable wrt #264537
+
+ 08 Apr 2009; Jeroen Roovers <jer@gentoo.org> scons-1.2.0-r1.ebuild:
+ Stable for HPPA (bug #264537).
+
+ 07 Apr 2009; Tobias Klausmann <klausman@gentoo.org> scons-1.2.0-r1.ebuild:
+ Stable on alpha, bug #264537
+
+ 05 Apr 2009; Markus Meier <maekke@gentoo.org> scons-1.2.0-r1.ebuild:
+ amd64/x86 stable, bug #264537
+
+*scons-1.2.0-r1 (07 Mar 2009)
+
+ 07 Mar 2009; Jesus Rivero <neurogeek@gentoo.org> -scons-1.2.0.ebuild,
+ +scons-1.2.0-r1.ebuild:
+ Version bump. Added threads use dep. Close bug #261156. Removed old
+ version.
+
+*scons-1.2.0 (15 Jan 2009)
+
+ 15 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/scons-1.2.0-links.patch, +files/scons-1.2.0-popen.patch,
+ metadata.xml, +scons-1.2.0.ebuild:
+ Version bump and updated description
+
+ 02 Dec 2008; Brent Baude <ranger@gentoo.org> scons-1.0.0.ebuild:
+ stable ppc64, bug 242766
+
+ 27 Oct 2008; Jeroen Roovers <jer@gentoo.org> scons-1.0.0.ebuild:
+ Stable for HPPA (bug #242766).
+
+ 25 Oct 2008; nixnut <nixnut@gentoo.org> scons-1.0.0.ebuild:
+ Stable on ppc wrt bug 242766
+
+ 21 Oct 2008; Raúl Porcel <armin76@gentoo.org> scons-1.0.0.ebuild:
+ alpha/ia64/sparc stable wrt #242766
+
+ 19 Oct 2008; Markus Meier <maekke@gentoo.org> scons-1.0.0.ebuild:
+ amd64/x86 stable, bug #242766
+
+*scons-1.0.0 (19 Aug 2008)
+
+ 19 Aug 2008; Jesus Rivero <neurogeek@gentoo.org> scons-0.97.ebuild,
+ -scons-0.98.3.ebuild, -scons-0.98.4.ebuild, -scons-0.98.5.ebuild,
+ +scons-1.0.0.ebuild:
+ Version bump. Removed old versions. Fixed 0.97 ebuild and this closes bug
+ #107013
+
+*scons-0.98.5 (19 Jul 2008)
+
+ 19 Jul 2008; Ali Polatel <hawking@gentoo.org> +scons-0.98.5.ebuild:
+ Version bump.
+
+ 14 Jun 2008; Zac Medico <zmedico@gentoo.org> scons-0.97.ebuild,
+ scons-0.98.3.ebuild, scons-0.98.4.ebuild:
+ Bug #226505 - For compatibity with phase execution order in
+ >=portage-2.1.5, call has_version inside pkg_preinst instead of
+ pkg_postinst.
+
+*scons-0.98.4 (29 May 2008)
+
+ 29 May 2008; Ali Polatel <hawking@gentoo.org> -scons-0.96.1.ebuild,
+ -scons-0.96.94.ebuild, +scons-0.98.4.ebuild:
+ Version bump. Drop old.
+
--- /dev/null
+AUX scons-1.2.0-links.patch 991 RMD160 f12673b29464ce1cf95bf0f0903a6364fcd322fb SHA1 a12efc0e34b7acafe93e37b154cec454eec9d067 SHA256 a0cce0038c7efbba26e8d148e7f41db54d780d5ca1c0dd0d8b2711bc26cc4c7f
+AUX scons-1.2.0-popen.patch 1826 RMD160 33d195bffbcb2f5280d04c1742f082f82e761bdb SHA1 ba24a0b73f6671d8ec4a44c31691a98b6dba080f SHA256 84a3bc1ba70fe60cc483d0186703b303daeb7bed246f21e3db9227c255afd312
+DIST scons-1.2.0-user.html 794753 RMD160 e4fe64a61e142404c7ed3213628372e2ee4b15ac SHA1 6d14eace90ae046055ea97e1327175fa3aa62248 SHA256 f85b56abdff52ff743e8339ee7a3d38b664c84e9e6086a65acf3b9f119f4ebf0
+DIST scons-1.2.0-user.pdf 1779906 RMD160 7bacdc6dbe5525b7ec78699113b3251c55121dba SHA1 9a8f60f4ead6f3b246a8e8b599ef064e8df61300 SHA256 48f26fa77d0342459fd4684e1010dd23de4e091c307566068964d4a381bce295
+DIST scons-1.2.0.d20091224.tar.gz 594638 RMD160 31be5bcaa644e325e0085c3c1524f2913a07612b SHA1 c43a9ff794ce23dcec13e44a0e9dc1f8c2ca7623 SHA256 098f0f93fbaeac1f593e94d6c201111e022c388e95d5a266b99b4ba58d6f084f
+DIST scons-1.2.0.tar.gz 568974 RMD160 69c1fcc7c3af55c801f26fc7370dd01a17dc2327 SHA1 cd6be8698a384ea2ac4f5191cef94f57b2f84bbb SHA256 2806451e02a42789decb6d08098b798b6b81a0a39d8d3b2fbdd3fe84ebd8a246
+DIST scons-1.2.0_p20091224-user.html 823237 RMD160 8885f5a24345345bc2cbc5bcd3bf6b433687a301 SHA1 a4d9f7504268e284206d737672bc89b5dae11dc2 SHA256 08523d45c699217581585e914ca37498305816379e9ad1a645a65a2f002e699f
+DIST scons-1.2.0_p20091224-user.pdf 1837614 RMD160 f5f94c0a990e5c9f7618e71717e6d6dc54819e96 SHA1 efb5369b925c19de7ed670e3edeb223d7818f7f5 SHA256 71db955fda57b701277793aafb54bc4c7a9a9994f58d7fcdbc8a6f244b1c259b
+DIST scons-1.3.0.d20100501.tar.gz 598629 RMD160 247f66990e5903ba9f198a3db8c5116734d297bd SHA1 11645f7182a00572106d18a083575cab7ffe5f68 SHA256 2f71af136092989a60072712b81d95bf7858ee164b967be155c96a595db211dc
+DIST scons-1.3.0_p20100501-user.html 813279 RMD160 5f197c0fb632d9073a0369c4c7be7122b1eac5c4 SHA1 a3c3111b91a9d3794aa30f0938e62f5bf082943f SHA256 56be73c7f596661a53453c7030a8acf7ceb0c8d0291e87608ac09c6a92c2edde
+DIST scons-1.3.0_p20100501-user.pdf 1828262 RMD160 96816933800d6da56487f9f4151c6929a4669b46 SHA1 684f18490e4a8e18f1611b6abb781cd78436fe69 SHA256 f285ec4dc821439cddaf27b54f93e56ce75a4034ee7734a013c9af430df993a8
+DIST scons-2.0.1-user.html 820975 RMD160 6ddf70a7ed0403816ae5e1f42f95a71d144770cc SHA1 acfd3d24797d9e5ddde2155158fe6bd2c706f7e7 SHA256 3016ff013d8422bdbb98b39d1810f8c707c59b66ace38d3b81421466053c83b5
+DIST scons-2.0.1-user.pdf 1841747 RMD160 178da2a01782443a497bc158ae7c5a3423ff82dc SHA1 b91906f3446a6b81325af6985eeca27db71db4da SHA256 2fbd518c51d9221cdfba98145c047726960c681233c0802641aeb90fc62450c7
+DIST scons-2.0.1.tar.gz 559293 RMD160 c191a1b49e1b91a5121fb5cac7ccf28379474a8a SHA1 f9183f1b29cb94b48bb3175608831276e60b8fc5 SHA256 0a8151da41c4a26c776c84f44f747ce03e093d43be3e83b38c14a76ab3256762
+EBUILD scons-1.2.0-r1.ebuild 1215 RMD160 27d626c95bfa93194d65445ddec8db4eddcd76e6 SHA1 54d2f4e68e654f08e09717063a25aadde8226ee4 SHA256 ac2f6b8c59a7f4c3b195a521ce55f64e412665780e0879d541a2286b7e26add8
+EBUILD scons-1.2.0_p20091224.ebuild 1263 RMD160 d7bd619e59f3979b74a8d19fea5d69b1fb65bc41 SHA1 b2ebaaf56a63706ad08aa8a4ddc768c93aa7a666 SHA256 929db5393f537b67814cc188be68302992b1f8085b6b62845ef417725f8a4bb3
+EBUILD scons-1.3.0_p20100501.ebuild 1426 RMD160 f33ceb9cc260dc6724d28b87e2f59487d0412e86 SHA1 610d427a6fc4416b9fbf5a5dabca2ad5ee7b85da SHA256 fc39028a7620cf606ae9865daef021353ddb19bcbc1b2a9303c186b526f36af3
+EBUILD scons-2.0.1.ebuild 1319 RMD160 c55021064c9c78c1025a4cecc184bd7f18808091 SHA1 78312e679754967198d90c17517e68acbd58beaa SHA256 d55e9dbc701b99a9d128730cc6b2b0acabafe9a44b89606ab7d3fd61119e04f1
+MISC ChangeLog 3874 RMD160 555bc1d4a87717df68405a450b32015300ecfbe6 SHA1 70b5d0a9c8ee85f04b135242bf64238109a54137 SHA256 a1c619961c73c910fb3adb35fc0991ae4c264054aaeabc70e567b811d605afc1
+MISC metadata.xml 638 RMD160 313c3b4020d391dd897fb124fd3ae7148e4d25f4 SHA1 2ba17518173dc79962c08f88dc495ade267e443c SHA256 8e7b7a43fc5e94c0c0d538aa07cf5e4b37bc5d9ef688bf8f7870395d2504b7cf
--- /dev/null
+--- engine/SCons/Script/Main.py.orig 2009-01-15 11:07:33.000000000 +0000
++++ engine/SCons/Script/Main.py 2009-01-15 11:09:12.000000000 +0000
+@@ -328,6 +328,10 @@
+ # then delete dir itself
+ if remove: os.rmdir(path)
+ display("Removed directory " + pathstr)
++ else:
++ if os.path.islink(path):
++ if remove: os.unlink(path)
++ display("Removed " + pathstr)
+ except (IOError, OSError), e:
+ print "scons: Could not remove '%s':" % pathstr, e.strerror
+
+--- engine/SCons/Tool/javac.py.orig 2009-01-15 11:05:46.000000000 +0000
++++ engine/SCons/Tool/javac.py 2009-01-15 11:06:41.000000000 +0000
+@@ -94,6 +94,8 @@
+ version = env.get('JAVAVERSION', '1.4')
+ full_tlist = []
+ for f in slist:
++ if not os.path.exists(f.rfile().get_abspath()):
++ continue
+ tlist = []
+ source_file_based = True
+ pkg_dir = None
--- /dev/null
+--- engine/SCons/compat/__init__.py (revision 2695)
++++ engine/SCons/compat/__init__.py (working copy)
+@@ -167,11 +167,17 @@
+ del shlex
+ import_as('_scons_shlex', 'shlex')
+
+-try:
+- import subprocess
+-except ImportError:
+- # Pre-2.4 Python has no subprocess module.
+- import_as('_scons_subprocess', 'subprocess')
++#try:
++# import subprocess
++#except ImportError:
++# # Pre-2.4 Python has no subprocess module.
++# import_as('_scons_subprocess', 'subprocess')
++
++# Import subprocess unconditionally to avoid possible race conditions in
++# the official subprocess API. If there are API versions without known
++# problems, we can version-check and use the original subprocess module
++# in these cases.
++import_as('_scons_subprocess', 'subprocess')
+
+ import sys
+ try:
+
+
+--- engine/SCons/compat/_scons_subprocess.py (revision 2695)
++++ engine/SCons/compat/_scons_subprocess.py (working copy)
+@@ -581,13 +581,19 @@
+ class object:
+ pass
+
++import thread
++lock = thread.allocate_lock()
++
+ class Popen(object):
+ def __init__(self, args, bufsize=0, executable=None,
+ stdin=None, stdout=None, stderr=None,
+ preexec_fn=None, close_fds=False, shell=False,
+ cwd=None, env=None, universal_newlines=False,
+ startupinfo=None, creationflags=0):
+- """Create new Popen instance."""
++ """Create new Popen instance.
++ Popen is not thread-safe and is therefore protected with a lock.
++ """
++ lock.acquire()
+ _cleanup()
+
+ self._child_created = False
+@@ -655,6 +661,7 @@
+ self.stderr = os.fdopen(errread, 'rU', bufsize)
+ else:
+ self.stderr = os.fdopen(errread, 'rb', bufsize)
++ lock.release()
+
+
+ def _translate_newlines(self, data):
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <maintainer>
+ <email>python@gentoo.org</email>
+ <name>Python Project Team</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>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/scons/scons-1.2.0-r1.ebuild,v 1.8 2010/02/08 08:55:09 pva Exp $
+
+EAPI=2
+inherit eutils distutils
+
+DESCRIPTION="Extensible Python-based build utility"
+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 )"
+
+HOMEPAGE="http://www.scons.org/"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="doc"
+DEPEND=">=dev-lang/python-2.5[threads]"
+DOCS="RELEASE.txt CHANGES.txt"
+
+src_prepare() {
+ # from debian, fix links and removes
+ epatch "${FILESDIR}"/${P}-links.patch
+ epatch "${FILESDIR}"/${P}-popen.patch
+}
+
+src_install () {
+ distutils_src_install
+ # move man pages from /usr/man to /usr/share/man
+ dodir /usr/share
+ mv "${D}"/usr/man "${D}"/usr/share
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins "${DISTDIR}"/${P}-user.{pdf,html}
+ fi
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/$(get_libdir)/${P}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/${P}
+}
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/scons/scons-1.2.0_p20091224.ebuild,v 1.3 2010/02/08 08:55:09 pva Exp $
+
+EAPI=2
+
+inherit eutils distutils
+
+MY_PV=${PV/_p/.d}
+
+DESCRIPTION="Extensible Python-based build utility"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz
+ doc? ( http://www.scons.org/doc/${MY_PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${MY_PV}/HTML/${PN}-user.html -> ${P}-user.html )"
+
+HOMEPAGE="http://www.scons.org/"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="doc"
+DEPEND=">=dev-lang/python-2.5[threads]"
+RDEPEND=${DEPEND}
+DOCS="RELEASE.txt CHANGES.txt"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/scons-1.2.0-popen.patch
+}
+
+src_install () {
+ distutils_src_install
+ # move man pages from /usr/man to /usr/share/man
+ dodir /usr/share
+ mv "${D}"/usr/man "${D}"/usr/share
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins "${DISTDIR}"/${P}-user.{pdf,html}
+ fi
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/$(get_libdir)/${PN}-${MY_PV}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/${PN}-${MY_PV}
+}
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/scons/scons-1.3.0_p20100501.ebuild,v 1.6 2010/07/18 18:00:16 ssuominen Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+PYTHON_USE_WITH="threads"
+
+inherit distutils eutils
+
+MY_PV="${PV/_p/.d}"
+DOC_PV="${PV/_p*/}"
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz
+ doc? (
+ http://www.scons.org/doc/${DOC_PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${DOC_PV}/HTML/${PN}-user.html -> ${P}-user.html
+ )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ~mips ~ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="doc"
+
+DEPEND=""
+RDEPEND=""
+
+DOCS="CHANGES.txt RELEASE.txt"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ distutils_src_prepare
+ epatch "${FILESDIR}/scons-1.2.0-popen.patch"
+}
+
+src_install () {
+ distutils_src_install
+ python_convert_shebangs -r 2 "${ED}"
+
+ # Move man pages from /usr/man to /usr/share/man
+ dodir /usr/share
+ mv "${ED}usr/man" "${ED}usr/share"
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins "${DISTDIR}"/${P}-user.{pdf,html}
+ fi
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/$(get_libdir)/${PN}-${MY_PV}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/${PN}-${MY_PV}
+}
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+PYTHON_USE_WITH="threads"
+
+inherit distutils eutils
+
+MY_PV="${PV/_p/.d}"
+DOC_PV="${PV/_p*/}"
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz
+ doc? (
+ http://www.scons.org/doc/${DOC_PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${DOC_PV}/HTML/${PN}-user.html -> ${P}-user.html
+ )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ~mips ~ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="doc"
+
+DEPEND=""
+RDEPEND=""
+
+DOCS="CHANGES.txt RELEASE.txt"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ distutils_src_prepare
+ #epatch "${FILESDIR}/scons-1.2.0-popen.patch"
+}
+
+src_install () {
+ distutils_src_install
+ python_convert_shebangs -r 2 "${ED}"
+
+ # Move man pages from /usr/man to /usr/share/man
+ dodir /usr/share
+ mv "${ED}usr/man" "${ED}usr/share"
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins "${DISTDIR}"/${P}-user.{pdf,html}
+ fi
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/$(get_libdir)/${PN}-${MY_PV}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/${PN}-${MY_PV}
+}