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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Apr 5 21:49:30 2013 UTC (7 years, 3 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #457898

(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 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.ebuild,v 1.3 2013/04/05 18:26:23 ago Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2:2.6"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="2.4 2.5 3.*"
9
10 inherit distutils
11
12 DESCRIPTION="PyGTKHelpers is a library to assist the building of PyGTK applications"
13 HOMEPAGE="http://packages.python.org/pygtkhelpers/ http://pypi.python.org/pypi/pygtkhelpers"
14 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15
16 LICENSE="LGPL-3"
17 SLOT="0"
18 KEYWORDS="amd64 ppc64 x86"
19 IUSE="doc examples"
20
21 RDEPEND="dev-python/pygtk"
22 DEPEND="${RDEPEND}
23 dev-python/setuptools
24 doc? ( dev-python/sphinx )"
25
26 src_prepare() {
27 distutils_src_prepare
28
29 # docs/_static/scope.jpg does not exist.
30 sed -e "s/^\(html_logo =.*\)/#\1/" -i docs/conf.py || die "sed failed"
31 }
32
33 src_compile() {
34 distutils_src_compile
35
36 if use doc; then
37 einfo "Generation of documentation"
38 "$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed"
39 fi
40 }
41
42 src_install() {
43 distutils_src_install
44
45 if use doc; then
46 pushd build/sphinx/html > /dev/null
47 docinto html
48 cp -R [a-z]* _images _static "${ED}usr/share/doc/${PF}/html" || die "Installation of documentation failed"
49 popd > /dev/null
50 fi
51
52 if use examples; then
53 insinto /usr/share/doc/${PF}/examples
54 doins -r examples/* || die "Installation of examples failed"
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20