commit:     a198714a5463ef7514d6dd59c8c7e431c336aedc
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Mon Oct  6 03:59:09 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct  8 05:50:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a198714a

games-emulation/gambatte-jg: add USE doc

Signed-off-by: orbea <orbea <AT> riseup.net>
Part-of: https://github.com/gentoo/gentoo/pull/44060
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-emulation/gambatte-jg/gambatte-jg-9999.ebuild | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/games-emulation/gambatte-jg/gambatte-jg-9999.ebuild 
b/games-emulation/gambatte-jg/gambatte-jg-9999.ebuild
index 27a88940bf39..027e197709d4 100644
--- a/games-emulation/gambatte-jg/gambatte-jg-9999.ebuild
+++ b/games-emulation/gambatte-jg/gambatte-jg-9999.ebuild
@@ -3,7 +3,10 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+DOCS_BUILDER="doxygen"
+DOCS_DIR="objs/doc"
+
+inherit docs toolchain-funcs
 
 MY_PN=${PN%-*}
 MY_P=${MY_PN}-${PV}
@@ -25,7 +28,10 @@ LICENSE="
 "
 SLOT="1"
 IUSE="examples +jgmodule shared"
-REQUIRED_USE="|| ( examples jgmodule shared )"
+REQUIRED_USE="
+       || ( examples jgmodule shared )
+       doc? ( shared )
+"
 
 DEPEND="
        examples? (
@@ -61,6 +67,8 @@ src_compile() {
                ${MY_MAKEOPTS}
        )
        emake "${mymakeargs[@]}"
+       use doc && emake doxyfile
+       docs_compile
 }
 
 src_install() {
@@ -72,4 +80,5 @@ src_install() {
                ${MY_MAKEOPTS}
        )
        emake install "${mymakeargs[@]}"
+       use doc && einstalldocs
 }

Reply via email to