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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Mar 8 23:55:08 2015 UTC (3 years, 9 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
x86 stable, bug 540290

(Portage version: 2.2.17/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key A188FBD4)

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.0.ebuild,v 1.5 2015/03/06 22:32:04 pacho Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 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 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 distutils-r1_python_prepare_all
26 }
27
28 python_compile_all() {
29 use doc && emake -C docs html
30 }
31
32 python_test() {
33 pushd pkginfo/tests/ > /dev/null
34 for test in test_*.py; do
35 ${PYTHON} ${test} || die "${test} failed with Python ${PYTHON_ABI}"
36 if [[ $? ]]; then
37 einfo "Test ${test} successful"
38 else
39 die "Test ${test} failed under ${EPYTHON}"
40 fi
41 done
42 }
43
44 python_install_all() {
45 use doc && local HTML_DOCS=( docs/.build/html/. )
46 use examples && local EXAMPLES=( docs/examples/. )
47 distutils-r1_python_install_all
48 }

  ViewVC Help
Powered by ViewVC 1.1.20