diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-01 21:06:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-01 21:06:00 +0000 |
commit | 129160ec854dca4c3fedb5bcfbcb56930371da0f (patch) | |
tree | 53bf797418ac5e9b99c41ca0382c87b82421e5de /app-doc/gnucash-docs | |
parent | 441d1370330332b7d78f238d2f5e13f7aed5e4e0 (diff) |
gentoo new year resync : 01.01.2021
Diffstat (limited to 'app-doc/gnucash-docs')
-rw-r--r-- | app-doc/gnucash-docs/Manifest | 2 | ||||
-rw-r--r-- | app-doc/gnucash-docs/gnucash-docs-4.4.ebuild | 65 |
2 files changed, 67 insertions, 0 deletions
diff --git a/app-doc/gnucash-docs/Manifest b/app-doc/gnucash-docs/Manifest index b50016fd32f7..5bc154e41424 100644 --- a/app-doc/gnucash-docs/Manifest +++ b/app-doc/gnucash-docs/Manifest @@ -1,3 +1,5 @@ DIST gnucash-docs-4.2.tar.gz 62497632 BLAKE2B 764387cbbc1d072ac3e245a86b78eb484cfa05371dcf4c17d0441bf08e00f85523975c50a88ecde24e9d949572228a723d53fcce7df397553b0e50145be28686 SHA512 e54082dcd7f92d7ca3f31cea5968ecd4167dc9e1e12f23d8684af3e2af4c696d8afed3cf477df771bb11da125ee5887d09ead1edff961ca4bedfb58fd61efdf2 +DIST gnucash-docs-4.4.tar.gz 62534210 BLAKE2B 0c3cdc3ccdf1cfb7a54e44dcde9ea10672cb312e6d6e083ae9bb65bc52b044e8559647a8491f6fa762d9bb84c33f22dd9cacb3a862548994bdc7c56b3e634aa9 SHA512 60e34af3fdb144fefc835d6497fd442daad1417c4e40f8b4fd8f66a37cd0cfa1d789aa03de435d4654ee2368a4b85e9b0cfba8eeef61829e0ca190a453a9abdc EBUILD gnucash-docs-4.2.ebuild 1341 BLAKE2B 878dc829afbcda2a162e52de7d3016bf0d5475fb1aadcef8613b8eaea9224a30f21645210ab5156b9c9ed74b9470d3f835f31f01f8e2e00dab274b71f3e0c3a1 SHA512 8a876f0f5041d0c9bfc204cc0a80537788e58654af05c2ee78cb903d5dced7f26efe3f4bf370ac896074242534614b5ec255bc1f1ef1673d0181cda722465c7c +EBUILD gnucash-docs-4.4.ebuild 1338 BLAKE2B f2b1ed6e5220963c3f060944e5a72319ef754aefa522e4965b33c9ec70902e35fd92e768c1baae88a3b1e52fb639430f78b65fe79b1b15a8fd1631fbb98012ba SHA512 5759d1d08146ec694abdb23d316704309b1005c3369bdc5cdc122db88def5bd03301fc4cf71d8d90287edc8c4c1d95ad7e411f7c7f1b85fa4ef541da2a767030 MISC metadata.xml 330 BLAKE2B 17393892e962f0d868534c6908a6f6f09c4237cfdf81530b81e572f0fdac64495378d545ca214afc451a6323b97c71328aa1c6a8eda81773cb1d77c358e11bd1 SHA512 fa496247f2026343323b8ff8664fb8018316ebcbf14b88b1c99a649805cefe962d773c4d2aa35b266db2942b78d1fc450f200dc065fac48ebfb2113b5d6e8a98 diff --git a/app-doc/gnucash-docs/gnucash-docs-4.4.ebuild b/app-doc/gnucash-docs/gnucash-docs-4.4.ebuild new file mode 100644 index 000000000000..3ed9ef17540e --- /dev/null +++ b/app-doc/gnucash-docs/gnucash-docs-4.4.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools 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" + +SLOT="0" +LICENSE="GPL-2 FDL-1.1" +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86" +LOCALES=( de it ja pt ) +IUSE="${LOCALES[*]/#/l10n_}" + +DEPEND=" + app-text/docbook-xml-dtd:4.5 + app-text/docbook-xsl-stylesheets + app-text/rarian + dev-libs/libxml2 + dev-libs/libxslt +" + +src_prepare() { + default + eautoreconf +} + +src_compile() { + : +} + +src_install() { + local doc_type my_lang + + for doc_type in help guide; do + for my_lang in C ${L10N}; do + case $my_lang in + # Both help and guides translated + C|de|it|pt) ;; + ja) # Only guides translated + if [[ ${doc_type} = "help" ]] ; 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 "${doc_type}/${my_lang}" DESTDIR="${D}" install + done + done + + einstalldocs +} + +pkg_postinst() { + optfeature "You need dev-java/fop to generate pdf files." dev-java/fop + optfeature "You need gnome-extra/yelp to view the docs." gnome-extra/yelp +} |