/[gentoo-x86]/dev-python/subunit/subunit-0.0.16.ebuild
Gentoo

Contents of /dev-python/subunit/subunit-0.0.16.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Wed Apr 8 08:04:59 2015 UTC (5 years, 3 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +2 -2 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/subunit/subunit-0.0.16.ebuild,v 1.13 2015/01/04 15:41:15 dilfridge Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_3} pypy )
8
9 inherit distutils-r1 eutils
10
11 DESCRIPTION="A streaming protocol for test results"
12 HOMEPAGE="https://launchpad.net/subunit http://pypi.python.org/pypi/python-subunit"
13 SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
14
15 LICENSE="Apache-2.0 BSD"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 x86 ~x86-fbsd"
18 #need to keyword the following in =dev-python/extras-0.0.3 then readd the keywords here
19 #ia64 s390 sh sparc amd64-fbsd
20 IUSE="static-libs"
21
22 RDEPEND=">=dev-python/testtools-0.9.34[${PYTHON_USEDEP}]
23 dev-python/extras[${PYTHON_USEDEP}]"
24 DEPEND="${RDEPEND}
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 dev-lang/perl:=
27 dev-libs/check
28 dev-util/cppunit
29 virtual/pkgconfig"
30
31 src_configure() {
32 econf --enable-shared $(use_enable static-libs static)
33 distutils-r1_src_configure
34 }
35
36 src_compile() {
37 emake
38 distutils-r1_src_compile
39 }
40
41 python_test() {
42 local -x PATH="${PWD}/shell/share:${PATH}"
43 local -x PYTHONPATH=python
44 "${PYTHON}" -m testtools.run all_tests.test_suite || die "Testing failed with ${EPYTHON}"
45 }
46
47 src_install() {
48 local targets=(
49 install-include_subunitHEADERS
50 install-pcdataDATA
51 install-exec-local
52 install-libLTLIBRARIES
53 )
54 emake DESTDIR="${D}" "${targets[@]}"
55 prune_libtool_files
56 distutils-r1_src_install
57 }

  ViewVC Help
Powered by ViewVC 1.1.20