commit: 469197fae79659e03789e6c58e57597a9ecda82c
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 27 01:16:09 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec 27 01:19:06 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=469197fa
app-doc/kicad-doc: use asciidoc, use ${PF} for docs
- Use asciidoc for now (not clear if upstream will continue to allow it though)
- ${PF} should work now with a corresponding change in kicad
(https://gitlab.com/kicad/code/kicad/-/commit/c5e77e9739424837540469780cef3ffb66eadbf3)
Bug: https://bugs.gentoo.org/827290
Bug: https://bugs.gentoo.org/830024
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../{kicad-doc-6.0.0.ebuild => kicad-doc-6.0.0-r1.ebuild} | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/app-doc/kicad-doc/kicad-doc-6.0.0.ebuild
b/app-doc/kicad-doc/kicad-doc-6.0.0-r1.ebuild
similarity index 90%
rename from app-doc/kicad-doc/kicad-doc-6.0.0.ebuild
rename to app-doc/kicad-doc/kicad-doc-6.0.0-r1.ebuild
index 9bf5e27bb2a0..c77cb606301d 100644
--- a/app-doc/kicad-doc/kicad-doc-6.0.0.ebuild
+++ b/app-doc/kicad-doc/kicad-doc-6.0.0-r1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit cmake
@@ -23,7 +23,7 @@ fi
LICENSE="|| ( GPL-3+ CC-BY-3.0 ) GPL-2"
SLOT="0"
-# TODO: Change default back to +df once asciidoctor-pdf is packaged
+# TODO: Change default back to +df once asciidoctor-pdf is packaged?
IUSE="+html pdf"
LANG_USE=" l10n_ca l10n_de l10n_en l10n_es l10n_fr l10n_id l10n_it l10n_ja
l10n_pl l10n_ru l10n_zh"
@@ -53,9 +53,12 @@ BDEPEND="
src_configure() {
local mycmakeargs=(
+ # May not always work?
+ # https://gitlab.com/kicad/services/kicad-doc/-/issues/808
+ -DADOC_TOOLCHAIN="ASCIIDOC"
-DBUILD_FORMATS="$(usev html);$(usev pdf)"
-DSINGLE_LANGUAGE="${L10N}"
- -DKICAD_DOC_PATH="${EPREFIX}/usr/share/doc/${P}/help"
+ -DKICAD_DOC_PATH="${EPREFIX}"/usr/share/doc/${PF}/help
)
cmake_src_configure
}