tkurbad-overlay/app-doc/kicad-doc/kicad-doc-7.0.9.ebuild

60 lines
1.8 KiB
Bash
Raw Normal View History

2023-11-21 23:08:59 +01:00
# Copyright 1999-2023 Gentoo Authors
2022-01-13 17:39:35 +01:00
# 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
2023-11-21 23:08:59 +01:00
SRC_URI="https://gitlab.com/kicad/services/${PN}/-/archive/${PV}/${P}.tar.bz2"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
2022-01-13 17:39:35 +01:00
fi
LICENSE="|| ( GPL-3+ CC-BY-3.0 ) GPL-2"
SLOT="0"
2023-11-21 23:08:59 +01:00
# TODO: Change default back to +pdf once asciidoctor-pdf is packaged?
2022-01-13 17:39:35 +01:00
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="
2023-11-21 23:08:59 +01:00
>=dev-ruby/asciidoctor-2.0.12
2022-01-13 17:39:35 +01:00
>=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=(
2023-11-21 23:08:59 +01:00
-DPDF_GENERATOR="DBLATEX"
2022-01-13 17:39:35 +01:00
-DBUILD_FORMATS="$(usev html);$(usev pdf)"
-DSINGLE_LANGUAGE="${L10N}"
2023-11-21 23:08:59 +01:00
-DKICAD_DOC_PATH="${EPREFIX}"/usr/share/doc/${P}/help
2022-01-13 17:39:35 +01:00
)
cmake_src_configure
}