app-doc/gnucash-docs: add 5.12

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42863
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate 2025-07-03 17:03:33 +03:00 committed by Sam James
parent 550d5a947f
commit d392729bd7
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 64 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST gnucash-docs-5.10.tar.gz 133668008 BLAKE2B 50c53101fdb1353aaae171dc548b0d2c5d229ffd4fd9a974aad1a2c48305c72bd2dbc1c7d2f1f0c38894e77f24cecd66ddfe934bdc933ed4266beb1d8a2477d8 SHA512 c54efd5c6c81b51afebecb7e5afcfb464eb76178cfc72e688c242cfc268845247269b7f41208866c9c076fdc2a6992fead2df0392c21c16fb68350d54023f943
DIST gnucash-docs-5.11.tar.gz 133673256 BLAKE2B 89fe7552dc8a7eca63d0e932d229d3b4f302be4abb856cfb69d060052cd8ed7de284bead6226514d11a659c50ae0137d5376c4d19c02918b9c1d1a4352d56964 SHA512 4a7f7dbf79df3412101a618d89897bb1b3d6a8ad4aa7aec639d0007e8b27bef24377401c114247a9e8c77076b422ae3a3e090813df0377fa2c5d3513e34aea13
DIST gnucash-docs-5.12.tar.gz 133659144 BLAKE2B cf44a078a2a8d0409879fa0c0433db6eff628857979453129a431edfed27cbd4754ab4248c92f0621a1a1c5a2939f48a2d1bda92ad1c195532acff993b430678 SHA512 e58ec91bc27fca0e7d258795f139ab58fb7e6ccc75beaf59d85dd7fe22a52f0f7aa6b3390b42daa6fc3eb283e9818100bd7808dca34f9acbde2f342097e15cc9

View File

@ -0,0 +1,63 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Please bump with app-office/gnucash
CMAKE_MAKEFILE_GENERATOR=emake
inherit cmake optfeature
DESCRIPTION="Documentation package for GnuCash"
HOMEPAGE="https://www.gnucash.org/"
SRC_URI="https://github.com/Gnucash/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2 FDL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86"
LOCALES=( de it ja pt )
IUSE="${LOCALES[*]/#/l10n_}"
BDEPEND="
app-text/docbook-xml-dtd:4.5
app-text/docbook-xsl-stylesheets
dev-libs/libxml2
dev-libs/libxslt
"
src_install() {
local doc_type my_lang
for doc_type in manual guide; do
for my_lang in C ${L10N}; do
[[ -z ${my_lang} ]] && continue
case "${my_lang}" in
# Both help and guides translated
C|de|it|pt) ;;
ja|ru) # Only guides translated
if [[ "${doc_type}" == "manual" ]] ; then
elog "Help documentation hasn't been translated for ${my_lang}"
elog "Will do English instead."
continue
fi
;;
*)
die "Invalid locale: ${my_lang}"
;;
esac
emake \
-C "${BUILD_DIR}/${my_lang}/${doc_type}" \
DESTDIR="${D}" \
install
done
done
einstalldocs
}
pkg_postinst() {
optfeature "generating PDF files" dev-java/fop
optfeature "viewing the docs" gnome-extra/yelp
}