blob: 021b7341322407bb5159ed4788ed66c2005d22fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/tlslite/tlslite-0.3.8-r2.ebuild,v 1.3 2009/12/31 16:29:12 fauli Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
inherit eutils distutils
DESCRIPTION="TLS Lite is a free python library that implements SSL 3.0 and TLS 1.0/1.1"
HOMEPAGE="http://trevp.net/tlslite/"
SRC_URI="http://trevp.net/tlslite/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc gmp"
DEPEND=">=dev-libs/cryptlib-3.3.3[python]
|| (
dev-python/m2crypto
dev-python/pycrypto
)
gmp? ( dev-python/gmpy )"
RDEPEND="${DEPEND}"
RESTRICT_PYTHON_ABIS="3.*"
PYTHON_MODNAME="tlslite"
DOCS="readme.txt"
src_prepare() {
distutils_src_prepare
# Add patch for compatibility with Python 2.5 (bug #204278).
epatch "${FILESDIR}/${P}-python25.diff"
}
src_install(){
distutils_src_install
use doc && dohtml -r docs/.
}
|