diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-02-28 11:53:39 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-02-28 12:26:51 +0100 |
commit | 6a4b07fb26999efa7b5627ed31fad3732fa0860c (patch) | |
tree | 3f44a6a411de2400d616a32bbe0567c60494ae49 /sci-libs/octomap/octomap-1.8.1.ebuild | |
parent | dev-ros/urdf_parser_plugin: remove old (diff) | |
download | gentoo-6a4b07fb26999efa7b5627ed31fad3732fa0860c.tar.gz gentoo-6a4b07fb26999efa7b5627ed31fad3732fa0860c.tar.bz2 gentoo-6a4b07fb26999efa7b5627ed31fad3732fa0860c.zip |
sci-libs/octomap: Bump to 1.8.1 and install package.xml in our custom gentoo path from ebuild instead of patching.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sci-libs/octomap/octomap-1.8.1.ebuild')
-rw-r--r-- | sci-libs/octomap/octomap-1.8.1.ebuild | 88 |
1 files changed, 88 insertions, 0 deletions
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..a80cadce5c00 --- /dev/null +++ b/sci-libs/octomap/octomap-1.8.1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |