summaryrefslogtreecommitdiff
path: root/sci-libs/octomap
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/octomap
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/octomap')
-rw-r--r--sci-libs/octomap/Manifest6
-rw-r--r--sci-libs/octomap/metadata.xml17
-rw-r--r--sci-libs/octomap/octomap-1.8.1.ebuild87
-rw-r--r--sci-libs/octomap/octomap-9999.ebuild87
4 files changed, 197 insertions, 0 deletions
diff --git a/sci-libs/octomap/Manifest b/sci-libs/octomap/Manifest
new file mode 100644
index 000000000000..ab4a68995a3e
--- /dev/null
+++ b/sci-libs/octomap/Manifest
@@ -0,0 +1,6 @@
+DIST octomap-1.8.1.tar.gz 1679526 SHA256 8b18ef7693e87f1400b9a8bc41f86e3b28259ac98c0b458037232652380aa6af SHA512 e35567da0d6741747abbc87de49733d0e92bae8aedfe66a63766740cc6566f3cfdbc3c986369177497cc9a8fb208ed9b727da496cec48e2ad23328df06fbc8d6 WHIRLPOOL 7bad33e4bb01ef0d0599d4e7ea6b323e4aacb06d9f5e8d4a05b52aa0be72d205735402ed25f2ff3fcad6636f838124453f61bff1808fbe75154a4e7d32d1ded3
+EBUILD octomap-1.8.1.ebuild 1839 SHA256 6f52c6363f0f7043ef232a7cbf594e4668df4c65270a849c3b8192e0b792136f SHA512 d5b238fd8dcfa388bf9c8f9a6804766b7433e6e6c79e63846b0890963c994293ea955af6639eaf2cefd16a804a7077c5af36d91fbe50196796fdf6f37d36f74a WHIRLPOOL 0a20cc14f8695ed4b50b4af0ca645e958bf78142b276f1e7bd94ab9f8445177cf74a42580dcffcd8e38269b0feef910533a94e46e7c03410edc3fc12c2b38a5c
+EBUILD octomap-9999.ebuild 1839 SHA256 6f52c6363f0f7043ef232a7cbf594e4668df4c65270a849c3b8192e0b792136f SHA512 d5b238fd8dcfa388bf9c8f9a6804766b7433e6e6c79e63846b0890963c994293ea955af6639eaf2cefd16a804a7077c5af36d91fbe50196796fdf6f37d36f74a WHIRLPOOL 0a20cc14f8695ed4b50b4af0ca645e958bf78142b276f1e7bd94ab9f8445177cf74a42580dcffcd8e38269b0feef910533a94e46e7c03410edc3fc12c2b38a5c
+MISC ChangeLog 3175 SHA256 08b90583cdf7942c86191479f5d868bf465c8215ef27427e1bca7b651e33a389 SHA512 6789c4dfa7a0af71ca60fb387bcc70a632eab091e251689f39b985601817e1bc0485d627d118cb131f7b8b1466f30237acdc4fdc6c97d3f2043b19678907b5ef WHIRLPOOL a6d5b6af19a8855f356b3d58fe00296e131e5f519941a3edc28dbf5db801c3978c7f7393e04d27d59d6608f37056b5687c8915e6b2e05ed916b694f4ce05773b
+MISC ChangeLog-2015 524 SHA256 867586cd4bbef6d254bac6bfb8e1b217ffa8c78823b69f7701ce8ccd1c42acb4 SHA512 e36f8999a813e86442588ce532000f3344086735e87653e8fb444957cb0bea84bcbb860af8298562fb657f4a680dc14b90a94f5b050309c47a894c58cff1ef04 WHIRLPOOL b6c7fa09e5769ee5d5ee839e076318c3d91972c4690d522003a5e8f473d6d25971c9f712e5a1e50cf88b0c92d0fbaef892bc262f509209903ec292a7b0dcc52f
+MISC metadata.xml 703 SHA256 30883addc464d666b51aa2e7b2674f7ed2d55a63c891464eb360403fdc8c074f SHA512 66b3c9143aea83a044a719031b4eb0d140e599048885ca6bb02e74ebebbbd2e9abccf11dc0af32e6ce94d3849dcf639ebaf34ff2c8d6e34f32767e08e465c6b0 WHIRLPOOL 8d5e109a0dfbcd32d8810e808b10dcf7dd41a86b913ed492a2726b873916d3e5289da914f766106ef1183feab8a6dd2e1eef8d71f2bda84b472efa51d5d9828d
diff --git a/sci-libs/octomap/metadata.xml b/sci-libs/octomap/metadata.xml
new file mode 100644
index 000000000000..d6afbe70c1f9
--- /dev/null
+++ b/sci-libs/octomap/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="person">
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+ </maintainer>
+ <longdescription lang="en">
+ The OctoMap library implements a 3D occupancy grid mapping approach, providing data structures and mapping algorithms in C++ particularly suited for robotics.
+</longdescription>
+ <use>
+ <flag name="dynamicEDT3D">Build and install dynamicEDT3D library: A library for incrementally updatable Euclidean distance transforms in 3D.</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">OctoMap/octomap</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-libs/octomap/octomap-1.8.1.ebuild b/sci-libs/octomap/octomap-1.8.1.ebuild
new file mode 100644
index 000000000000..30141845c394
--- /dev/null
+++ b/sci-libs/octomap/octomap-1.8.1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/OctoMap/octomap"
+fi
+
+inherit ${SCM} cmake-utils
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="~amd64 ~arm"
+ SRC_URI="https://github.com/OctoMap/octomap/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="An Efficient Probabilistic 3D Mapping Framework Based on Octrees"
+HOMEPAGE="http://octomap.github.io/"
+IUSE="qt4 dynamicEDT3D doc"
+LICENSE="BSD qt4? ( GPL-2 )"
+SLOT="0"
+
+RDEPEND="
+ qt4? (
+ virtual/opengl
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ x11-libs/libQGLViewer:=
+ )
+"
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )
+"
+
+src_prepare() {
+ sed -e 's/DESTINATION lib/DESTINATION ${CMAKE_INSTALL_LIBDIR}/' \
+ -i */CMakeLists.txt \
+ -i */CMakeModules/InstallPkgConfigFile.cmake || die
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "-DBUILD_OCTOVIS_SUBPROJECT=$(usex qt4 ON OFF)"
+ "-DBUILD_DYNAMICETD3D_SUBPROJECT=$(usex dynamicEDT3D ON OFF)"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc ; then
+ cd "${BUILD_DIR}/octomap"
+ emake docs
+ if use dynamicEDT3D ; then
+ cd "${BUILD_DIR}/dynamicEDT3D"
+ emake docs_dynamicEDT3D
+ fi
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use doc ; then
+ insinto /usr/share/doc/${PF}/html/octomap
+ doins -r "${S}/octomap/doc/html/"*
+ if use dynamicEDT3D ; then
+ insinto /usr/share/doc/${PF}/html/dynamicEDT3D
+ doins -r "${S}/dynamicEDT3D/doc/html/"*
+ fi
+ fi
+
+ insinto /usr/share/ros_packages/${PN}
+ doins "${ED}/usr/share/${PN}/package.xml"
+ if use qt4; then
+ insinto /usr/share/ros_packages/octovis
+ doins "${ED}/usr/share/octovis/package.xml"
+ fi
+}
diff --git a/sci-libs/octomap/octomap-9999.ebuild b/sci-libs/octomap/octomap-9999.ebuild
new file mode 100644
index 000000000000..30141845c394
--- /dev/null
+++ b/sci-libs/octomap/octomap-9999.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/OctoMap/octomap"
+fi
+
+inherit ${SCM} cmake-utils
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="~amd64 ~arm"
+ SRC_URI="https://github.com/OctoMap/octomap/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="An Efficient Probabilistic 3D Mapping Framework Based on Octrees"
+HOMEPAGE="http://octomap.github.io/"
+IUSE="qt4 dynamicEDT3D doc"
+LICENSE="BSD qt4? ( GPL-2 )"
+SLOT="0"
+
+RDEPEND="
+ qt4? (
+ virtual/opengl
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ x11-libs/libQGLViewer:=
+ )
+"
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )
+"
+
+src_prepare() {
+ sed -e 's/DESTINATION lib/DESTINATION ${CMAKE_INSTALL_LIBDIR}/' \
+ -i */CMakeLists.txt \
+ -i */CMakeModules/InstallPkgConfigFile.cmake || die
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "-DBUILD_OCTOVIS_SUBPROJECT=$(usex qt4 ON OFF)"
+ "-DBUILD_DYNAMICETD3D_SUBPROJECT=$(usex dynamicEDT3D ON OFF)"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc ; then
+ cd "${BUILD_DIR}/octomap"
+ emake docs
+ if use dynamicEDT3D ; then
+ cd "${BUILD_DIR}/dynamicEDT3D"
+ emake docs_dynamicEDT3D
+ fi
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use doc ; then
+ insinto /usr/share/doc/${PF}/html/octomap
+ doins -r "${S}/octomap/doc/html/"*
+ if use dynamicEDT3D ; then
+ insinto /usr/share/doc/${PF}/html/dynamicEDT3D
+ doins -r "${S}/dynamicEDT3D/doc/html/"*
+ fi
+ fi
+
+ insinto /usr/share/ros_packages/${PN}
+ doins "${ED}/usr/share/${PN}/package.xml"
+ if use qt4; then
+ insinto /usr/share/ros_packages/octovis
+ doins "${ED}/usr/share/octovis/package.xml"
+ fi
+}