diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-08-17 13:12:13 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-08-18 09:56:57 +0200 |
commit | b3807ad9fd687f118d9cdf2e454f7d25d02d61d1 (patch) | |
tree | bb57f8d054f31c7b556e320a16db3ad0b3310551 /dev-python/python-fcl | |
parent | Move dev-python/{dbusmock → python-dbusmock} (diff) | |
download | gentoo-b3807ad9fd687f118d9cdf2e454f7d25d02d61d1.tar.gz gentoo-b3807ad9fd687f118d9cdf2e454f7d25d02d61d1.tar.bz2 gentoo-b3807ad9fd687f118d9cdf2e454f7d25d02d61d1.zip |
Move dev-python/{fcl → python-fcl}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-fcl')
-rw-r--r-- | dev-python/python-fcl/Manifest | 1 | ||||
-rw-r--r-- | dev-python/python-fcl/files/python-fcl-0.0.12-fix-compiling-on-lld.patch | 12 | ||||
-rw-r--r-- | dev-python/python-fcl/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/python-fcl/python-fcl-0.0.12-r1.ebuild | 31 |
4 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/python-fcl/Manifest b/dev-python/python-fcl/Manifest new file mode 100644 index 000000000000..c8d389d0a36c --- /dev/null +++ b/dev-python/python-fcl/Manifest @@ -0,0 +1 @@ +DIST python-fcl-0.0.12.tar.gz 17204 BLAKE2B 594d466270160e71e67d99f1745b382c3b1f7754adeb9ba58443e4370e14496e45f4a7619eb7d41db22766f75fe841e088609014bf5a9ff5a6b7ee526b34eca2 SHA512 3b5462206e63e17c646edeeedb268474cc6df1ff12d64d4de0c46bcc281787a42b6306778d2fe5d4d3b2e23bc0ed86e092c9a39b74d019638c771ac5c9d9f8ce diff --git a/dev-python/python-fcl/files/python-fcl-0.0.12-fix-compiling-on-lld.patch b/dev-python/python-fcl/files/python-fcl-0.0.12-fix-compiling-on-lld.patch new file mode 100644 index 000000000000..0e3cf7a54196 --- /dev/null +++ b/dev-python/python-fcl/files/python-fcl-0.0.12-fix-compiling-on-lld.patch @@ -0,0 +1,12 @@ +--- a/setup.py ++++ b/setup.py +@@ -21,8 +21,7 @@ + include_dirs = ['/usr/include', + '/usr/local/include', + '/usr/include/eigen3'] +- lib_dirs = ['/usr/lib', +- '/usr/local/lib'] ++ lib_dirs = ['/usr/local/lib'] + + if 'CPATH' in os.environ: + include_dirs += os.environ['CPATH'].split(':') diff --git a/dev-python/python-fcl/metadata.xml b/dev-python/python-fcl/metadata.xml new file mode 100644 index 000000000000..5df3748729e8 --- /dev/null +++ b/dev-python/python-fcl/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>3dprint@gentoo.org</email> + <name>Gentoo 3D Printer Project</name> + </maintainer> + <longdescription> + Python-FCL is an (unofficial) Python interface for the Flexible Collision Library (FCL), an excellent C++ + library for performing proximity and collision queries on pairs of geometric models. + </longdescription> + <upstream> + <bugs-to>https://github.com/BerkeleyAutomation/python-fcl/issues</bugs-to> + <remote-id type="github">BerkeleyAutomation/python-fcl</remote-id> + <remote-id type="pypi">python-fcl</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-fcl/python-fcl-0.0.12-r1.ebuild b/dev-python/python-fcl/python-fcl-0.0.12-r1.ebuild new file mode 100644 index 000000000000..950a9e71cccf --- /dev/null +++ b/dev-python/python-fcl/python-fcl-0.0.12-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for the Flexible Collision Library" +HOMEPAGE="https://github.com/BerkeleyAutomation/python-fcl https://pypi.org/project/python-fcl/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +LICENSE="BSD" + +KEYWORDS="~amd64" +SLOT="0" +IUSE="" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + ~sci-libs/fcl-0.5.0 + sci-libs/octomap +" + +PATCHES=( "${FILESDIR}"/${P}-fix-compiling-on-lld.patch ) + +distutils_enable_tests unittest + +python_test() { + "${EPYTHON}" test/test_fcl.py -v || die "tests failed with ${EPYTHON}" +} |