Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tlslite/
Date: Fri, 03 Jun 2016 17:35:09
Message-Id: 1464973627.5074ce43856c7931f450759cbff55c7dfacc16be.monsieurp@gentoo
1 commit: 5074ce43856c7931f450759cbff55c7dfacc16be
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 2 04:54:23 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 17:07:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5074ce43
7
8 dev-python/tlslite: add python3 support
9
10 Package-Manager: portage-2.2.26
11 Closes: https://github.com/gentoo/gentoo/pull/1581
12
13 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
14
15 dev-python/tlslite/tlslite-0.4.9-r1.ebuild | 45 ++++++++++++++++++++++++++++++
16 1 file changed, 45 insertions(+)
17
18 diff --git a/dev-python/tlslite/tlslite-0.4.9-r1.ebuild b/dev-python/tlslite/tlslite-0.4.9-r1.ebuild
19 new file mode 100644
20 index 0000000..5837719
21 --- /dev/null
22 +++ b/dev-python/tlslite/tlslite-0.4.9-r1.ebuild
23 @@ -0,0 +1,45 @@
24 +# Copyright 1999-2016 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=6
29 +
30 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
31 +
32 +inherit distutils-r1 eutils
33 +
34 +DESCRIPTION="TLS Lite is a free python library that implements SSL 3.0 and TLS 1.0/1.1"
35 +HOMEPAGE="http://trevp.net/tlslite/ https://pypi.python.org/pypi/tlslite https://github.com/trevp/tlslite"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="BSD public-domain"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +#Refrain for now setting IUSE test and deps of test given test restricted.
42 +IUSE="doc"
43 +
44 +DEPEND="
45 + >=dev-libs/cryptlib-3.3.3[python,${PYTHON_USEDEP}]
46 + || (
47 + dev-python/m2crypto[${PYTHON_USEDEP}]
48 + dev-python/pycrypto[${PYTHON_USEDEP}]
49 + )"
50 +RDEPEND="${DEPEND}"
51 +
52 +RESTRICT="test"
53 +
54 +# Tests still hang
55 +python_test() {
56 + cd tests || die
57 + "${PYTHON}" "${S}"/tests/tlstest.py client localhost:4443 . || die
58 + "${PYTHON}" "${S}"/tests/tlstest.py server localhost:4442 . || die
59 +}
60 +
61 +python_install_all(){
62 + use doc && HTML_DOCS=( docs/. )
63 + distutils-r1_python_install_all
64 +}
65 +
66 +pkg_postinst() {
67 + optfeature "GMP support" dev-python/gmpy
68 +}