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 | 378f827ad966612f3eec60332ede1ecbbd5eecab (patch) | |
tree | c95257f7134a86cecba0bf8237c88a0c29de2864 /dev-python/python-nss | |
parent | Regenerate Manifest wrt #388993 by Samuel BAUER (diff) | |
download | historical-378f827ad966612f3eec60332ede1ecbbd5eecab.tar.gz historical-378f827ad966612f3eec60332ede1ecbbd5eecab.tar.bz2 historical-378f827ad966612f3eec60332ede1ecbbd5eecab.zip |
Add dev-python/python-nss, thanks to slepnoga. Bug #305881
Package-Manager: portage-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/Manifest | 5 | ||||
-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 |
5 files changed, 119 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/Manifest b/dev-python/python-nss/Manifest new file mode 100644 index 000000000000..95141f58ce2b --- /dev/null +++ b/dev-python/python-nss/Manifest @@ -0,0 +1,5 @@ +AUX gentoo_lib_name.patch 1772 RMD160 5a1eea8d3c681dd335486c622f6e19c11acfe461 SHA1 1d8de4d267a05b83a842c9ee8fd7985ee1b11220 SHA256 9f66cc2bfdd12b4b7ae9f8f3cf39db5b588025a83e8b1008dad823616a494902 +DIST python-nss-0.8.tar.lzma 108903 RMD160 e636140ab155e64d99e9eb1b5d574ae1e966cf07 SHA1 ad67c7c5e65be0054c98aea0eced12414208352a SHA256 6af55f01782867b2bc9ce09838c385ba9340c2a0646c3cf1ec1931892f64086a +EBUILD python-nss-0.8.ebuild 1215 RMD160 054e529cc02f20859f6afd0b687910eb7806debe SHA1 bcd477efb339937197ac4f87ca10c8933fd0dc55 SHA256 2e8550744abaed58128bf8e47c3b79f2dbe1b70f1189c5542cab77e36a7d61fd +MISC ChangeLog 434 RMD160 7898f7b17685c9c53bb9cf530182780b15118d4d SHA1 753d4a5c60e5498dcedc728b73e1e17f2afae4fc SHA256 6bb72683a7d64d0b79cc8ecab93b2c2cb262a1ed01b63152be4b6198cd0f30a0 +MISC metadata.xml 502 RMD160 edf16334a8e38ff7c9954e83c9936fe056d3f7b5 SHA1 d2d73949f821ea8ea628e463de70ac937b94e692 SHA256 cf743fc45431ffa0c5d1bde902dd0179270818125e7a63d58a724455570ac248 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 +} |