| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/ecdsa/ecdsa-0.8.ebuild,v 1.1 2012/09/16 20:05:55 blueness Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
PYTHON_DEPEND="2"
|
| 7 |
SUPPORT_PYTHON_ABIS="1"
|
| 8 |
RESTRICT_PYTHON_ABIS="3.*"
|
| 9 |
|
| 10 |
inherit distutils vcs-snapshot
|
| 11 |
|
| 12 |
DESCRIPTION="ECDSA cryptographic signature library in pure Python"
|
| 13 |
HOMEPAGE="http://github.com/warner/python-ecdsa"
|
| 14 |
SRC_URI="https://github.com/warner/python-${PN}/tarball/python-${P} -> ${P}.tar.gz"
|
| 15 |
|
| 16 |
LICENSE="MIT"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="~amd64 ~x86"
|
| 19 |
IUSE="test"
|
| 20 |
|
| 21 |
DEPEND="test? ( dev-libs/openssl:0 )"
|
| 22 |
|
| 23 |
src_test() {
|
| 24 |
testing() {
|
| 25 |
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" ${PN}/test_pyecdsa.py
|
| 26 |
}
|
| 27 |
python_execute_function testing
|
| 28 |
}
|