summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2022-10-04 13:17:54 +0100
committerMarek Szuba <marecki@gentoo.org>2022-10-04 13:50:21 +0100
commit20a9034cb55abc59e788da1328aa13c3236c5f88 (patch)
tree549deabd337a3d8f51fd7636bc41c82877aea8ce /app-misc/ola
parentapp-misc/ola: support installing Python bindings (diff)
downloadgentoo-20a9034cb55abc59e788da1328aa13c3236c5f88.tar.gz
gentoo-20a9034cb55abc59e788da1328aa13c3236c5f88.tar.bz2
gentoo-20a9034cb55abc59e788da1328aa13c3236c5f88.zip
app-misc/ola: instrument generation of HTML docs
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-misc/ola')
-rw-r--r--app-misc/ola/ola-0.10.8.ebuild18
1 files changed, 17 insertions, 1 deletions
diff --git a/app-misc/ola/ola-0.10.8.ebuild b/app-misc/ola/ola-0.10.8.ebuild
index bcb9094e62e1..e6aea949a42b 100644
--- a/app-misc/ola/ola-0.10.8.ebuild
+++ b/app-misc/ola/ola-0.10.8.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/OpenLightingProject/${PN}/releases/download/${PV}/${
LICENSE="GPL-2+ LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="examples ftdi http osc python rdm-tests tcmalloc test usb zeroconf"
+IUSE="doc examples ftdi http osc python rdm-tests tcmalloc test usb zeroconf"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
rdm-tests? ( python )"
@@ -46,6 +46,10 @@ DEPEND="${RDEPEND}
BDEPEND="sys-devel/bison
sys-devel/flex
virtual/pkgconfig
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )
test? (
dev-util/cppunit
python? (
@@ -71,6 +75,8 @@ src_configure() {
local myeconfargs=(
--disable-fatal-warnings
--with-uucp-lock="/run"
+ $(use_enable doc doxygen-doc)
+ $(use_enable doc doxygen-dot)
$(use_enable examples)
$(use_enable ftdi libftdi)
$(use_enable http)
@@ -84,11 +90,21 @@ src_configure() {
econf "${myeconfargs[@]}"
}
+src_compile() {
+ default
+ use doc && emake doxygen-doc
+}
+
src_install() {
default
find "${ED}" -name '*.la' -delete || die
+ if use doc; then
+ dodoc -r html
+ docompress -x /usr/share/doc/${PF}/html
+ fi
+
if use examples && use python; then
docinto examples
python_fix_shebang python/examples/*.py