summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2014-04-23 23:59:11 +0000
committerMichael Weber <xmw@gentoo.org>2014-04-23 23:59:11 +0000
commit770421b991740ceeca44c93873bc84097727cfd3 (patch)
tree422807049819bce998c3bb2b7cdca544d5b09b0e /dev-python/pycollada
parentStable for HPPA (bug #508506). (diff)
downloadgentoo-2-770421b991740ceeca44c93873bc84097727cfd3.tar.gz
gentoo-2-770421b991740ceeca44c93873bc84097727cfd3.tar.bz2
gentoo-2-770421b991740ceeca44c93873bc84097727cfd3.zip
Initial import. Ebuild contributed by Fabio Rossi (bug 498592).
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'dev-python/pycollada')
-rw-r--r--dev-python/pycollada/ChangeLog10
-rw-r--r--dev-python/pycollada/metadata.xml8
-rw-r--r--dev-python/pycollada/pycollada-0.4.ebuild65
-rw-r--r--dev-python/pycollada/pycollada-9999.ebuild65
4 files changed, 148 insertions, 0 deletions
diff --git a/dev-python/pycollada/ChangeLog b/dev-python/pycollada/ChangeLog
new file mode 100644
index 000000000000..4e3912860d0b
--- /dev/null
+++ b/dev-python/pycollada/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/pycollada
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycollada/ChangeLog,v 1.1 2014/04/23 23:59:11 xmw Exp $
+
+*pycollada-0.4 (23 Apr 2014)
+*pycollada-9999 (23 Apr 2014)
+
+ 23 Apr 2014; Michael Weber <xmw@gentoo.org> +metadata.xml,
+ +pycollada-0.4.ebuild, +pycollada-9999.ebuild:
+ Initial import. Ebuild contributed by Fabio Rossi (bug 498592).
diff --git a/dev-python/pycollada/metadata.xml b/dev-python/pycollada/metadata.xml
new file mode 100644
index 000000000000..5b80fb94c393
--- /dev/null
+++ b/dev-python/pycollada/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-python/pycollada/pycollada-0.4.ebuild b/dev-python/pycollada/pycollada-0.4.ebuild
new file mode 100644
index 000000000000..c9e74f1872f3
--- /dev/null
+++ b/dev-python/pycollada/pycollada-0.4.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycollada/pycollada-0.4.ebuild,v 1.1 2014/04/23 23:59:11 xmw Exp $
+
+EAPI="5"
+PYTHON_COMPAT=( python{2_7,3_3} )
+PYTHON_MULTIPLE_ABI=1
+
+inherit distutils-r1
+
+DESCRIPTION="python library for reading and writing collada documents"
+HOMEPAGE="http://pycollada.github.com/"
+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"
+
+DEPEND="doc? ( dev-python/sphinx )
+ test? ( dev-python/python-dateutil )"
+RDEPEND="dev-python/numpy
+ dev-python/lxml
+ >=dev-python/python-dateutil-2.0
+ virtual/python-unittest2"
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc ; then
+ pushd docs
+ emake html
+ popd
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ if use doc ; then
+ pushd docs/_build/html
+ dohtml -r *
+ popd
+ fi
+
+ 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
+}
diff --git a/dev-python/pycollada/pycollada-9999.ebuild b/dev-python/pycollada/pycollada-9999.ebuild
new file mode 100644
index 000000000000..6ff6dda783e0
--- /dev/null
+++ b/dev-python/pycollada/pycollada-9999.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycollada/pycollada-9999.ebuild,v 1.1 2014/04/23 23:59:11 xmw Exp $
+
+EAPI="5"
+PYTHON_COMPAT=( python{2_7,3_3} )
+PYTHON_MULTIPLE_ABI=1
+
+inherit distutils-r1 git-2
+
+DESCRIPTION="python library for reading and writing collada documents"
+HOMEPAGE="http://pycollada.github.com/"
+EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="doc examples test"
+
+DEPEND="doc? ( dev-python/sphinx )
+ test? ( dev-python/python-dateutil )"
+RDEPEND="dev-python/numpy
+ dev-python/lxml
+ >=dev-python/python-dateutil-2.0
+ virtual/python-unittest2"
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc ; then
+ pushd docs
+ emake html
+ popd
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ if use doc ; then
+ pushd docs/_build/html
+ dohtml -r *
+ popd
+ fi
+
+ 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
+}