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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jun 26 12:45:31 2015 UTC (5 years, 1 month ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Version Bump

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

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-1.0.0.ebuild,v 1.1 2015/03/26 06:39:42 idella4 Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
8
9 inherit distutils-r1 eutils multilib-minimal
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 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
18 IUSE="static-libs test"
19
20 RDEPEND=">=dev-python/testtools-0.9.34[${PYTHON_USEDEP}]
21 dev-python/extras[${PYTHON_USEDEP}]"
22 DEPEND="${RDEPEND}
23 dev-python/setuptools[${PYTHON_USEDEP}]
24 dev-lang/perl:=
25 >=dev-libs/check-0.9.11[${MULTILIB_USEDEP}]
26 >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}]
27 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
28 test? ( dev-python/testscenarios[${PYTHON_USEDEP}] )"
29
30 # Take out rogue & trivial failing tests that exit the suite before it even gets started
31 # The removed class in fact works fine in py3 and fails with py2.7 & pupu
32 # The setu to restrict this patch is just those 2 is not worth it.
33 PATCHES=( "${FILESDIR}"/1.0.0-tests.patch )
34
35 src_prepare() {
36 sed -i -e 's/os.chdir(os.path.dirname(__file__))//' setup.py || die
37
38 # Install perl modules in vendor_perl, bug 534654.
39 export INSTALLDIRS=vendor
40
41 # needed for perl modules
42 distutils-r1_src_prepare
43 multilib_copy_sources
44 }
45
46 multilib_src_configure() {
47 ECONF_SOURCE=${S} \
48 econf \
49 --enable-shared \
50 $(use_enable static-libs static)
51 }
52
53 multilib_src_compile() {
54 default
55 multilib_is_native_abi && distutils-r1_src_compile
56 }
57
58 python_test() {
59 local -x PATH="${PWD}/shell/share:${PATH}"
60 local -x PYTHONPATH=python
61 # Following tests are known to fail in py2.7 & pypy. They pass under py3.
62 # DO NOT re-file
63 # test_add_error test_add_error_details test_add_expected_failure
64 # test_add_expected_failure_details test_add_failure test_add_failure
65 # https://bugs.launchpad.net/subunit/+bug/1436686
66
67 "${PYTHON}" -m testtools.run all_tests.test_suite || die "Testing failed with ${EPYTHON}"
68 }
69
70 multilib_src_test() {
71 multilib_is_native_abi && distutils-r1_src_test
72 }
73
74 multilib_src_install() {
75 local targets=(
76 install-include_subunitHEADERS
77 install-pcdataDATA
78 install-exec-local
79 install-libLTLIBRARIES
80 )
81 emake DESTDIR="${D}" "${targets[@]}"
82
83 multilib_is_native_abi && distutils-r1_src_install
84 }
85
86 multilib_src_install_all() {
87 einstalldocs
88 prune_libtool_files
89 }

  ViewVC Help
Powered by ViewVC 1.1.20