forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug: https://bugs.gentoo.org/937351 Signed-off-by: Zoltan Puskas <[email protected]> Signed-off-by: Yixun Lan <[email protected]>
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST kicad-doc-7.0.10.tar.bz2 107407186 BLAKE2B 5b55745beb57b713e646dbcfbbc5ee1a030c2e819b95018c869b87091a8cca2eadcc92f6b431736167b59780ef906730df5868a4f56952914c0cede9f830582a SHA512 d7bfa2fcdfc936713f9c47125f3b6bd8cd413d1c26b97a34b68ef4a9e8621082326880b84cc6f3f6163b39c13945616232a51d9af74d5dd000a600e95ccb2ee2 | ||
DIST kicad-doc-7.0.11.tar.bz2 107407245 BLAKE2B 4746972ffa4b51ec465ad12e79699fb16fd0884c4e916d5d2a7c0655fcf39999abc0f90357bd202f0f8ece884034f8b076656e09390f8370107c2f8cf6353ae5 SHA512 a11bbfe4716da2922eb839800b2b4949c09cfe35834cabb66d6b3be299ce1ba4cece0e5082c12047591b18919dd590976c23e7542580a1abfd5917246163b6e3 | ||
DIST kicad-doc-8.0.3.tar.bz2 90958460 BLAKE2B f378aa629c4235801434dc1a0c4d96a20fa8674fd5e21e8b68817b69031f340c03837c47168947b6aaf234962803f5f3ff095d3a586a3630b817c148c19b2695 SHA512 cba8b25b7163c3a6f61a63f601a65fc6c345bead671453bd5bc73cb72ed711840d79253fe09a4f7b2c6799297373cdc36a54a173f9e10a66f6f950408a58347c | ||
DIST kicad-doc-8.0.4.tar.bz2 91098101 BLAKE2B 26f971e1766780f2213c234683a2e9c99df6b80ff21b34039b26fc6618d5d3c0ab3b75adb63afb578cb763aad403ef4b0cabb14628622f28336046fe49d28685 SHA512 9998e6a7c9d4511803454f5d6f509c447250dcbc64b49164d75d6000eabce7d5870b30ee487f0faaf44e0f4fea6ced9bc678902191116949b696d7de73a23add |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Copyright 1999-2024 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 | ||
|
||
# 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 | ||
} |