Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/cmocka/files/, dev-util/cmocka/
Date: Tue, 27 Nov 2018 07:49:17
Message-Id: 1543304932.04c9f723291d93383f60f576a177d7cefddd8ab7.asturm@gentoo
1 commit: 04c9f723291d93383f60f576a177d7cefddd8ab7
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 27 00:18:17 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 27 07:48:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04c9f723
7
8 dev-util/cmocka: Fix USE doc
9
10 Closes: https://bugs.gentoo.org/671404
11 Package-Manager: Portage-2.3.52, Repoman-2.3.12
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 dev-util/cmocka/cmocka-1.1.3.ebuild | 19 ++++++----
15 .../cmocka/files/cmocka-1.1.3-fix-doxygen.patch | 43 ++++++++++++++++++++++
16 2 files changed, 54 insertions(+), 8 deletions(-)
17
18 diff --git a/dev-util/cmocka/cmocka-1.1.3.ebuild b/dev-util/cmocka/cmocka-1.1.3.ebuild
19 index 6ae39d5ba5d..c98c2e9957e 100644
20 --- a/dev-util/cmocka/cmocka-1.1.3.ebuild
21 +++ b/dev-util/cmocka/cmocka-1.1.3.ebuild
22 @@ -15,12 +15,16 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~
23 IUSE="doc static-libs test"
24
25 DEPEND="
26 - doc? ( app-doc/doxygen[latex] )
27 + doc? ( app-doc/doxygen[dot] )
28 "
29 RDEPEND=""
30
31 DOCS=( AUTHORS ChangeLog README.md )
32
33 +PATCHES=(
34 + "${FILESDIR}/${P}-fix-doxygen.patch" # bug 671404
35 +)
36 +
37 multilib_src_configure() {
38 local mycmakeargs=(
39 -DWITH_STATIC_LIB=$(usex static-libs)
40 @@ -32,15 +36,14 @@ multilib_src_configure() {
41 cmake-utils_src_configure
42 }
43
44 +multilib_src_compile() {
45 + cmake-utils_src_compile
46 + multilib_is_native_abi && cmake-utils_src_compile docs
47 +}
48 +
49 multilib_src_install() {
50 if multilib_is_native_abi && use doc; then
51 - pushd doc || die
52 - doxygen Doxyfile || die
53 - rm -f html/*.md5 latex/*.md5 latex/Manifest man/man3/_* || die
54 - dodoc -r html/
55 - dodoc -r latex/
56 - doman man/man3/*.3
57 - popd || die
58 + local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
59 fi
60
61 cmake-utils_src_install
62
63 diff --git a/dev-util/cmocka/files/cmocka-1.1.3-fix-doxygen.patch b/dev-util/cmocka/files/cmocka-1.1.3-fix-doxygen.patch
64 new file mode 100644
65 index 00000000000..c093021aa82
66 --- /dev/null
67 +++ b/dev-util/cmocka/files/cmocka-1.1.3-fix-doxygen.patch
68 @@ -0,0 +1,43 @@
69 +From 1abfea55df24e83c2ea321b5f2b75e1a58963bc6 Mon Sep 17 00:00:00 2001
70 +From: Andreas Schneider <asn@××××××××××.org>
71 +Date: Wed, 24 Oct 2018 16:33:39 +0200
72 +Subject: cmake: Fix doxygen generation
73 +
74 +Fixes #12
75 +
76 +Signed-off-by: Andreas Schneider <asn@××××××××××.org>
77 +---
78 + CMakeLists.txt | 2 +-
79 + doc/CMakeLists.txt | 2 +-
80 + 2 files changed, 2 insertions(+), 2 deletions(-)
81 +
82 +diff --git a/CMakeLists.txt b/CMakeLists.txt
83 +index 88408a9..7778039 100644
84 +--- a/CMakeLists.txt
85 ++++ b/CMakeLists.txt
86 +@@ -51,9 +51,9 @@ if (MINGW)
87 + endif (MINGW)
88 +
89 + # check subdirectories
90 +-add_subdirectory(doc)
91 + add_subdirectory(include)
92 + add_subdirectory(src)
93 ++add_subdirectory(doc)
94 +
95 + include(AddCMockaTest)
96 + if (UNIT_TESTING)
97 +diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
98 +index a7bc65e..6ac7494 100644
99 +--- a/doc/CMakeLists.txt
100 ++++ b/doc/CMakeLists.txt
101 +@@ -38,7 +38,7 @@ if (DOXYGEN_FOUND)
102 +
103 + doxygen_add_docs(docs
104 + ${cmocka-library_SOURCE_DIR}
105 +- ${cmocka-headers_SOURCE_DIR}
106 ++ ${cmocka-header_SOURCE_DIR}
107 + ${CMAKE_CURRENT_SOURCE_DIR})
108 + endif(DOXYGEN_FOUND)
109 +
110 +--
111 +cgit v1.2.1