File tree 2 files changed +67
-0
lines changed
2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ DIST gnucash-docs-3.4.tar.gz 92762652 BLAKE2B 1aad3f1e7fe5b6ec11b38dc778e8994544
4
4
DIST gnucash-docs-3.5.tar.gz 97187415 BLAKE2B f35a3a25a120d3807771d74ee1c97713e21617f7ac7b4fdc1f58b9d12f7c0cc899a9af6abca21bd4f91a0978ebf5b93604deaae29f39c8ab86bd83ec93e32642 SHA512 aa832a1929ae91b9fe2a6a4ada0c7dbd8c1a4cf76086ec3ab0b82c7396d45aabbb6971f2db788bbdde71a68c8faca5f4621429819ef6c0d1156bcefdc5d289b5
5
5
DIST gnucash-docs-3.6.tar.gz 96986567 BLAKE2B 753ee011cadec37320fafe3c0973bc5772c300dcf641ba34f05d03b9c13ec159c10f8571876adecfd7816956f2dfa9e83ad5879387536c15e7d1b138f7e38a47 SHA512 1fd36c74633ba699116914eaef245d4b84ab85a6e65578c602db8b2e3150f7fb97b549c12068a691e38b90ae0fa5cc22f8026b6d50de1ac967eb52b8296eb135
6
6
DIST gnucash-docs-3.7.tar.gz 70634602 BLAKE2B bee0b328ab36409055ac4f681d4b09ff5e9aa28d17249491869836e8921700b495b46954465161ad06896ef9bc46c7ee8557ef2a3e8c4bbce2d600e6440bc1d9 SHA512 38f5828d3121ed76eb8a43fd91c1e3349c1f31cb95ee8fb8fa1b4c5223c68fc14627c78a5072a632aa0a228790918112a60269e6ee0211c705da6b4d5467a45d
7
+ DIST gnucash-docs-3.8b.tar.gz 71058053 BLAKE2B 0a69db02faf6487f2ecc1b5f9a788fb50cec65ff7db53ca9ec6048510156f094c0ce457d1abb4a9a6694060f68780c0336de41dbd0736ad93055cce81b3a66ab SHA512 3c30e88412e17960006517fb7c341220159c45760ca28c79c27c66551451c8ec14e000757f4d9a78c923e10d437351e38dbedaf0a1f3b11bbf5b87d80cb230fe
Original file line number Diff line number Diff line change
1
+ # Copyright 1999-2020 Gentoo Authors
2
+ # Distributed under the terms of the GNU General Public License v2
3
+
4
+ EAPI=6
5
+
6
+ inherit autotools eutils gnome2
7
+
8
+ DESCRIPTION=" Documentation package for GnuCash"
9
+ HOMEPAGE=" http://www.gnucash.org/"
10
+ SRC_URI=" https://github.com/Gnucash/${PN} /archive/${PV} .tar.gz -> ${P} .tar.gz"
11
+
12
+ SLOT=" 0"
13
+ LICENSE=" GPL-2 FDL-1.1"
14
+ KEYWORDS=" ~amd64 ~ppc ~ppc64 ~x86"
15
+ LOCALES=( de it ja pt ru )
16
+ IUSE=" ${LOCALES[*]/#/ l10n_} "
17
+
18
+ DEPEND="
19
+ app-text/docbook-xml-dtd
20
+ app-text/docbook-xsl-stylesheets
21
+ app-text/rarian
22
+ dev-libs/libxml2
23
+ dev-libs/libxslt
24
+ "
25
+
26
+ src_prepare () {
27
+ default
28
+ eautoreconf
29
+ }
30
+
31
+ src_compile () {
32
+ :
33
+ }
34
+
35
+ src_install () {
36
+ local doc_type my_lang
37
+
38
+ for doc_type in help guide; do
39
+ for my_lang in C ${L10N} ; do
40
+ case $my_lang in
41
+ # Both help and guides translated
42
+ C|de|it|pt) ;;
43
+ ru|ja) # Only guides translated
44
+ if [[ ${doc_type} = " help" ]] ; then
45
+ elog " Help documentation hasn't been translated for $my_lang "
46
+ elog " Will do English instead."
47
+ continue
48
+ fi
49
+ ;;
50
+ * )
51
+ die " Invalid locale: $my_lang "
52
+ ;;
53
+ esac
54
+
55
+ emake -C " ${doc_type} /${my_lang} " DESTDIR=" ${D} " install
56
+ done
57
+ done
58
+
59
+ einstalldocs
60
+ }
61
+
62
+ pkg_postinst () {
63
+ gnome2_pkg_postinst
64
+ optfeature " You need dev-java/fop to generate pdf files." dev-java/fop
65
+ optfeature " You need gnome-extra/yelp to view the docs." gnome-extra/yelp
66
+ }
You can’t perform that action at this time.
0 commit comments