diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2011-10-30 17:00:05 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2011-10-30 17:00:05 +0000 |
commit | 078ef64c5121af221a929ee90814420acd278fe3 (patch) | |
tree | ddf38d8c74227ee90bd16a11cb34593576580609 /dev-python/python-nss | |
parent | Regenerate Manifest wrt #388993 by Samuel BAUER (diff) | |
download | gentoo-2-078ef64c5121af221a929ee90814420acd278fe3.tar.gz gentoo-2-078ef64c5121af221a929ee90814420acd278fe3.tar.bz2 gentoo-2-078ef64c5121af221a929ee90814420acd278fe3.zip |
Add dev-python/python-nss, thanks to slepnoga. Bug #305881
(Portage version: 2.1.10.26/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/python-nss')
-rw-r--r-- | dev-python/python-nss/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/python-nss/files/gentoo_lib_name.patch | 38 | ||||
-rw-r--r-- | dev-python/python-nss/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/python-nss/python-nss-0.8.ebuild | 49 |
4 files changed, 114 insertions, 0 deletions
diff --git a/dev-python/python-nss/ChangeLog b/dev-python/python-nss/ChangeLog new file mode 100644 index 000000000000..e755f40667cb --- /dev/null +++ b/dev-python/python-nss/ChangeLog @@ -0,0 +1,10 @@ +# 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 $ + +*python-nss-0.8 (30 Oct 2011) + + 30 Oct 2011; Maxim Koltsov <maksbotan@gentoo.org> +python-nss-0.8.ebuild, + +files/gentoo_lib_name.patch, +metadata.xml: + Add dev-python/python-nss, thanks to slepnoga. Bug #305881 + diff --git a/dev-python/python-nss/files/gentoo_lib_name.patch b/dev-python/python-nss/files/gentoo_lib_name.patch new file mode 100644 index 000000000000..48dc29142d25 --- /dev/null +++ b/dev-python/python-nss/files/gentoo_lib_name.patch @@ -0,0 +1,38 @@ +--- setup.py.orig 2010-02-17 22:51:13.762123843 +0200 ++++ setup.py 2010-02-17 22:53:26.538622241 +0200 +@@ -310,7 +310,7 @@ + nss_error_extension = \ + Extension('nss.error', + sources = ['src/py_nspr_error.c'], +- include_dirs = ['/usr/include/nss3', '/usr/include/nspr4'], ++ include_dirs = ['/usr/include/nss', '/usr/include/nspr'], + libraries = ['nspr4'], + extra_compile_args = extra_compile_args, + ) +@@ -318,7 +318,7 @@ + nss_io_extension = \ + Extension('nss.io', + sources = ['src/py_nspr_io.c'], +- include_dirs = ['/usr/include/nss3', '/usr/include/nspr4'], ++ include_dirs = ['/usr/include/nss', '/usr/include/nspr'], + libraries = ['nspr4'], + extra_compile_args = extra_compile_args, + ) +@@ -326,7 +326,7 @@ + nss_nss_extension = \ + Extension('nss.nss', + sources = ['src/py_nss.c'], +- include_dirs = ['src', '/usr/include/nss3', '/usr/include/nspr4'], ++ include_dirs = ['src', '/usr/include/nss', '/usr/include/nspr'], + libraries = ['nspr4', 'ssl3'], + extra_compile_args = extra_compile_args, + ) +@@ -334,7 +334,7 @@ + nss_ssl_extension = \ + Extension('nss.ssl', + sources = ['src/py_ssl.c'], +- include_dirs = ['src', '/usr/include/nss3', '/usr/include/nspr4'], ++ include_dirs = ['src', '/usr/include/nss', '/usr/include/nspr'], + libraries = ['nspr4', 'ssl3'], + extra_compile_args = extra_compile_args, + ) diff --git a/dev-python/python-nss/metadata.xml b/dev-python/python-nss/metadata.xml new file mode 100644 index 000000000000..261692242670 --- /dev/null +++ b/dev-python/python-nss/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<herd>python</herd> +<maintainer> + <email>spamslepnoga@inbox.ru</email> +</maintainer> +<maintainer> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> +</maintainer> +<longdescription> + This package provides Python bindings for Network Security Services (NSS) + and the Netscape Portable Runtime (NSPR) +</longdescription> +</pkgmetadata> diff --git a/dev-python/python-nss/python-nss-0.8.ebuild b/dev-python/python-nss/python-nss-0.8.ebuild new file mode 100644 index 000000000000..7e927f56ea1c --- /dev/null +++ b/dev-python/python-nss/python-nss-0.8.ebuild @@ -0,0 +1,49 @@ +# 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.ebuild,v 1.1 2011/10/30 17:00:05 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..." + + PYTHONPATH="${ED}$(python_get_sitedir -f)" epydoc --html --docformat restructuredtext \ + -o "${S}"/build-2.6/doc/html "${S}"/build-2.6/lib.linux-x86_64-2.6/nss + + dohtml -r "${S}/build/doc/"html/* + insinto /usr/share/doc/"${PF}" + doins -r ./test + insinto /usr/share/doc/"${PF}"/examples + doins doc/examples/*.py + fi +} |