Gentoo Archives: gentoo-commits

From: Julian Ospald <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/m2crypto/
Date: Sat, 03 Oct 2015 15:20:12
Message-Id: 1443885583.d8a8b3bb75c710f8731a512291aa2c6fae47aca5.hasufell@gentoo
1 commit: d8a8b3bb75c710f8731a512291aa2c6fae47aca5
2 Author: Julian Ospald <hasufell <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 3 15:19:43 2015 +0000
4 Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 3 15:19:43 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8a8b3bb
7
8 dev-python/m2crypto: add libressl support
9
10 dev-python/m2crypto/m2crypto-0.22.3-r5.ebuild | 44 +++++++++++++++++++++++++++
11 1 file changed, 44 insertions(+)
12
13 diff --git a/dev-python/m2crypto/m2crypto-0.22.3-r5.ebuild b/dev-python/m2crypto/m2crypto-0.22.3-r5.ebuild
14 new file mode 100644
15 index 0000000..70bd900
16 --- /dev/null
17 +++ b/dev-python/m2crypto/m2crypto-0.22.3-r5.ebuild
18 @@ -0,0 +1,44 @@
19 +# Copyright 1999-2015 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI=5
24 +
25 +PYTHON_COMPAT=( python2_7 )
26 +PYTHON_REQ_USE="threads(+)"
27 +
28 +inherit distutils-r1
29 +
30 +MY_PN="M2Crypto"
31 +
32 +DESCRIPTION="M2Crypto: A Python crypto and SSL toolkit"
33 +HOMEPAGE="https://github.com/martinpaljak/M2Crypto https://pypi.python.org/pypi/M2Crypto"
34 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
39 +IUSE="libressl"
40 +
41 +RDEPEND="
42 + !libressl? ( >=dev-libs/openssl-0.9.8:0= )
43 + libressl? ( dev-libs/libressl:= )
44 +"
45 +DEPEND="${RDEPEND}
46 + >=dev-lang/swig-1.3.28:0
47 + dev-python/setuptools[${PYTHON_USEDEP}]
48 +"
49 +
50 +S="${WORKDIR}/${MY_PN}-${PV}"
51 +
52 +# Tests access network, and fail randomly. Bug #431458.
53 +RESTRICT=test
54 +
55 +PATCHES=(
56 + "${FILESDIR}"/0.22.3-Use-swig-generated-python-loader.patch
57 + "${FILESDIR}"/0.22.3-packaging.patch
58 +)
59 +
60 +python_test() {
61 + esetup.py test
62 +}