diff options
Diffstat (limited to 'dev-util/debhelper')
-rw-r--r-- | dev-util/debhelper/Manifest | 1 | ||||
-rw-r--r-- | dev-util/debhelper/debhelper-9.20160403.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-util/debhelper/Manifest b/dev-util/debhelper/Manifest index c06555aebffc..f2d55cee4691 100644 --- a/dev-util/debhelper/Manifest +++ b/dev-util/debhelper/Manifest @@ -2,3 +2,4 @@ DIST debhelper_9.20150101.tar.gz 545089 SHA256 fd8d81d71d1bb0ba4b58c517465551231 DIST debhelper_9.20151225.tar.xz 331624 SHA256 9c82f3543fe97a3ea4ddfda630aeac8e1c6d5ab7f7ea0c98c6cc8007731b9690 SHA512 b18ce3cdc2f24f06e75226d6687166c6567b80d5f40d2584afd4a4cffcacaf6e410b32206c37adc4dedec75b894722dd61f081344dd945a8de277a95859d1e4f WHIRLPOOL 0bbdc573a93665b59a3166361aea3c667907677a522ea67289677a849212fcda5e9fe8b182bd9863c20f49ccd0897e2269d786d21dde747b3120e74901516983 DIST debhelper_9.20160115.tar.xz 334540 SHA256 80f2c86caa5878bd41029f96c06ec709bc05fe6f83a366b74e14d4dd989f9302 SHA512 7bcfae18a5602527eaa5c37dff24f304827d3b54b8bb31f39ba87667b0160039f8e22bd52fddeced0f234811a439409e706763b4d3cc8987c67a5f836a8bcaf6 WHIRLPOOL 97139276a7c85b4ff72cc21392ea4b0013092a8327324a34e45936ba2b3291126df7a96b24c4ec54dd933254b869a73eb739dc0c0ca5b6e1f14881816a86c99d DIST debhelper_9.20160313.tar.xz 335852 SHA256 27b70f3dda87ec8d0647c5e006eacd494335f3e977a80bc83ed31330f2a0c532 SHA512 4d8b2289a3e60ae642a2a39f8eeb150463d6fe088c3fd2403cf9c7718532b9e995e2ae437064a8a0100a04a2b9b9753c529919ebbb835513d54db41d84f7e4f4 WHIRLPOOL 6ff10fdaddc719369bbc7d05978547178a011a8cf6a8e4b73fa7b78f66c82f16f6dfffd64bdcd147ee5f275c5bb372bc2b9f79d715f567465cbea14499ee5896 +DIST debhelper_9.20160403.tar.xz 336472 SHA256 947cdf0a8b51e5f89986f5995a14756c11597b821d7deca23e5c951131866940 SHA512 d159fd61ae40a9b2476f3b868f325acbcaa158143c436d878c67b71445a599df26252689cfee551672b3624b64fde1d61879b57cb2d4252b4513f7e0d4fa2d08 WHIRLPOOL c2e1783dc02029936b83fb7796645797a3819db4daea2f97a2f9f9855bb630e75aa44c9119cd859905a30d77e2180fdbbcabe4319f6d503466d75694c28915f0 diff --git a/dev-util/debhelper/debhelper-9.20160403.ebuild b/dev-util/debhelper/debhelper-9.20160403.ebuild new file mode 100644 index 000000000000..e4d35753a4d6 --- /dev/null +++ b/dev-util/debhelper/debhelper-9.20160403.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="Collection of programs that can be used to automate common tasks in debian/rules" +HOMEPAGE="http://packages.qa.debian.org/d/debhelper.html http://joeyh.name/code/debhelper/" +SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux" +IUSE="test" +DH_LINGUAS=( de es fr ) +IUSE+=" ${DH_LINGUAS[@]/#/linguas_}" + +NLS_DEPEND=$( + printf "linguas_%s? ( >=app-text/po4a-0.24 )\n" ${DH_LINGUAS[@]} +) + +RDEPEND=" + >=dev-lang/perl-5.10:= + >=app-arch/dpkg-1.17 + dev-perl/TimeDate + virtual/perl-Getopt-Long +" +DEPEND="${RDEPEND} + ${NLS_DEPEND} + test? ( dev-perl/Test-Pod ) +" + +S=${WORKDIR}/${PN} + +src_compile() { + tc-export CC + + local LANGS="" USE_NLS=no lingua + for lingua in ${DH_LINGUAS[@]}; do + if use linguas_${lingua}; then + LANGS+=" ${lingua}" + USE_NLS=yes + fi + done + + emake USE_NLS="${USE_NLS}" LANGS="${LANGS}" build +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + dodoc doc/* debian/changelog + docinto examples + dodoc examples/* + local lingua + for manfile in *.1 *.7 ; do + for lingua in ${DH_LINGUAS[@]}; do + case ${manfile} in + *.${lingua}.?) + use linguas_${lingua} \ + && cp ${manfile} "${T}"/${manfile/.${lingua}/} \ + && doman -i18n=${lingua} "${T}"/${manfile/.${lingua}/} + ;; + *) + doman ${manfile} + ;; + esac + done + done +} |