summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Koltsov <maksbotan@gentoo.org>2011-10-31 20:01:46 +0000
committerMaxim Koltsov <maksbotan@gentoo.org>2011-10-31 20:01:46 +0000
commit18221cbc13b1b33ce2e8ff0e91f4a74a79ff81fb (patch)
treeebe54028027b4dff4d9f54ff7b721b65b25ef2ba /dev-python
parentFix installation of eyeD3 script. Patch by Arfrever. (diff)
downloadgentoo-2-18221cbc13b1b33ce2e8ff0e91f4a74a79ff81fb.tar.gz
gentoo-2-18221cbc13b1b33ce2e8ff0e91f4a74a79ff81fb.tar.bz2
gentoo-2-18221cbc13b1b33ce2e8ff0e91f4a74a79ff81fb.zip
Fix docs processing in src_install. Thanks to Arfrever.
(Portage version: 2.1.10.26/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/python-nss/ChangeLog7
-rw-r--r--dev-python/python-nss/python-nss-0.8-r1.ebuild51
2 files changed, 57 insertions, 1 deletions
diff --git a/dev-python/python-nss/ChangeLog b/dev-python/python-nss/ChangeLog
index e755f40667cb..702d3073f0b5 100644
--- a/dev-python/python-nss/ChangeLog
+++ b/dev-python/python-nss/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/python-nss
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-nss/ChangeLog,v 1.1 2011/10/30 17:00:05 maksbotan Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-nss/ChangeLog,v 1.2 2011/10/31 20:01:46 maksbotan Exp $
+
+*python-nss-0.8-r1 (31 Oct 2011)
+
+ 31 Oct 2011; Maxim Koltsov <maksbotan@gentoo.org> +python-nss-0.8-r1.ebuild:
+ Fix docs processing in src_install. Thanks to Arfrever.
*python-nss-0.8 (30 Oct 2011)
diff --git a/dev-python/python-nss/python-nss-0.8-r1.ebuild b/dev-python/python-nss/python-nss-0.8-r1.ebuild
new file mode 100644
index 000000000000..216cb48fcb71
--- /dev/null
+++ b/dev-python/python-nss/python-nss-0.8-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-nss/python-nss-0.8-r1.ebuild,v 1.1 2011/10/31 20:01:46 maksbotan Exp $
+
+EAPI="3"
+
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils eutils
+
+DESCRIPTION="Python bindings for Network Security Services (NSS)"
+HOMEPAGE="http://people.redhat.com/jdennis/python-nss/doc/api/html"
+SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.lzma"
+
+LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="dev-libs/nss
+ dev-libs/nspr
+ doc? ( dev-python/docutils
+ dev-python/epydoc )"
+
+RDEPEND="${DEPEND}"
+
+DOCS="README doc/ChangeLog"
+
+src_prepare() {
+ epatch "${FILESDIR}"/*.patch
+}
+
+src_install() {
+ distutils_src_install
+
+ if use doc; then
+ einfo "Generating API documentation..."
+
+ mkdir "${S}"/doc/html
+ PYTHONPATH="${ED}$(python_get_sitedir -f)" epydoc --html --docformat restructuredtext \
+ -o "${S}"/doc/html \
+ "$(ls -d build-$(PYTHON -f --ABI)/lib.*)/nss"
+
+ dohtml -r "${S}"/doc/html/
+ insinto /usr/share/doc/"${PF}"
+ doins -r ./test
+ insinto /usr/share/doc/"${PF}"/examples
+ doins doc/examples/*.py
+ fi
+}