sci-libs/rtabmap: Bump to 0.12.1; install package.xml in our custom path
authorAlexis Ballier <aballier@gentoo.org>
Tue, 28 Feb 2017 09:46:02 +0000 (10:46 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 28 Feb 2017 11:26:49 +0000 (12:26 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

sci-libs/rtabmap/Manifest
sci-libs/rtabmap/rtabmap-0.12.1.ebuild [new file with mode: 0644]
sci-libs/rtabmap/rtabmap-9999.ebuild

index 30ae6d3a428851cd8b6e461853f1f34b82c37203..e9f6364019e39eafa921168f1cd5da41f8b53d89 100644 (file)
@@ -1 +1,2 @@
 DIST rtabmap-0.11.14.tar.gz 18997635 SHA256 3ca1e46889fe91e83e0de56baa8c8121cc68e0efd1039bd2684323faa8a52b25 SHA512 0793dbe7e58857ef6b5d00296cfe45a2df69d89fac422d3c43d8b550588c500b53b7a0af05683517d40b56e6f7d2af6b9e0dbdbcb1899a49e9736745feee75ae WHIRLPOOL fed930d36bbfcb142a29d010207ece168cb2c8c99f73636bfa0f8bca6d7265dc09b76026715a4b23200ba268022c00be177e28059b7c3c7d83aeb0e4b8eaadcd
+DIST rtabmap-0.12.1.tar.gz 19417321 SHA256 9da5800a573257f764130a12ded3d8e893faa3b1d54ec30c673c59a14e40af03 SHA512 23b689af9f3b8746076d6042d4c882680116347ec0e6babdf5dd659bd3bf56b0bceadf905a67f416da90d04cc8acbc8972ee52d43237f9681b067a08ed15f600 WHIRLPOOL 03f3d353603dd679362c76a18c670c40066f79d4c33c128d0fa6cbea1185227596f434de7f1c1b73a31a895df08a5c46bc1a711e7bdcf5d6a4c41ff620e51012
diff --git a/sci-libs/rtabmap/rtabmap-0.12.1.ebuild b/sci-libs/rtabmap/rtabmap-0.12.1.ebuild
new file mode 100644 (file)
index 0000000..9de4fb5
--- /dev/null
@@ -0,0 +1,63 @@
+# 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/introlab/rtabmap"
+fi
+
+inherit ${SCM} cmake-utils multilib
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+       KEYWORDS=""
+       SRC_URI=""
+else
+       KEYWORDS="~amd64"
+       SRC_URI="https://github.com/introlab/rtabmap/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="Real-Time Appearance-Based Mapping (RGB-D Graph SLAM)"
+HOMEPAGE="http://introlab.github.io/rtabmap/"
+LICENSE="BSD"
+SLOT="0"
+IUSE="examples ieee1394 openni2 qt5"
+
+RDEPEND="
+       media-libs/opencv:=[qt5(-)?]
+       sci-libs/pcl:=[openni,vtk]
+       sci-libs/vtk:=[qt5(-)?]
+       sys-libs/zlib
+       sci-libs/octomap:=
+       ieee1394? ( media-libs/libdc1394 )
+       openni2? ( dev-libs/OpenNI2 )
+       qt5? (
+               dev-qt/qtwidgets:5
+               dev-qt/qtcore:5
+               dev-qt/qtgui:5
+               dev-qt/qtsvg:5
+       )
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
+
+src_configure() {
+       local mycmakeargs=(
+               "-DWITH_QT=$(usex qt5 ON OFF)"
+               "-DWITH_DC1394=$(usex ieee1394 ON OFF)"
+               "-DWITH_OPENNI2=$(usex openni2 ON OFF)"
+               "-DBUILD_EXAMPLES=$(usex examples ON OFF)"
+       )
+       cmake-utils_src_configure
+}
+
+src_install() {
+       cmake-utils_src_install
+       # Needed since we force ros crawling to be done only in
+       # /usr/share/ros_packages/
+       insinto /usr/share/ros_packages/${PN}
+       doins "${ED}/usr/share/${PN}/package.xml"
+}
index a4df9bc1b2e8c85d3e157f6e95c0d9926190ce20..9de4fb5d4121a4eb80da6f3571d33f8c02104227 100644 (file)
@@ -53,3 +53,11 @@ src_configure() {
        )
        cmake-utils_src_configure
 }
+
+src_install() {
+       cmake-utils_src_install
+       # Needed since we force ros crawling to be done only in
+       # /usr/share/ros_packages/
+       insinto /usr/share/ros_packages/${PN}
+       doins "${ED}/usr/share/${PN}/package.xml"
+}