commit: 2260e7d02078916bd4301e9d3534a85513588484
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 1 09:11:00 2020 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Sat Feb 1 09:11:46 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2260e7d0
sci-libs/cln: ebuild improvements
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
sci-libs/cln/cln-1.3.6.ebuild | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/sci-libs/cln/cln-1.3.6.ebuild b/sci-libs/cln/cln-1.3.6.ebuild
index 6d68f1bf39d..319cd491c61 100644
--- a/sci-libs/cln/cln-1.3.6.ebuild
+++ b/sci-libs/cln/cln-1.3.6.ebuild
@@ -36,19 +36,22 @@ src_prepare() {
src_compile() {
default
if use doc; then
- cd "${BUILD_DIR}"
+ pushd doc > /dev/null
export VARTEXFONTS="${T}/fonts"
emake html pdf
- DOCS=("${BUILD_DIR}/doc/cln.pdf")
- HTML_DOCS=("${BUILD_DIR}/doc/")
+ DOCS=( doc/cln.pdf )
+ HTML_DOCS=( doc/cln.html )
fi
}
src_install () {
default
+ if use doc; then
+ einstalldocs
+ fi
if use examples; then
docompress -x /usr/share/doc/${PF}/examples
- insinto /usr/share/doc/${PF}/examples
- doins examples/*.cc
+ docinto examples
+ dodoc examples/*.cc
fi
}