diff options
author | Alexys Jacob <ultrabug@gentoo.org> | 2012-06-21 12:36:51 +0000 |
---|---|---|
committer | Alexys Jacob <ultrabug@gentoo.org> | 2012-06-21 12:36:51 +0000 |
commit | 7c222ae06237aa8ace0a0c5e5d0b7f213fe24216 (patch) | |
tree | b3acc86dd49971c366f9ed2a7995640d5c884093 /dev-python | |
parent | Version Bump. (diff) | |
download | gentoo-2-7c222ae06237aa8ace0a0c5e5d0b7f213fe24216.tar.gz gentoo-2-7c222ae06237aa8ace0a0c5e5d0b7f213fe24216.tar.bz2 gentoo-2-7c222ae06237aa8ace0a0c5e5d0b7f213fe24216.zip |
version bump, support doc and examples
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/flask-pymongo/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/flask-pymongo/flask-pymongo-0.1.2.ebuild (renamed from dev-python/flask-pymongo/flask-pymongo-0.1.1.ebuild) | 31 |
2 files changed, 32 insertions, 7 deletions
diff --git a/dev-python/flask-pymongo/ChangeLog b/dev-python/flask-pymongo/ChangeLog index 62d6bae1b8ce..f2df94fb9845 100644 --- a/dev-python/flask-pymongo/ChangeLog +++ b/dev-python/flask-pymongo/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/flask-pymongo # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-pymongo/ChangeLog,v 1.1 2012/06/18 08:45:36 ultrabug Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-pymongo/ChangeLog,v 1.2 2012/06/21 12:36:51 ultrabug Exp $ + +*flask-pymongo-0.1.2 (21 Jun 2012) + + 21 Jun 2012; Ultrabug <ultrabug@gentoo.org> -flask-pymongo-0.1.1.ebuild, + +flask-pymongo-0.1.2.ebuild: + Version bump, support doc and examples *flask-pymongo-0.1.1 (18 Jun 2012) diff --git a/dev-python/flask-pymongo/flask-pymongo-0.1.1.ebuild b/dev-python/flask-pymongo/flask-pymongo-0.1.2.ebuild index db1b2deca001..6c551d34bf01 100644 --- a/dev-python/flask-pymongo/flask-pymongo-0.1.1.ebuild +++ b/dev-python/flask-pymongo/flask-pymongo-0.1.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-pymongo/flask-pymongo-0.1.1.ebuild,v 1.1 2012/06/18 08:45:36 ultrabug Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-pymongo/flask-pymongo-0.1.2.ebuild,v 1.1 2012/06/21 12:36:51 ultrabug Exp $ EAPI="3" PYTHON_DEPEND="2:2.5" @@ -20,17 +20,36 @@ SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="doc examples" RDEPEND=">=dev-python/flask-0.8 >=dev-python/pymongo-2.1" DEPEND="${RDEPEND} + doc? ( dev-python/sphinx ) dev-python/setuptools dev-python/nose" S="${WORKDIR}/${MY_P}" -# Maintainer's notes: -# - no docs / examples in the pypi pkg vs github -# - no nspkg.pth file -# PYTHON_MODNAME="flaskext/pymongo.py" +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + cd docs + PYTHONPATH=".." emake html || die "Generation of documentation failed" + fi +} + +src_install() { + distutils_src_install + + if use doc; then + dohtml -r docs/_build/html/* || die "Installation of documentation failed" + fi + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples || die "Installation of examples failed" + fi +}
\ No newline at end of file |