1 |
commit: 5ff80052f3b98b6e9ab08ddf4c1d11238a2187fc |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 27 22:44:31 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 27 22:44:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ff80052 |
7 |
|
8 |
sci-libs/orocos-bfl: [QA] port to cmake.eclass |
9 |
|
10 |
Closes: https://bugs.gentoo.org/770592 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild | 43 +++++++++++++++-------------- |
14 |
1 file changed, 22 insertions(+), 21 deletions(-) |
15 |
|
16 |
diff --git a/sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild b/sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild |
17 |
index bc79a85db067..ad5ae2e60d63 100644 |
18 |
--- a/sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild |
19 |
+++ b/sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild |
20 |
@@ -1,9 +1,9 @@ |
21 |
-# Copyright 1999-2020 Gentoo Authors |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=5 |
26 |
+EAPI=8 |
27 |
|
28 |
-inherit cmake-utils |
29 |
+inherit cmake |
30 |
|
31 |
DESCRIPTION="Bayesian Filtering Library" |
32 |
HOMEPAGE="https://orocos.org/bfl" |
33 |
@@ -12,54 +12,55 @@ SRC_URI="https://people.mech.kuleuven.be/~tdelaet/bfl_tar/${P}-src.tar.bz2" |
34 |
LICENSE="LGPL-2.1" |
35 |
SLOT="0" |
36 |
KEYWORDS="~amd64 ~arm" |
37 |
-IUSE="doc examples static-libs test" |
38 |
+IUSE="doc test" |
39 |
RESTRICT="!test? ( test )" |
40 |
|
41 |
RDEPEND="dev-libs/boost:=" |
42 |
DEPEND="${RDEPEND} |
43 |
+ test? ( dev-util/cppunit )" |
44 |
+BDEPEND=" |
45 |
virtual/pkgconfig |
46 |
doc? ( |
47 |
app-doc/doxygen |
48 |
virtual/latex-base |
49 |
- ) |
50 |
- test? ( dev-util/cppunit )" |
51 |
+ )" |
52 |
|
53 |
src_prepare() { |
54 |
- cmake-utils_src_prepare |
55 |
+ cmake_src_prepare |
56 |
|
57 |
sed -e 's:/lib:/${CMAKE_INSTALL_LIBDIR}:' \ |
58 |
- -i "${S}/"{,src/,src/bindings/rtt/}CMakeLists.txt || die |
59 |
+ -i {,src/,src/bindings/rtt/}CMakeLists.txt || die |
60 |
} |
61 |
|
62 |
src_configure() { |
63 |
local mycmakeargs=( |
64 |
- "-DLIBRARY_TYPE=$(usex static-libs both shared)" |
65 |
- "-DBUILD_EXAMPLES=$(usex examples ON OFF)" |
66 |
- "-DBUILD_TESTS=$(usex test ON OFF)" |
67 |
+ -DLIBRARY_TYPE=shared |
68 |
+ # installs test binaries |
69 |
+ -DBUILD_EXAMPLES=NO |
70 |
+ -DBUILD_TESTS=$(usex test) |
71 |
) |
72 |
- cmake-utils_src_configure |
73 |
+ cmake_src_configure |
74 |
} |
75 |
|
76 |
src_compile() { |
77 |
- cmake-utils_src_compile |
78 |
+ cmake_src_compile |
79 |
+ |
80 |
if use doc ; then |
81 |
- cd "${BUILD_DIR}" |
82 |
+ cd "${BUILD_DIR}" || die |
83 |
doxygen || die |
84 |
cd "${S}/docs" || die |
85 |
pdflatex getting_started_guide || die |
86 |
pdflatex getting_started_guide || die |
87 |
+ |
88 |
+ HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) |
89 |
fi |
90 |
} |
91 |
|
92 |
src_test() { |
93 |
- cd "${BUILD_DIR}" |
94 |
- emake check |
95 |
+ cmake_build check |
96 |
} |
97 |
|
98 |
src_install() { |
99 |
- cmake-utils_src_install |
100 |
- if use doc ; then |
101 |
- dohtml -r "${BUILD_DIR}/doc/html/" |
102 |
- dodoc "${S}/docs/getting_started_guide.pdf" |
103 |
- fi |
104 |
+ cmake_src_install |
105 |
+ use doc && dodoc docs/getting_started_guide.pdf |
106 |
} |