summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2010-05-30 11:27:51 +0000
committerCédric Krier <cedk@gentoo.org>2010-05-30 11:27:51 +0000
commit9ee49b9a600aec96c2dec9d24606e5309164ffc1 (patch)
tree16f46783a078b26a9a2443da3f7aa22f8a2321f8 /dev-python/suds
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-9ee49b9a600aec96c2dec9d24606e5309164ffc1.tar.gz
gentoo-2-9ee49b9a600aec96c2dec9d24606e5309164ffc1.tar.bz2
gentoo-2-9ee49b9a600aec96c2dec9d24606e5309164ffc1.zip
Add doc use flag
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'dev-python/suds')
-rw-r--r--dev-python/suds/ChangeLog5
-rw-r--r--dev-python/suds/suds-0.3.9.ebuild24
2 files changed, 24 insertions, 5 deletions
diff --git a/dev-python/suds/ChangeLog b/dev-python/suds/ChangeLog
index b874fbbc6660..bcd5c3bdae58 100644
--- a/dev-python/suds/ChangeLog
+++ b/dev-python/suds/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/suds
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/suds/ChangeLog,v 1.1 2010/05/30 09:23:07 cedk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/suds/ChangeLog,v 1.2 2010/05/30 11:27:51 cedk Exp $
+
+ 30 May 2010; Cédric Krier <cedk@gentoo.org> suds-0.3.9.ebuild:
+ Add doc use flag
*suds-0.3.9 (30 May 2010)
diff --git a/dev-python/suds/suds-0.3.9.ebuild b/dev-python/suds/suds-0.3.9.ebuild
index 5b650d6459d7..b9fabf6b91b7 100644
--- a/dev-python/suds/suds-0.3.9.ebuild
+++ b/dev-python/suds/suds-0.3.9.ebuild
@@ -1,13 +1,13 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/suds/suds-0.3.9.ebuild,v 1.1 2010/05/30 09:23:07 cedk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/suds/suds-0.3.9.ebuild,v 1.2 2010/05/30 11:27:51 cedk Exp $
EAPI=3
PYTHON_DEPEND="2"
inherit distutils
-MY_P=${P/suds/python-suds}
+MY_P="python-${P}"
DESCRIPTION="A lightweight SOAP python client"
HOMEPAGE="https://fedorahosted.org/suds/"
@@ -16,9 +16,25 @@ SRC_URI="https://fedorahosted.org/releases/s/u/suds/${MY_P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~x86"
-IUSE=""
+IUSE="doc"
-DEPEND="dev-python/setuptools"
+DEPEND="dev-python/setuptools
+ doc? ( dev-python/epydoc )"
RDEPEND=""
S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ distutils_src_compile
+
+ if use doc; then
+ epydoc -n "Suds - ${DESCRIPTION}" -o "${S}"/doc \
+ "${S}"/suds || die "epydoc failed"
+ fi
+}
+
+src_install() {
+ distutils_src_install
+
+ use doc && dohtml -r doc/*
+}