diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/python-nss | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/python-nss')
-rw-r--r-- | dev-python/python-nss/Manifest | 3 | ||||
-rw-r--r-- | dev-python/python-nss/metadata.xml | 16 | ||||
-rw-r--r-- | dev-python/python-nss/python-nss-0.16.0.ebuild | 66 |
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/python-nss/Manifest b/dev-python/python-nss/Manifest new file mode 100644 index 000000000000..8319378b7a82 --- /dev/null +++ b/dev-python/python-nss/Manifest @@ -0,0 +1,3 @@ +DIST python-nss-0.16.0.tar.bz2 208535 BLAKE2B 99afa955c56862a10da950ddb638730762f12de47c347128373d2bdfa374af15f8df810433e60ef6200c3e2b296e1c057880d0ee91cb8ade2dea36a0fa4bbfdf SHA512 3ff7d29f10942f4d36be8e223b518e046b5502f15029aa684b925cbd131bbc2041f7860abd50ec1344479b6e5594735cc9b7fcd801d7c4d1025f68e11a57cc3f +EBUILD python-nss-0.16.0.ebuild 1748 BLAKE2B fca3be894e9536c90f78fb151693e82e83fb6e48a97a262b772744a02470dff2f3c55596b56b0e96ee6586431dff103b3bb6eb48ac26d3c916950e4d02e5a11f SHA512 a9f0eafaba59c27dfc08e02d7cd2a7c460579bc990bc6454a8872e3a314f8decf746cd6d81ed0f12d0ea49cbf4ee0612deaaa8e582702a6c1da105f53a1d7fd3 +MISC metadata.xml 505 BLAKE2B 6dbaf8d336138a9baf33e62ea3ba72073e9bfeeee4862875652bd1c6b4c335f5e014a2c6c3b455e01d62554262110c11eea28133240fa0d13bcfb4aece853a75 SHA512 9b4ae01e2612f9e20b48b279a55b50e98edeca8fd0a22edae789f24e7ac02c31a44986cf281f5acae7d18a443742019011f62151f5eb85ee1de5dd0e22b771b1 diff --git a/dev-python/python-nss/metadata.xml b/dev-python/python-nss/metadata.xml new file mode 100644 index 000000000000..0a19f527e50a --- /dev/null +++ b/dev-python/python-nss/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</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.16.0.ebuild b/dev-python/python-nss/python-nss-0.16.0.ebuild new file mode 100644 index 000000000000..96a715862032 --- /dev/null +++ b/dev-python/python-nss/python-nss-0.16.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) # still only supports py2 + +inherit distutils-r1 flag-o-matic versionator + +MY_PV="$(replace_all_version_separators '_' )" +DESCRIPTION="Python bindings for Network Security Services (NSS)" +HOMEPAGE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Python_binding_for_NSS" +SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/${PN}/releases/PYNSS_RELEASE_${MY_PV}/src/${P}.tar.bz2" + +LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +RDEPEND=" + dev-libs/nspr + dev-libs/nss +" +DEPEND="${RDEPEND} + doc? ( + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/epydoc[${PYTHON_USEDEP}] + )" + +DOCS="README doc/ChangeLog" + +python_prepare_all() { + append-cflags -fno-strict-aliasing + # Remove test file using a dep, called nss-tools, unavailable in portage + rm -f test/test_pkcs12.py || die + sed -e '/import test_pkcs12/d' \ + -e '/suite.addTests(loader.loadTestsFromModule(test_pkcs12))/d' \ + -i test/run_tests || die + + # exclude tests due to absent shared lib file, libnssckbi.so + sed -e 's:test_ocsp_default_responder:_&:' \ + -i test/test_ocsp.py || die + sed -e 's:test_ssl:_&:' \ + -i test/test_client_server.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + einfo "Generating API documentation..." + mkdir doc/html + epydoc --html --docformat restructuredtext -o doc/html \ + "${BUILD_DIR}"/lib/nss + fi +} + +python_test() { + "${PYTHON}" test/run_tests || die +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/html/. ) + use examples && local EXAMPLES=( doc/examples/. ) + + distutils-r1_python_install_all +} |