diff options
author | Tim Harder <radhermit@gentoo.org> | 2013-08-27 22:19:53 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2013-08-27 22:19:53 +0000 |
commit | 8546d5793a20af4e95802bd42c41a9313eeba62c (patch) | |
tree | c74786a94c7fca7dd12baf5122bcacccc2c34017 /dev-python/snakeoil | |
parent | remove geoclue[skyhook] mask since it is masked in all bsd profiles (diff) | |
download | gentoo-2-8546d5793a20af4e95802bd42c41a9313eeba62c.tar.gz gentoo-2-8546d5793a20af4e95802bd42c41a9313eeba62c.tar.bz2 gentoo-2-8546d5793a20af4e95802bd42c41a9313eeba62c.zip |
Convert to distutils-r1 (patch by mgorny).
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-python/snakeoil')
-rw-r--r-- | dev-python/snakeoil/ChangeLog | 5 | ||||
-rw-r--r-- | dev-python/snakeoil/snakeoil-9999.ebuild | 43 |
2 files changed, 13 insertions, 35 deletions
diff --git a/dev-python/snakeoil/ChangeLog b/dev-python/snakeoil/ChangeLog index f21ee2f0d3f6..a0f847518bf8 100644 --- a/dev-python/snakeoil/ChangeLog +++ b/dev-python/snakeoil/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-python/snakeoil # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/ChangeLog,v 1.59 2013/06/17 18:45:15 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/ChangeLog,v 1.60 2013/08/27 22:19:53 radhermit Exp $ + + 27 Aug 2013; Tim Harder <radhermit@gentoo.org> snakeoil-9999.ebuild: + Convert to distutils-r1 (patch by mgorny). 17 Jun 2013; Tim Harder <radhermit@gentoo.org> metadata.xml: Add myself as a maintainer. diff --git a/dev-python/snakeoil/snakeoil-9999.ebuild b/dev-python/snakeoil/snakeoil-9999.ebuild index 1a5e0a8df463..02dd39065179 100644 --- a/dev-python/snakeoil/snakeoil-9999.ebuild +++ b/dev-python/snakeoil/snakeoil-9999.ebuild @@ -1,17 +1,14 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/snakeoil-9999.ebuild,v 1.3 2012/10/18 12:18:50 ferringb Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/snakeoil-9999.ebuild,v 1.4 2013/08/27 22:19:53 radhermit Exp $ -EAPI="2" -SUPPORT_PYTHON_ABIS="1" - -PYTHON_ABI="2.5 2.6 2.7 3.1 3.2" -EGIT_REPO_URI="https://code.google.com/p/snakeoil/" -inherit distutils git-2 +EAPI=4 +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) +inherit distutils-r1 git-2 DESCRIPTION="Miscellaneous python utility code." HOMEPAGE="http://snakeoil.googlecode.com/" -SRC_URI="" +EGIT_REPO_URI="https://code.google.com/p/snakeoil/" LICENSE="BSD" SLOT="0" @@ -21,33 +18,11 @@ IUSE="" DEPEND="!<sys-apps/pkgcore-0.4.7.8" RDEPEND=${DEPEND} -DOCS="AUTHORS NEWS" - -pkg_setup() { +python_configure_all() { # disable snakeoil 2to3 caching unset PY2TO3_CACHEDIR - python_pkg_setup - - # A hack to install for all versions of Python in the system. - # pkgcore needs it to support upgrading to a different Python slot. - PYTHON_ABIS="" - local python_interpreter - for python_interpreter in /usr/bin/python{2.[4-9],3.[1-9]}; do - if [[ -x "${python_interpreter}" ]]; then - PYTHON_ABIS+=" ${python_interpreter#/usr/bin/python}" - fi - done - export PYTHON_ABIS="${PYTHON_ABIS# }" } -src_test() { - testing() { - local tempdir - tempdir="${T}/tests/python-${PYTHON_ABI}" - mkdir -p "${tempdir}" || die "tempdir creation failed" - cp -r "${S}" "${tempdir}" || die "test copy failed" - cd "${tempdir}/${P}" - PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test - } - python_execute_function testing +python_test() { + esetup.py test } |