/[gentoo-x86]/dev-python/pygtkhelpers/pygtkhelpers-0.4.3-r1.ebuild
Gentoo

Contents of /dev-python/pygtkhelpers/pygtkhelpers-0.4.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Aug 6 09:59:12 2015 UTC (4 years, 11 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Stable for amd64, wrt bug #521046

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key 7194459F)

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/pygtkhelpers/pygtkhelpers-0.4.3-r1.ebuild,v 1.1 2014/12/25 12:44:52 mgorny Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit distutils-r1
10
11 DESCRIPTION="PyGTKHelpers is a library to assist the building of PyGTK applications"
12 HOMEPAGE="http://packages.python.org/pygtkhelpers/ http://pypi.python.org/pypi/pygtkhelpers"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
14
15 LICENSE="LGPL-3"
16 SLOT="0"
17 KEYWORDS="amd64 ~ppc64 ~x86"
18 IUSE="doc examples"
19
20 RDEPEND="dev-python/pygtk[${PYTHON_USEDEP}]"
21 DEPEND="${RDEPEND}
22 dev-python/setuptools[${PYTHON_USEDEP}]
23 doc? ( dev-python/sphinx )"
24
25 python_prepare_all() {
26 # docs/_static/scope.jpg does not exist.
27 sed -e "s/^\(html_logo =.*\)/#\1/" -i docs/conf.py || die "sed failed"
28
29 distutils-r1_python_prepare_all
30 }
31
32 python_compile_all() {
33 if use doc; then
34 esetup.py build_sphinx
35 fi
36 }
37
38 python_install_all() {
39 distutils-r1_python_install_all
40
41 if use doc; then
42 cd "${BUILD_DIR}"/sphinx/html || die
43 docinto html
44 dodoc -r [a-z]* _images _static
45 cd - >/dev/null || die
46 fi
47
48 if use examples; then
49 docinto examples
50 dodoc -r examples/.
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20