| 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/pyasn1/pyasn1-0.1.3.ebuild,v 1.2 2012/08/19 10:05:55 ago Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
SUPPORT_PYTHON_ABIS="1"
|
| 7 |
RESTRICT_PYTHON_ABIS="*-jython"
|
| 8 |
|
| 9 |
inherit distutils
|
| 10 |
|
| 11 |
DESCRIPTION="ASN.1 library for Python"
|
| 12 |
HOMEPAGE="http://pyasn1.sourceforge.net/ http://pypi.python.org/pypi/pyasn1"
|
| 13 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
| 14 |
|
| 15 |
LICENSE="BSD"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd"
|
| 18 |
IUSE=""
|
| 19 |
|
| 20 |
DEPEND="dev-python/setuptools"
|
| 21 |
RDEPEND=""
|
| 22 |
|
| 23 |
DOCS="CHANGES README THANKS TODO"
|
| 24 |
|
| 25 |
src_test() {
|
| 26 |
testing() {
|
| 27 |
PYTHONPATH="build-${PYTHON_ABI}/lib:." "$(PYTHON)" test/suite.py
|
| 28 |
}
|
| 29 |
python_execute_function testing
|
| 30 |
}
|
| 31 |
|
| 32 |
src_install() {
|
| 33 |
distutils_src_install
|
| 34 |
dohtml doc/pyasn1-tutorial.html
|
| 35 |
}
|