Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/jwt-cpp/
Date: Sat, 26 Feb 2022 18:16:51
Message-Id: 1645898788.77fbcd6c6801d575129bf869681102776c72e280.flow@gentoo
1 commit: 77fbcd6c6801d575129bf869681102776c72e280
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sat Feb 26 18:06:28 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 18:06:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=77fbcd6c
7
8 dev-cpp/jwt-cpp: Fix docs generation and installation.
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
12
13 dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 18 ++++++++++++++++--
14 1 file changed, 16 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
17 index 5dfa4fd92..f877455f8 100644
18 --- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
19 +++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
20 @@ -24,9 +24,10 @@ IUSE="doc +picojson test"
21 DEPEND="${RDEPEND}
22 dev-cpp/nlohmann_json
23 dev-libs/openssl
24 - picojson? ( dev-cpp/picojson )
25 - doc? ( app-doc/doxygen[dot] )"
26 + picojson? ( dev-cpp/picojson )"
27 +BDEPEND="doc? ( app-doc/doxygen[dot] )"
28 RESTRICT="!picojson? ( test )"
29 +DOCS=( README.md docs/{faqs,ssl,traits}.md )
30
31 src_prepare() {
32 # Unbundle dev-cpp/nlohmann_json.
33 @@ -53,6 +54,19 @@ src_configure() {
34 cmake_src_configure
35 }
36
37 +src_compile() {
38 + cmake_src_compile
39 + if use doc; then
40 + doxygen || die
41 + fi
42 +}
43 +
44 +src_install() {
45 + cmake_src_install
46 + use doc && local HTML_DOCS=(doxy/html/.)
47 + einstalldocs
48 +}
49 +
50 src_test() {
51 "${BUILD_DIR}"/tests/jwt-cpp-test || die
52 }