diff options
Diffstat (limited to 'app-doc/gnucash-docs/gnucash-docs-3.2.ebuild')
-rw-r--r-- | app-doc/gnucash-docs/gnucash-docs-3.2.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app-doc/gnucash-docs/gnucash-docs-3.2.ebuild b/app-doc/gnucash-docs/gnucash-docs-3.2.ebuild new file mode 100644 index 000000000000..2c74afab6f13 --- /dev/null +++ b/app-doc/gnucash-docs/gnucash-docs-3.2.ebuild @@ -0,0 +1,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." +} |