diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-16 20:32:20 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-16 20:32:20 +0000 |
commit | abe1212bc744f4cc72a49afb5b2a6b7fedc61237 (patch) | |
tree | b5c6d26a8f8d592c9d30bc48968de55ff78784ce /dev-python/gnosis-utils | |
parent | clean out big x11-drivers/ package.mask entry, packages are gone from portage (diff) | |
download | gentoo-2-abe1212bc744f4cc72a49afb5b2a6b7fedc61237.tar.gz gentoo-2-abe1212bc744f4cc72a49afb5b2a6b7fedc61237.tar.bz2 gentoo-2-abe1212bc744f4cc72a49afb5b2a6b7fedc61237.zip |
Version bump. Set SUPPORT_PYTHON_ABIS.
(Portage version: 14070-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/gnosis-utils')
-rw-r--r-- | dev-python/gnosis-utils/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/gnosis-utils/files/gnosis-utils-1.2.2-setup.py.patch | 30 | ||||
-rw-r--r-- | dev-python/gnosis-utils/gnosis-utils-1.2.2.ebuild | 62 |
3 files changed, 99 insertions, 1 deletions
diff --git a/dev-python/gnosis-utils/ChangeLog b/dev-python/gnosis-utils/ChangeLog index 9562e14e3417..d79ffee4f1d6 100644 --- a/dev-python/gnosis-utils/ChangeLog +++ b/dev-python/gnosis-utils/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/gnosis-utils # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/gnosis-utils/ChangeLog,v 1.14 2009/08/14 21:02:01 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/gnosis-utils/ChangeLog,v 1.15 2009/08/16 20:32:20 arfrever Exp $ + +*gnosis-utils-1.2.2 (16 Aug 2009) + + 16 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +gnosis-utils-1.2.2.ebuild, +files/gnosis-utils-1.2.2-setup.py.patch: + Version bump. Set SUPPORT_PYTHON_ABIS. 14 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> gnosis-utils-1.2.1.ebuild: diff --git a/dev-python/gnosis-utils/files/gnosis-utils-1.2.2-setup.py.patch b/dev-python/gnosis-utils/files/gnosis-utils-1.2.2-setup.py.patch new file mode 100644 index 000000000000..18c690135fcc --- /dev/null +++ b/dev-python/gnosis-utils/files/gnosis-utils-1.2.2-setup.py.patch @@ -0,0 +1,30 @@ +--- setup.py ++++ setup.py +@@ -205,7 +205,7 @@ + copy_all_files = 1 + + def copy_extra_files(): +- destroot = glob(os.path.join('build','lib'))[0] ++ destroot = glob(os.path.join('build-' + os.environ['EPYTHON'][6:],'lib'))[0] + + # go through MANIFEST to see what is supposed to be under build directory + print "Copying extra files to %s ..." % destroot +@@ -413,18 +413,6 @@ + + sys.exit(0) + +-if 'install' in sys.argv: +- +- #if not os.path.isdir('build'): +- #print "** Please run build command first **" +- #sys.exit(1) +- # os.system('%s setup.py build' % sys.executable) +- +- # make sure it's a clean build! +- os.system('%s setup.py build' % sys.executable) +- +- # fall through to do_setup() +- + if 'install_all' in sys.argv: + from disthelper.find_python import get_python_verlist + diff --git a/dev-python/gnosis-utils/gnosis-utils-1.2.2.ebuild b/dev-python/gnosis-utils/gnosis-utils-1.2.2.ebuild new file mode 100644 index 000000000000..cc3855c0227d --- /dev/null +++ b/dev-python/gnosis-utils/gnosis-utils-1.2.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/gnosis-utils/gnosis-utils-1.2.2.ebuild,v 1.1 2009/08/16 20:32:20 arfrever Exp $ + +EAPI="2" +NEED_PYTHON="2.1" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils eutils + +MY_P=Gnosis_Utils-${PV} + +DESCRIPTION="XML pickling and objectification with Python." +SRC_URI="http://www.gnosis.cx/download/${MY_P}.tar.gz" +HOMEPAGE="http://www.gnosis.cx/download/" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~x86" +LICENSE="PYTHON" +IUSE="" + +DEPEND="" +RDEPEND="" + +RESTRICT_PYTHON_ABIS="3*" + +PYTHON_MODNAME="gnosis" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + distutils_src_prepare + + epatch "${FILESDIR}/${P}-setup.py.patch" + + # This setup.py installs files according to the MANIFEST. + # MANIFEST shouldn't be installed to avoid collisions. + rm -f MANIFEST || die "rm failed" + sed -i \ + -e "/MANIFEST/d" \ + -e "/gnosis\/doc/d" \ + MANIFEST.in || die "sed failed" + + sed -e "s/with/with_/" -i gnosis/util/convert/pyfontify.py || die "sed failed" +} + +src_test() { + testing() { + cd "${S}"/gnosis/xml/pickle/test + PYTHONPATH="${S}/build-${PYTHON_ABI}/lib" "$(PYTHON)" test_all.py + } + python_execute_function testing +} + +src_install() { + dodoc README gnosis/doc/{*.txt,readme,GETTING_HELP,*ANNOUNCE} + newdoc gnosis/anon/README README.anon + newdoc gnosis/xml/relax/README README.relax.xml + + distutils_src_install + + rm -f "${D}"usr/lib*/python*/site-packages/README +} |