app-doc/gnucash-docs: Bump to 3.8b
authorAaron W. Swenson <titanofold@gentoo.org>
Sat, 28 Mar 2020 20:32:24 +0000 (16:32 -0400)
committerAaron W. Swenson <titanofold@gentoo.org>
Sat, 28 Mar 2020 21:46:17 +0000 (17:46 -0400)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>
app-doc/gnucash-docs/Manifest
app-doc/gnucash-docs/gnucash-docs-3.8b.ebuild [new file with mode: 0644]

index d5c5b045c85759af51981ecec243fcb74821dbb1..f55b1a0015d7bac6e7ef5315016b15864b9fd0e4 100644 (file)
@@ -4,3 +4,4 @@ DIST gnucash-docs-3.4.tar.gz 92762652 BLAKE2B 1aad3f1e7fe5b6ec11b38dc778e8994544
 DIST gnucash-docs-3.5.tar.gz 97187415 BLAKE2B f35a3a25a120d3807771d74ee1c97713e21617f7ac7b4fdc1f58b9d12f7c0cc899a9af6abca21bd4f91a0978ebf5b93604deaae29f39c8ab86bd83ec93e32642 SHA512 aa832a1929ae91b9fe2a6a4ada0c7dbd8c1a4cf76086ec3ab0b82c7396d45aabbb6971f2db788bbdde71a68c8faca5f4621429819ef6c0d1156bcefdc5d289b5
 DIST gnucash-docs-3.6.tar.gz 96986567 BLAKE2B 753ee011cadec37320fafe3c0973bc5772c300dcf641ba34f05d03b9c13ec159c10f8571876adecfd7816956f2dfa9e83ad5879387536c15e7d1b138f7e38a47 SHA512 1fd36c74633ba699116914eaef245d4b84ab85a6e65578c602db8b2e3150f7fb97b549c12068a691e38b90ae0fa5cc22f8026b6d50de1ac967eb52b8296eb135
 DIST gnucash-docs-3.7.tar.gz 70634602 BLAKE2B bee0b328ab36409055ac4f681d4b09ff5e9aa28d17249491869836e8921700b495b46954465161ad06896ef9bc46c7ee8557ef2a3e8c4bbce2d600e6440bc1d9 SHA512 38f5828d3121ed76eb8a43fd91c1e3349c1f31cb95ee8fb8fa1b4c5223c68fc14627c78a5072a632aa0a228790918112a60269e6ee0211c705da6b4d5467a45d
+DIST gnucash-docs-3.8b.tar.gz 71058053 BLAKE2B 0a69db02faf6487f2ecc1b5f9a788fb50cec65ff7db53ca9ec6048510156f094c0ce457d1abb4a9a6694060f68780c0336de41dbd0736ad93055cce81b3a66ab SHA512 3c30e88412e17960006517fb7c341220159c45760ca28c79c27c66551451c8ec14e000757f4d9a78c923e10d437351e38dbedaf0a1f3b11bbf5b87d80cb230fe
diff --git a/app-doc/gnucash-docs/gnucash-docs-3.8b.ebuild b/app-doc/gnucash-docs/gnucash-docs-3.8b.ebuild
new file mode 100644 (file)
index 0000000..6123d91
--- /dev/null
@@ -0,0 +1,66 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="Documentation package for GnuCash"
+HOMEPAGE="http://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 ~ppc ~ppc64 ~x86"
+LOCALES=( de it ja pt ru )
+IUSE="${LOCALES[*]/#/l10n_}"
+
+DEPEND="
+       app-text/docbook-xml-dtd
+       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) ;;
+                               ru|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() {
+       gnome2_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
+}