2014-07-07 10:31:30 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2013-04-29 15:13:43 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-11-24 22:49:09 +03:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/cement/cement-2.0.2.ebuild,v 1.8 2014/11/24 14:49:01 pacho Exp $
|
2013-04-29 15:13:43 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2014-11-24 22:49:09 +03:00
|
|
|
PYTHON_COMPAT=( python{2_6,2_7,3_2,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"
|
|
|
|
|
2014-08-28 16:36:23 +04:00
|
|
|
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
2013-04-29 15:13:43 +04:00
|
|
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
2014-08-28 16:36:23 +04:00
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
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() {
|
|
|
|
nosetests || die "Tests fail with ${EPYTHON}"
|
|
|
|
}
|
|
|
|
|
|
|
|
python_compile_all() {
|
|
|
|
if use doc; then
|
2013-09-03 01:50:58 +04:00
|
|
|
"${PYTHON}" setup.py build_sphinx || die "couldn't build docs"
|
2013-04-29 15:13:43 +04:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
|
|
|
use doc && HTML_DOCS=( doc/build/html/* )
|
|
|
|
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
}
|