diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-06-23 23:29:26 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-06-23 23:29:26 +0000 |
commit | 1d1ed7fc67304d2e98ac2cc958af20f40c7a4b20 (patch) | |
tree | 7c069bda25e17da2571cd6e1416232038fa2ac75 /dev-python/pygtkhelpers | |
parent | old (diff) | |
download | gentoo-2-1d1ed7fc67304d2e98ac2cc958af20f40c7a4b20.tar.gz gentoo-2-1d1ed7fc67304d2e98ac2cc958af20f40c7a4b20.tar.bz2 gentoo-2-1d1ed7fc67304d2e98ac2cc958af20f40c7a4b20.zip |
Initial addition.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pygtkhelpers')
-rw-r--r-- | dev-python/pygtkhelpers/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/pygtkhelpers/metadata.xml | 5 | ||||
-rw-r--r-- | dev-python/pygtkhelpers/pygtkhelpers-0.4.1.ebuild | 55 |
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-python/pygtkhelpers/ChangeLog b/dev-python/pygtkhelpers/ChangeLog new file mode 100644 index 000000000000..a09eb1502efc --- /dev/null +++ b/dev-python/pygtkhelpers/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/pygtkhelpers +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtkhelpers/ChangeLog,v 1.1 2010/06/23 23:29:26 arfrever Exp $ + +*pygtkhelpers-0.4.1 (23 Jun 2010) + + 23 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +pygtkhelpers-0.4.1.ebuild, +metadata.xml: + Initial addition. Ebuild written by me. + diff --git a/dev-python/pygtkhelpers/metadata.xml b/dev-python/pygtkhelpers/metadata.xml new file mode 100644 index 000000000000..301d2207cc29 --- /dev/null +++ b/dev-python/pygtkhelpers/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> +</pkgmetadata> diff --git a/dev-python/pygtkhelpers/pygtkhelpers-0.4.1.ebuild b/dev-python/pygtkhelpers/pygtkhelpers-0.4.1.ebuild new file mode 100644 index 000000000000..d12b17d80a04 --- /dev/null +++ b/dev-python/pygtkhelpers/pygtkhelpers-0.4.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtkhelpers/pygtkhelpers-0.4.1.ebuild,v 1.1 2010/06/23 23:29:26 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +DESCRIPTION="PyGTKHelpers is a library to assist the building of PyGTK applications" +HOMEPAGE="http://packages.python.org/pygtkhelpers/ http://pypi.python.org/pypi/pygtkhelpers" +SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="doc examples" + +DEPEND="dev-python/setuptools + doc? ( dev-python/sphinx )" +RDEPEND="" + +src_prepare() { + distutils_src_prepare + + # docs/_static/scope.jpg does not exist. + sed -e "s/^\(html_logo =.*\)/#\1/" -i docs/conf.py || die "sed failed" +} + +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + "$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed" + fi +} + +src_install() { + distutils_src_install + + if use doc; then + pushd build/sphinx/html > /dev/null + docinto html + cp -R [a-z]* _images _static "${ED}usr/share/doc/${PF}/html" || die "Installation of documentation failed" + popd > /dev/null + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r examples/* || die "Installation of examples failed" + fi +} |