/[gentoo-x86]/dev-python/snakeoil/snakeoil-0.4.6.ebuild
Gentoo

Contents of /dev-python/snakeoil/snakeoil-0.4.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 30 07:33:09 2012 UTC (7 months, 2 weeks ago) by ferringb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Pull in snakeoil 0.5.1

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/snakeoil-0.4.6.ebuild,v 1.1 2011/12/14 10:31:38 ferringb Exp $
4
5 EAPI="2"
6 SUPPORT_PYTHON_ABIS="1"
7
8 inherit distutils
9
10 DESCRIPTION="Miscellaneous python utility code."
11 HOMEPAGE="http://snakeoil.googlecode.com/"
12 SRC_URI="http://snakeoil.googlecode.com/files/${P}.tar.bz2"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
17 IUSE=""
18
19 DOCS="AUTHORS NEWS"
20
21 pkg_setup() {
22 # disable snakeoil 2to3 caching
23 unset PY2TO3_CACHEDIR
24 python_pkg_setup
25
26 # A hack to install for all versions of Python in the system.
27 # pkgcore needs it to support upgrading to a different Python slot.
28 PYTHON_ABIS=""
29 local python_interpreter
30 for python_interpreter in /usr/bin/python{2.[4-9],3.[1-9]}; do
31 if [[ -x "${python_interpreter}" ]]; then
32 PYTHON_ABIS+=" ${python_interpreter#/usr/bin/python}"
33 fi
34 done
35 export PYTHON_ABIS="${PYTHON_ABIS# }"
36 }
37
38 src_test() {
39 testing() {
40 local tempdir
41 tempdir="${T}/tests/python-${PYTHON_ABI}"
42 mkdir -p "${tempdir}" || die "tempdir creation failed"
43 cp -r "${S}" "${tempdir}" || die "test copy failed"
44 cd "${tempdir}/${P}"
45 PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test
46 }
47 python_execute_function testing
48 }
49
50 src_install() {
51 distutils_src_install
52 }

  ViewVC Help
Powered by ViewVC 1.1.13