commit:     77fbcd6c6801d575129bf869681102776c72e280
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sat Feb 26 18:06:28 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Feb 26 18:06:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=77fbcd6c

dev-cpp/jwt-cpp: Fix docs generation and installation.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>

 dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild 
b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
index 5dfa4fd92..f877455f8 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
@@ -24,9 +24,10 @@ IUSE="doc +picojson test"
 DEPEND="${RDEPEND}
        dev-cpp/nlohmann_json
        dev-libs/openssl
-       picojson? ( dev-cpp/picojson )
-       doc? ( app-doc/doxygen[dot] )"
+       picojson? ( dev-cpp/picojson )"
+BDEPEND="doc? ( app-doc/doxygen[dot] )"
 RESTRICT="!picojson? ( test )"
+DOCS=( README.md docs/{faqs,ssl,traits}.md )
 
 src_prepare() {
        # Unbundle dev-cpp/nlohmann_json.
@@ -53,6 +54,19 @@ src_configure() {
        cmake_src_configure
 }
 
+src_compile() {
+       cmake_src_compile
+       if use doc; then
+               doxygen || die
+       fi
+}
+
+src_install() {
+       cmake_src_install
+       use doc && local HTML_DOCS=(doxy/html/.)
+       einstalldocs
+}
+
 src_test() {
        "${BUILD_DIR}"/tests/jwt-cpp-test || die
 }

Reply via email to