/[gentoo-x86]/dev-python/pkginfo/pkginfo-1.2.1.ebuild
Gentoo

Contents of /dev-python/pkginfo/pkginfo-1.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jun 21 10:42:42 2015 UTC (3 years, 1 month ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
add ~arm, bug #549148

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="arm", signed Manifest commit with key 072AD062)

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/pkginfo/pkginfo-1.2.1.ebuild,v 1.2 2015/05/17 14:48:00 jer Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
7
8 inherit distutils-r1
9
10 DESCRIPTION="Provides an API for querying the distutils metadata written in a PKG-INFO file"
11 HOMEPAGE="http://pypi.python.org/pypi/pkginfo"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
14 IUSE="doc examples"
15
16 LICENSE="MIT"
17 SLOT="0"
18 DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
19 dev-python/setuptools[${PYTHON_USEDEP}]"
20 RDEPEND="${DEPEND}"
21
22 python_prepare_all() {
23 sed -e 's:SPHINXBUILD = sphinx-build:SPHINXBUILD = /usr/bin/sphinx-build:' \
24 -i docs/Makefile || die
25
26 # Disable tests that seek to read the version of pkginfo from an installed state
27 # These test will still become installed and testable once installed
28 sed -e 's:test_w_directory_no_EGG_INFO:_&:' \
29 -e 's:test_w_module_and_metadata_version:_&:' \
30 -e 's:test_w_package_name_and_metadata_version:_&:' \
31 -i pkginfo/tests/test_utils.py || die
32 sed -e 's:test_ctor_w_path_nested_egg_info:_&:' \
33 -i pkginfo/tests/test_develop.py || die
34
35 distutils-r1_python_prepare_all
36 }
37
38 python_compile_all() {
39 use doc && emake -C docs html
40 }
41
42 python_test() {
43 "${PYTHON}" -m unittest discover || die "Test ${test} failed under ${EPYTHON}"
44 popd > /dev/null
45 }
46
47 python_install_all() {
48 use doc && local HTML_DOCS=( docs/.build/html/. )
49 use examples && local EXAMPLES=( docs/examples/. )
50 distutils-r1_python_install_all
51 }

  ViewVC Help
Powered by ViewVC 1.1.20