diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/python-nss | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/python-nss')
-rw-r--r-- | dev-python/python-nss/Manifest | 2 | ||||
-rw-r--r-- | dev-python/python-nss/files/gentoo_lib_name.patch | 38 | ||||
-rw-r--r-- | dev-python/python-nss/files/python-nss-0.12-rsapssparams.patch | 25 | ||||
-rw-r--r-- | dev-python/python-nss/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/python-nss/python-nss-0.12-r1.ebuild | 45 | ||||
-rw-r--r-- | dev-python/python-nss/python-nss-0.16.0.ebuild | 62 |
6 files changed, 189 insertions, 0 deletions
diff --git a/dev-python/python-nss/Manifest b/dev-python/python-nss/Manifest new file mode 100644 index 000000000000..cca5c2b0b613 --- /dev/null +++ b/dev-python/python-nss/Manifest @@ -0,0 +1,2 @@ +DIST python-nss-0.12.tar.bz2 167007 SHA256 e1084fef686f5b2f74f47fa46a7403d8b747ad14be7d9b3685b1bb105a4283cb SHA512 7772e45e40b66b241d033338b7f9ec8b0d5e1d814e36d0302c24a3a28569f136556249ed6b4c8a30d8db3dec40882de7cfc67dec1ac5fa68e8e7e95c349537e9 WHIRLPOOL e8e2fe15bdbeb2e549f551722832f4a1f2a27efb8d301e46ae428213c9ccc6e7bdeda217d8969abe63eedcd927b3cfe2a3c00e4a4ba08b9ab378e405e5284b5d +DIST python-nss-0.16.0.tar.bz2 208535 SHA256 cecd3a33c4cb4ab0f5a3c303a733b2eb62a3760b500e6b411313ab3b30f8e575 SHA512 3ff7d29f10942f4d36be8e223b518e046b5502f15029aa684b925cbd131bbc2041f7860abd50ec1344479b6e5594735cc9b7fcd801d7c4d1025f68e11a57cc3f WHIRLPOOL 543f27384b5faa61e2b1d26b54ac896c1a8b96308a6f2e6698cd0c2656667a0f1abc08cbc4143b2a5ca333195cf756936f366ecc614134fdf413e6e812b52e34 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/files/python-nss-0.12-rsapssparams.patch b/dev-python/python-nss/files/python-nss-0.12-rsapssparams.patch new file mode 100644 index 000000000000..cea6f1d1ac4e --- /dev/null +++ b/dev-python/python-nss/files/python-nss-0.12-rsapssparams.patch @@ -0,0 +1,25 @@ +RCS file: /cvsroot/mozilla/security/python/nss/src/py_nss.c,v +retrieving revision 1.23 +diff -b -u -r1.23 py_nss.c +--- src/py_nss.c 6 Jun 2011 15:21:13 -0000 1.23 ++++ src/py_nss.c 17 Nov 2011 21:11:40 -0000 +@@ -4669,7 +4669,7 @@ + } + + if (params.hashAlg) { +- obj = oid_secitem_to_pystr_desc(¶ms->hashAlg->algorithm); ++ obj = oid_secitem_to_pystr_desc(¶ms.hashAlg->algorithm); + } else { + obj = PyString_FromString("default, SHA-1"); + } +@@ -4677,8 +4677,8 @@ + Py_CLEAR(obj); + + if (params.maskAlg) { +- obj = oid_secitem_to_pystr_desc(¶ms->maskAlg->algorithm); +- if (SEC_QuickDERDecodeItem(pool, &mask_hash_alg, ++ obj = oid_secitem_to_pystr_desc(¶ms.maskAlg->algorithm); ++ if (SEC_QuickDERDecodeItem(arena, &mask_hash_alg, + SEC_ASN1_GET(SECOID_AlgorithmIDTemplate), + ¶ms.maskAlg->parameters) == SECSuccess) { + obj1 = oid_secitem_to_pystr_desc(&mask_hash_alg); diff --git a/dev-python/python-nss/metadata.xml b/dev-python/python-nss/metadata.xml new file mode 100644 index 000000000000..170c1ce97c53 --- /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>andreis.vinogradovs@gmail.com</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.12-r1.ebuild b/dev-python/python-nss/python-nss-0.12-r1.ebuild new file mode 100644 index 000000000000..39737eb241f4 --- /dev/null +++ b/dev-python/python-nss/python-nss-0.12-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 versionator + +MY_PV="$(replace_all_version_separators '_' )_0" +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" + +DEPEND="dev-libs/nss + dev-libs/nspr + doc? ( dev-python/docutils[${PYTHON_USEDEP}] + dev-python/epydoc[${PYTHON_USEDEP}] )" +RDEPEND="${DEPEND}" + +CFLAGS="${CFLAGS} -fno-strict-aliasing" +DOCS="README doc/ChangeLog" +# RHB #754750 ; bgo #390869 +PATCHES=( "${FILESDIR}/python-nss-0.12-rsapssparams.patch" ) + +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_install_all() { + use doc && local HTML_DOCS=( doc/html/. ) + use examples && local EXAMPLES=( doc/examples/. ) + + distutils-r1_python_install_all +} 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..5ffc04a8889c --- /dev/null +++ b/dev-python/python-nss/python-nss-0.16.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) # still only supports py2 + +inherit distutils-r1 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" + +DEPEND="dev-libs/nss + dev-libs/nspr + doc? ( dev-python/docutils[${PYTHON_USEDEP}] + dev-python/epydoc[${PYTHON_USEDEP}] )" +RDEPEND="${DEPEND}" + +CFLAGS="${CFLAGS} -fno-strict-aliasing" +DOCS="README doc/ChangeLog" + +python_prepare_all() { + # 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 +} |