mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-27 03:47:32 -07:00
* remove old 0.4 * bump to EAPI 7 * add myself as maintainer (see https://archives.gentoo.org/gentoo-dev/message/3d497dc197a35250614437572ef80e4b) Closes: https://bugs.gentoo.org/518388 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Bernd Waibel <waebbl@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/10689 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
70 lines
1.5 KiB
Bash
70 lines
1.5 KiB
Bash
# Copyright 1999-2018 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI="7"
|
|
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
|
PYTHON_MULTIPLE_ABI=1
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Python library for reading and writing COLLADA documents"
|
|
HOMEPAGE="https://pycollada.readthedocs.org/"
|
|
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="doc examples test"
|
|
|
|
RDEPEND="
|
|
dev-python/lxml[${PYTHON_USEDEP}]
|
|
dev-python/numpy[${PYTHON_USEDEP}]
|
|
>=dev-python/python-dateutil-2.2[${PYTHON_USEDEP}]
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
|
test? ( dev-python/python-dateutil[${PYTHON_USEDEP}] )
|
|
"
|
|
|
|
REQUIRED_USE="${PYTHON_REQ_USE}"
|
|
|
|
DOCS=( AUTHORS.md CHANGELOG.rst COPYING README.markdown )
|
|
|
|
src_compile() {
|
|
distutils-r1_src_compile
|
|
|
|
if use doc ; then
|
|
pushd docs > /dev/null || die
|
|
emake html
|
|
popd > /dev/null || die
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
distutils-r1_src_install
|
|
|
|
use doc && local HTML_DOCS=( docs/_build/html/. )
|
|
einstalldocs
|
|
|
|
if use examples ; then
|
|
insinto /usr/share/${P}/
|
|
doins -r examples
|
|
fi
|
|
|
|
install_test_data() {
|
|
insinto $(python_get_sitedir)/collada/tests/
|
|
doins -r collada/tests/data
|
|
}
|
|
python_foreach_impl install_test_data
|
|
}
|
|
|
|
src_test() {
|
|
test_collada() {
|
|
for script in "${S}"/collada/tests/*.py ; do
|
|
PYTHONPATH="${S}" $EPYTHON "${script}"
|
|
done
|
|
}
|
|
python_foreach_impl test_collada
|
|
}
|