You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/oslo-i18n/oslo-i18n-1.6.0.ebuild,v 1.1 2015/04/22 20:35:11 prometheanfire Exp $
|
||
10 years ago
|
|
||
|
EAPI=5
|
||
10 years ago
|
PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
|
||
10 years ago
|
|
||
9 years ago
|
inherit distutils-r1 vcs-snapshot
|
||
10 years ago
|
|
||
|
MY_PN=${PN/-/.}
|
||
|
|
||
9 years ago
|
DESCRIPTION="Oslo i18n library"
|
||
|
HOMEPAGE="http://launchpad.net/oslo"
|
||
|
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
|
||
10 years ago
|
|
||
|
LICENSE="Apache-2.0"
|
||
|
SLOT="0"
|
||
10 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
10 years ago
|
IUSE="doc test"
|
||
|
|
||
9 years ago
|
CDEPEND=">dev-python/oslotest-1.10.0[${PYTHON_USEDEP}]"
|
||
|
CRDEPEND=">=dev-python/pbr-1.8[${PYTHON_USEDEP}]"
|
||
10 years ago
|
DEPEND="
|
||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||
9 years ago
|
${CRDEPEND}
|
||
10 years ago
|
test? (
|
||
9 years ago
|
${CDEPEND}
|
||
|
>=dev-python/mock-1.2[${PYTHON_USEDEP}]
|
||
|
>=dev-python/oslo-config-2.3.0[${PYTHON_USEDEP}]
|
||
10 years ago
|
)
|
||
|
doc? (
|
||
9 years ago
|
${CDEPEND}
|
||
|
>=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
|
||
10 years ago
|
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||
|
!~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
|
||
|
<dev-python/sphinx-1.3[${PYTHON_USEDEP}]
|
||
|
)
|
||
|
"
|
||
|
RDEPEND="
|
||
9 years ago
|
${CRDEPEND}
|
||
10 years ago
|
>=dev-python/Babel-1.3[${PYTHON_USEDEP}]
|
||
9 years ago
|
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||
10 years ago
|
"
|
||
|
|
||
10 years ago
|
python_compile_all() {
|
||
10 years ago
|
use doc && esetup.py build_sphinx
|
||
|
}
|
||
|
|
||
|
python_test() {
|
||
|
rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPYTHON}"
|
||
|
|
||
|
testr init || die "testr init failed under ${EPYTHON}"
|
||
|
testr run || die "testr run failed under ${EPYTHON}"
|
||
|
}
|
||
|
|
||
|
python_install_all() {
|
||
|
use doc && local HTML_DOCS=( doc/build/html/. )
|
||
|
|
||
|
distutils-r1_python_install_all
|
||
|
}
|