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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Oct 18 12:14:59 2012 UTC (7 months ago) by ferringb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
pull in snakeoil 0.5.2; py3k doc building fix

(Portage version: 2.1.11.23/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.13