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@googlemail.com>
This commit is contained in:
Oliver Freyermuth
2022-02-26 19:06:28 +01:00
parent 70e2318b64
commit 77fbcd6c68

View File

@@ -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
}