diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/python-nss |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/python-nss')
-rw-r--r-- | dev-python/python-nss/Manifest | 5 | ||||
-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, 87 insertions, 0 deletions
diff --git a/dev-python/python-nss/Manifest b/dev-python/python-nss/Manifest new file mode 100644 index 000000000000..b9d42a1877f2 --- /dev/null +++ b/dev-python/python-nss/Manifest @@ -0,0 +1,5 @@ +DIST python-nss-0.16.0.tar.bz2 208535 SHA256 cecd3a33c4cb4ab0f5a3c303a733b2eb62a3760b500e6b411313ab3b30f8e575 SHA512 3ff7d29f10942f4d36be8e223b518e046b5502f15029aa684b925cbd131bbc2041f7860abd50ec1344479b6e5594735cc9b7fcd801d7c4d1025f68e11a57cc3f WHIRLPOOL 543f27384b5faa61e2b1d26b54ac896c1a8b96308a6f2e6698cd0c2656667a0f1abc08cbc4143b2a5ca333195cf756936f366ecc614134fdf413e6e812b52e34 +EBUILD python-nss-0.16.0.ebuild 1720 SHA256 b1ad742c3d86dd9537255776f9d926ff65143cbeda41d5c4f8e9df40a4baa942 SHA512 cb5da9da5b6e199559b3a1ca6c2703434ba7745720c2c3e0e430aa4f2aed217f224c54e5b59fe954c1b51ef7f86d0bbe960be04f5dd14d75c258ce2054dbcc9a WHIRLPOOL cbb9a623b412143d610daabb66b055e39aa8017a4f4607c06411fb066575cb2dc7c472b1f69e1bc0466d1b7092012ffdfd7b28c1e69eedbeb21e1f9de0ab88fb +MISC ChangeLog 3101 SHA256 b6295812ce493fa67b58797209d157fa1d075cda341c9a8ec8ac72eddbee281c SHA512 ef920c5f2a578ea3a2d3f0736ceba28cdd6c91e0d3f0cb6fa1e2836c5103a165b6167d2ba11d552f6b64a4ade6bf0a56797f45747a660378fc3036ee6e56fc85 WHIRLPOOL 2a770cec09e52db6b38c863fe45302c8c5e6425251a63b9df114e496ba4c116f81bef20eeb3f93f6a0cc080c86e61312518e2d2483c72e223cfd0a12ce2fa2bf +MISC ChangeLog-2015 1681 SHA256 002ad4e195f02d0bf6dea6d82154a19c0ae56d03eb5ae67991ea60b7c4a6c2e7 SHA512 69d756120dd476ff6a47fc2a8bfb88bd25de90f7dd0a421440144255514b1ec0918f9f81abfea80710e82a7468bbb2fa7ee27af280484c287ec4d281dd1e34a4 WHIRLPOOL 7a0920f41cabc4fb6b8b659fbc8bf99b4bb6953dd09564df626c596226bd49297d2e5662731df3c1beeab04a369a1e7f13460a1e9a5d4cc46ca92c9076ed953e +MISC metadata.xml 505 SHA256 5ad205acf037dfce7907f1bd8942cf29774487e84421b790eb5d8b0754648689 SHA512 9b4ae01e2612f9e20b48b279a55b50e98edeca8fd0a22edae789f24e7ac02c31a44986cf281f5acae7d18a443742019011f62151f5eb85ee1de5dd0e22b771b1 WHIRLPOOL b12ac6a40da6bc3a0695e9dc639d8a612dda8ff5a8ab89a27485806e33c5f70cd2c44b84ac732d2278affd977960f91a49d5214e1533fb6b5851be5b4d600aa8 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..2b7efd1e755a --- /dev/null +++ b/dev-python/python-nss/python-nss-0.16.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 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="http://www.mozilla.org/projects/security/pki/python-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 +} |