2015-04-08 16:23:29 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2013-04-29 15:13:43 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2013-04-29 15:13:43 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2015-04-08 16:23:29 +03:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
2013-04-29 15:13:43 +04:00
|
|
|
|
|
|
|
inherit distutils-r1 versionator
|
|
|
|
|
2013-09-03 01:50:58 +04:00
|
|
|
PV_MAJOR_MINOR=$(get_version_component_range 1-2)
|
2013-04-29 15:13:43 +04:00
|
|
|
|
|
|
|
DESCRIPTION="CLI Application Framework for Python"
|
|
|
|
HOMEPAGE="http://builtoncement.com/"
|
|
|
|
SRC_URI="http://builtoncement.com/${PN}/${PV_MAJOR_MINOR}/source/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2013-11-30 00:29:17 +04:00
|
|
|
KEYWORDS="amd64 x86"
|
2013-04-29 15:13:43 +04:00
|
|
|
IUSE="test doc"
|
|
|
|
|
2015-10-02 15:54:29 +03:00
|
|
|
RDEPEND=""
|
2014-08-28 16:36:23 +04:00
|
|
|
DEPEND="${RDEPEND}
|
2015-10-02 15:54:29 +03:00
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
|
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
|
|
|
test? (
|
|
|
|
dev-python/nose[${PYTHON_USEDEP}]
|
|
|
|
dev-python/coverage[${PYTHON_USEDEP}]
|
|
|
|
)"
|
2013-04-29 15:13:43 +04:00
|
|
|
|
|
|
|
DOCS=( ChangeLog CONTRIBUTORS README.md )
|
|
|
|
PATCHES=( "${FILESDIR}"/tests-installation.patch )
|
|
|
|
# https://github.com/cement/cement/issues/185
|
|
|
|
|
|
|
|
python_test() {
|
2015-10-02 15:54:29 +03:00
|
|
|
nosetests --verbose || die "Tests fail with ${EPYTHON}"
|
2013-04-29 15:13:43 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
python_compile_all() {
|
2015-10-02 15:54:29 +03:00
|
|
|
use doc && esetup.py build_sphinx
|
2013-04-29 15:13:43 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
2015-10-02 15:54:29 +03:00
|
|
|
use doc && HTML_DOCS=( doc/build/html/. )
|
2013-04-29 15:13:43 +04:00
|
|
|
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
}
|