1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs
7 DESCRIPTION="Collection of programs that can be used to automate common tasks in debian/rules"
8 HOMEPAGE="https://tracker.debian.org/pkg/debhelper"
9 SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux"
15 RESTRICT="!test? ( test )"
17 IUSE+=" ${DH_LANGS[@]/#/l10n_}"
20 printf "l10n_%s? ( >=app-text/po4a-0.24 )\n" ${DH_LANGS[@]}
24 >=dev-lang/perl-5.10:=
27 virtual/perl-Getopt-Long
43 local LANGS="" USE_NLS=no lang
44 for lang in ${DH_LANGS[@]}; do
45 if use l10n_${lang}; then
51 emake USE_NLS="${USE_NLS}" LANGS="${LANGS}" build
55 emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
56 dodoc doc/* debian/changelog
60 for manfile in *.1 *.7 ; do
61 for lang in ${DH_LANGS[@]}; do
65 && cp ${manfile} "${T}"/${manfile/.${lang}/} \
66 && doman -i18n=${lang} "${T}"/${manfile/.${lang}/}