blob: 2c74afab6f13bb8d51faebf44ef13d816c2797d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PLOCALES="C de it ja pt ru"
PLOCALE_BACKUP="C"
inherit autotools gnome2 l10n
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"
for my_locale in ${PLOCALES}; do
IUSE+=" l10n_${my_locale}"
done
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 lang
for doc_type in help guide ; do
for lang in $(l10n_get_locales); do
cd "${S}/${doc_type}/${lang}" || die
emake DESTDIR="${D}" install
done
done
cd "${S}" || die
einstalldocs
}
pkg_postinst() {
gnome2_pkg_postinst
has_version dev-java/fop || elog "You need dev-java/fop to generate pdf files."
has_version gnome-extra/yelp || elog "You need gnome-extra/yelp to view the docs."
}
|