commit:     44a425eafb3364ea895097ac59363488b67697a8
Author:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 15 09:30:58 2026 +0000
Commit:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
CommitDate: Sun Feb 15 09:31:51 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44a425ea

app-arch/createrepo_c: USE=doc for live (9999).

This really just forward ports the USE=doc changes.

Signed-off-by: Jaco Kroon <jkroon <AT> gentoo.org>

 app-arch/createrepo_c/createrepo_c-9999.ebuild | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/app-arch/createrepo_c/createrepo_c-9999.ebuild 
b/app-arch/createrepo_c/createrepo_c-9999.ebuild
index ee469aa88aaa..c41f6d18d826 100644
--- a/app-arch/createrepo_c/createrepo_c-9999.ebuild
+++ b/app-arch/createrepo_c/createrepo_c-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020-2025 Gentoo Authors
+# Copyright 2020-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -18,9 +18,13 @@ fi
 LICENSE="GPL-2"
 SLOT="0"
 
-IUSE="legacy test zstd"
+IUSE="doc legacy test zstd"
 RESTRICT="!test? ( test )"
 
+BDEPEND="doc? (
+       app-text/doxygen
+)"
+
 DEPEND="
        app-arch/bzip2:=
        app-arch/drpm
@@ -50,6 +54,7 @@ src_configure() {
                -DWITH_LEGACY_HASHES=$(usex legacy ON OFF)
                -DWITH_LIBMODULEMD=ON
                -DWITH_ZCHUNK=ON
+               -DBUILD_DOC_C=$(usex doc ON OFF)
        )
 
        cmake_src_configure
@@ -59,8 +64,14 @@ src_compile() {
        cmake_src_compile
        # Tests have a magic target!
        use test && cmake_src_compile tests
+       use doc && cmake_src_compile doc-c
 }
 
 src_test() {
        "${S}"_build/tests/run_tests.sh || die "Failed to run C library tests"
 }
+
+src_install() {
+       cmake_src_install
+       use doc && dodoc -r "${BUILD_DIR}/doc/html"
+}

Reply via email to