summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Puskas <zoltan@sinustrom.info>2023-02-16 00:26:06 -0800
committerSam James <sam@gentoo.org>2023-02-17 05:09:39 +0000
commit84e193a8285bfc17a0f8fc64c2a14148494552d8 (patch)
tree9af81615a743f9d0952213d6602277e9ae9bf210 /app-doc
parentsci-electronics/kicad-templates: add 7.0.0 (diff)
downloadgentoo-84e193a8285bfc17a0f8fc64c2a14148494552d8.tar.gz
gentoo-84e193a8285bfc17a0f8fc64c2a14148494552d8.tar.bz2
gentoo-84e193a8285bfc17a0f8fc64c2a14148494552d8.zip
app-doc/kicad-doc: add 7.0.0
Bug: https://bugs.gentoo.org/894660 Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/kicad-doc/Manifest1
-rw-r--r--app-doc/kicad-doc/files/kicad-doc-7.0.0-eeschema_advanced.patch13
-rw-r--r--app-doc/kicad-doc/kicad-doc-7.0.0.ebuild63
3 files changed, 77 insertions, 0 deletions
diff --git a/app-doc/kicad-doc/Manifest b/app-doc/kicad-doc/Manifest
index 30ea076a987b..c657458b243e 100644
--- a/app-doc/kicad-doc/Manifest
+++ b/app-doc/kicad-doc/Manifest
@@ -1 +1,2 @@
DIST kicad-doc-6.0.9.tar.gz 81321926 BLAKE2B 0885d0210afcc83c2ccaad3a0caac912e8f756e69c4569e543a81440e14b6e3ead68ccc427f4dcd9026ebf86a8e3c45487955479bf8c43ce9bb6680de9da777c SHA512 be8ae3bbebce334d7d7ab0e24bf3712aaa83b078f1a4495b755cdd9a5ff8e55951dbd82c5ac17c5aeba66008a9e6ef1b9f104f51ad340cb7cb88abdd86e5853d
+DIST kicad-doc-7.0.0.tar.bz2 104561946 BLAKE2B 1f19b489a3b40e15f9f4a775582caf192180b345bf559d8e2b1954b2c72301ad25264e7bf27df46ba9b2a52848478441df383f5766c7111340b04aa45720f40a SHA512 b3cd797751b3183eabadd71e02031ff0b3e5d4744e1c55c16ae5b22bdc45f7cb874defde407d6d819b7c00b06daad84260b980f9afca1f5805c17ebf177300b8
diff --git a/app-doc/kicad-doc/files/kicad-doc-7.0.0-eeschema_advanced.patch b/app-doc/kicad-doc/files/kicad-doc-7.0.0-eeschema_advanced.patch
new file mode 100644
index 000000000000..d862bfceccdf
--- /dev/null
+++ b/app-doc/kicad-doc/files/kicad-doc-7.0.0-eeschema_advanced.patch
@@ -0,0 +1,13 @@
+diff --git a/src/eeschema/eeschema_advanced.adoc b/src/eeschema/eeschema_advanced.adoc
+index d51209da642753d6cbbf862195d61b3c5317b9a3..be417983c5065164a6500e49b5b0e380c3fd9412 100644
+--- a/src/eeschema/eeschema_advanced.adoc
++++ b/src/eeschema/eeschema_advanced.adoc
+@@ -280,7 +280,7 @@ information for KiCad to connect to your database and retrieve data from tables.
+ below into a new file and save it with a `kicad_dbl` extension. You can then add this file to your
+ global symbol library table using the Configure Symbol Libraries dialog.
+
+-[code,json]
++[source,json]
+ ----
+ {
+ "meta": {
diff --git a/app-doc/kicad-doc/kicad-doc-7.0.0.ebuild b/app-doc/kicad-doc/kicad-doc-7.0.0.ebuild
new file mode 100644
index 000000000000..c12d7542d2ea
--- /dev/null
+++ b/app-doc/kicad-doc/kicad-doc-7.0.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Electronic Schematic and PCB design tools manuals"
+HOMEPAGE="https://docs.kicad.org/"
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://gitlab.com/kicad/services/kicad-doc.git"
+ inherit git-r3
+ # x11-misc-util/macros only required on live ebuilds
+ LIVE_DEPEND=">=x11-misc/util-macros-1.18"
+else
+ SRC_URI="https://gitlab.com/kicad/services/${PN}/-/archive/${PV}/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+fi
+
+LICENSE="|| ( GPL-3+ CC-BY-3.0 ) GPL-2"
+SLOT="0"
+# TODO: Change default back to +pdf 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"
+IUSE+=${LANG_USE}
+REQUIRED_USE="|| ( html pdf ) ^^ ( ${LANG_USE} )"
+unset LANG_USE
+
+PATCHES=(
+ "${FILESDIR}/${P}-eeschema_advanced.patch"
+)
+
+# TODO: need asciidoctor-pdf for pdf
+# bug #697450
+BDEPEND="
+ >=dev-ruby/asciidoctor-2.0.12
+ >=app-text/dblatex-0.3.10
+ >=app-text/po4a-0.45
+ >=sys-devel/gettext-0.18
+ dev-perl/Unicode-LineBreak
+ dev-util/source-highlight
+ l10n_ca? ( dev-texlive/texlive-langspanish )
+ l10n_de? ( dev-texlive/texlive-langgerman )
+ l10n_en? ( dev-texlive/texlive-langenglish )
+ l10n_es? ( dev-texlive/texlive-langspanish )
+ l10n_fr? ( dev-texlive/texlive-langfrench )
+ l10n_it? ( dev-texlive/texlive-langitalian )
+ l10n_ja? ( dev-texlive/texlive-langjapanese media-fonts/vlgothic )
+ l10n_pl? ( dev-texlive/texlive-langpolish )
+ l10n_ru? ( dev-texlive/texlive-langcyrillic )
+ l10n_zh? ( dev-texlive/texlive-langchinese )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DPDF_GENERATOR="DBLATEX"
+ -DBUILD_FORMATS="$(usev html);$(usev pdf)"
+ -DSINGLE_LANGUAGE="${L10N}"
+ -DKICAD_DOC_PATH="${EPREFIX}"/usr/share/doc/${P}/help
+ )
+ cmake_src_configure
+}