summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyasn1/pyasn1-0.1.6.ebuild')
-rw-r--r--dev-python/pyasn1/pyasn1-0.1.6.ebuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/dev-python/pyasn1/pyasn1-0.1.6.ebuild b/dev-python/pyasn1/pyasn1-0.1.6.ebuild
index 4eca8b0fe3a8..43c14e264793 100644
--- a/dev-python/pyasn1/pyasn1-0.1.6.ebuild
+++ b/dev-python/pyasn1/pyasn1-0.1.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyasn1/pyasn1-0.1.6.ebuild,v 1.2 2013/01/15 16:42:13 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyasn1/pyasn1-0.1.6.ebuild,v 1.3 2013/02/21 08:55:18 mgorny Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2} pypy{1_9,2_0} )
@@ -20,15 +20,12 @@ RDEPEND=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
python_test() {
- "${PYTHON}" test/suite.py
+ "${PYTHON}" test/suite.py || die "Tests fail with ${EPYTHON}"
}
src_install() {
- distutils-r1_src_install
+ local HTML_DOCS=( doc/pyasn1-tutorial.html )
+ use doc && HTML_DOCS=( doc/. )
- if use doc; then
- dohtml doc/*
- else
- dohtml doc/pyasn1-tutorial.html
- fi
+ distutils-r1_src_install
}