Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/octomap/
Date: Tue, 28 Jun 2016 14:40:58
Message-Id: 1467124539.073cfe4fe7f386daea48b28c864d9df4a4039284.aballier@gentoo
1 commit: 073cfe4fe7f386daea48b28c864d9df4a4039284
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 28 14:11:14 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 14:35:39 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=073cfe4f
7
8 sci-libs/octomap: bump to 1.8.0
9
10 Package-Manager: portage-2.3.0
11
12 sci-libs/octomap/Manifest | 1 +
13 sci-libs/octomap/octomap-1.8.0.ebuild | 81 +++++++++++++++++++++++++++++++++++
14 2 files changed, 82 insertions(+)
15
16 diff --git a/sci-libs/octomap/Manifest b/sci-libs/octomap/Manifest
17 index b0a4538..283c59b 100644
18 --- a/sci-libs/octomap/Manifest
19 +++ b/sci-libs/octomap/Manifest
20 @@ -1 +1,2 @@
21 DIST octomap-1.6.8.tar.gz 1588042 SHA256 833adba0d3b203cab0e28a0180490e74bc852a7fea9adf6ee53bbfb8f10bc79a SHA512 43c049f6b53081b83bbf0a38c2f319dc2fb3d799dafb3f45779b2e615d0ac1f6d83bfba592abd93afe34cc51ac39d9081bd7e20f69c4390b68fcc8386a1cb68d WHIRLPOOL f27ad8efbaba51d02d7f1e856607d5a1890354aa2bc172bf20341148c6503cefdb06aacb39c8345de80dd54e6a8f91e59aa254c60b67e9a76c546813aaabca2c
22 +DIST octomap-1.8.0.tar.gz 1584799 SHA256 158f66af55bb660a2aa7d0a00c60c9e5320f6594bd0924748af1471d315d5633 SHA512 61ceeee80de8bcdcfde69c3dd30a218ec7f9e4362b1bae8e80d29dde74875a717cc1cbcfba1a7c3ee7ec0ee954297796ac35052782b98af36448f5c3305bdfa9 WHIRLPOOL 12d1dd64d0b7999aa41c5ed878af63385f25536a32a38b28d168a10560dc6de5ce1148d6f20c310082da765066a8f3f826860f481ae11e1669aa9a15f6365b71
23
24 diff --git a/sci-libs/octomap/octomap-1.8.0.ebuild b/sci-libs/octomap/octomap-1.8.0.ebuild
25 new file mode 100644
26 index 0000000..182eea1
27 --- /dev/null
28 +++ b/sci-libs/octomap/octomap-1.8.0.ebuild
29 @@ -0,0 +1,81 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +SCM=""
37 +if [ "${PV#9999}" != "${PV}" ] ; then
38 + SCM="git-r3"
39 + EGIT_REPO_URI="https://github.com/OctoMap/octomap"
40 +fi
41 +
42 +inherit ${SCM} cmake-utils
43 +
44 +if [ "${PV#9999}" != "${PV}" ] ; then
45 + KEYWORDS=""
46 + SRC_URI=""
47 +else
48 + KEYWORDS="~amd64 ~arm"
49 + SRC_URI="https://github.com/OctoMap/octomap/archive/v${PV}.tar.gz -> ${P}.tar.gz"
50 +fi
51 +
52 +DESCRIPTION="An Efficient Probabilistic 3D Mapping Framework Based on Octrees"
53 +HOMEPAGE="http://octomap.github.io/"
54 +IUSE="qt4 dynamicEDT3D doc"
55 +LICENSE="BSD qt4? ( GPL-2 )"
56 +SLOT="0"
57 +
58 +RDEPEND="
59 + qt4? (
60 + virtual/opengl
61 + dev-qt/qtcore:4
62 + dev-qt/qtgui:4
63 + x11-libs/libQGLViewer
64 + )
65 +"
66 +DEPEND="${RDEPEND}
67 + doc? (
68 + app-doc/doxygen
69 + media-gfx/graphviz
70 + )
71 +"
72 +
73 +src_prepare() {
74 + sed -e 's/DESTINATION lib/DESTINATION ${CMAKE_INSTALL_LIBDIR}/' \
75 + -i */CMakeLists.txt \
76 + -i */CMakeModules/InstallPkgConfigFile.cmake || die
77 + cmake-utils_src_prepare
78 +}
79 +
80 +src_configure() {
81 + local mycmakeargs=(
82 + "-DBUILD_OCTOVIS_SUBPROJECT=$(usex qt4 ON OFF)"
83 + "-DBUILD_DYNAMICETD3D_SUBPROJECT=$(usex dynamicEDT3D ON OFF)"
84 + )
85 + cmake-utils_src_configure
86 +}
87 +
88 +src_compile() {
89 + cmake-utils_src_compile
90 + if use doc ; then
91 + cd "${BUILD_DIR}/octomap"
92 + emake docs
93 + if use dynamicEDT3D ; then
94 + cd "${BUILD_DIR}/dynamicEDT3D"
95 + emake docs_dynamicEDT3D
96 + fi
97 + fi
98 +}
99 +
100 +src_install() {
101 + cmake-utils_src_install
102 + if use doc ; then
103 + insinto /usr/share/doc/${PF}/html/octomap
104 + doins -r "${S}/octomap/doc/html/"*
105 + if use dynamicEDT3D ; then
106 + insinto /usr/share/doc/${PF}/html/dynamicEDT3D
107 + doins -r "${S}/dynamicEDT3D/doc/html/"*
108 + fi
109 + fi
110 +}