1 | # Copyright 1999-2013 Gentoo Foundation |
1 | # Copyright 1999-2013 Gentoo Foundation |
2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.83 2013/02/08 03:38:09 patrick Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.84 2013/08/03 13:28:22 patrick Exp $ |
4 | |
4 | |
5 | # @ECLASS: distutils.eclass |
5 | # @ECLASS: distutils.eclass |
6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
7 | # Gentoo Python Project <python@gentoo.org> |
7 | # Gentoo Python Project <python@gentoo.org> |
8 | # @BLURB: Eclass for packages with build systems using Distutils |
8 | # @BLURB: Eclass for packages with build systems using Distutils |
… | |
… | |
96 | IUSE="test" |
96 | IUSE="test" |
97 | DEPEND+="${DEPEND:+ }test? ( dev-python/pytest )" |
97 | DEPEND+="${DEPEND:+ }test? ( dev-python/pytest )" |
98 | # trial requires an argument, which is usually equal to "${PN}". |
98 | # trial requires an argument, which is usually equal to "${PN}". |
99 | elif [[ "${DISTUTILS_SRC_TEST}" =~ ^trial(\ .*)?$ ]]; then |
99 | elif [[ "${DISTUTILS_SRC_TEST}" =~ ^trial(\ .*)?$ ]]; then |
100 | IUSE="test" |
100 | IUSE="test" |
101 | DEPEND+="${DEPEND:+ }test? ( dev-python/twisted )" |
101 | DEPEND+="${DEPEND:+ }test? ( dev-python/twisted-core )" |
102 | fi |
102 | fi |
103 | fi |
103 | fi |
104 | |
104 | |
105 | if [[ -n "${DISTUTILS_SRC_TEST}" ]]; then |
105 | if [[ -n "${DISTUTILS_SRC_TEST}" ]]; then |
106 | EXPORT_FUNCTIONS src_test |
106 | EXPORT_FUNCTIONS src_test |