1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit perl-module sgml-catalog
9 DESCRIPTION="DebianDoc SGML DTD and formatting tools"
10 HOMEPAGE="http://packages.qa.debian.org/debiandoc-sgml"
11 SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 RDEPEND="app-text/openjade
26 virtual/perl-i18n-langtags
27 cjk? ( dev-tex/cjk-latex )"
29 sgml-catalog_cat_include "/etc/sgml/${P}.cat" \
30 "/usr/share/sgml/debiandoc/dtd/sgml/1.0/catalog"
31 sgml-catalog_cat_include "/etc/sgml/${P}.cat" \
32 "/usr/share/sgml/debiandoc/entities/catalog"
35 if [[ "${LINGUAS}" == *"zh_TW"* ]] && ! use cjk; then
36 ewarn "To have proper support for zh_TW in LINGUAS,"
37 ewarn "You should enable the cjk USE flag for this package."
43 sed -e "s#\$(pkg_format_dir) \$(pkg_bin_dir)#${VENDOR_LIB}/DebianDoc_SGML/Format /usr/share/\$(pkg_name)#" \
48 emake prefix="${D}"/usr perl_dir="${D}${VENDOR_LIB}"
52 emake prefix="${D}"/usr perl_dir="${D}${VENDOR_LIB}" install