/[gentoo-x86]/dev-python/python-distutils-extra/python-distutils-extra-2.33-r1.ebuild
Gentoo

Contents of /dev-python/python-distutils-extra/python-distutils-extra-2.33-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Apr 8 08:05:09 2015 UTC (2 years, 10 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 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/python-distutils-extra/python-distutils-extra-2.33-r1.ebuild,v 1.3 2014/03/31 20:40:58 mgorny Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 pypy )
8
9 inherit distutils-r1
10
11 DESCRIPTION="Gettext support, themed icons and scrollkeeper-based documentation in distutils"
12 HOMEPAGE="https://launchpad.net/python-distutils-extra"
13 SRC_URI="http://launchpad.net/python-distutils-extra/trunk/${PV}/+download/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86"
18 IUSE=""
19
20 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
21 RDEPEND="${DEPEND}"
22
23 DOCS=( doc/{FAQ,README,setup.cfg.example,setup.py.example} )
24
25 python_prepare_all() {
26 # Disable broken tests.
27 sed \
28 -e "s/test_desktop/_&/" \
29 -e "s/test_po(/_&/" \
30 -e "s/test_policykit/_&/" \
31 -e "s/test_requires_provides/_&/" \
32 -i test/auto.py
33
34 distutils-r1_python_prepare_all
35 }
36
37 python_test() {
38 # 5 tests fail with disabled byte-compilation (they rely on exact
39 # output from python).
40 local -x PYTHONDONTWRITEBYTECODE
41
42 cp -R -l test "${BUILD_DIR}"/ || die
43
44 cd "${BUILD_DIR}" || die
45 "${PYTHON}" test/auto.py || die "Tests fail with ${EPYTHON}"
46 }

  ViewVC Help
Powered by ViewVC 1.1.20