dev-util/debhelper: Version bump.
authorJeroen Roovers <jer@gentoo.org>
Wed, 12 Aug 2015 04:44:09 +0000 (06:44 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 12 Aug 2015 04:44:09 +0000 (06:44 +0200)
Package-Manager: portage-2.2.20

dev-util/debhelper/Manifest
dev-util/debhelper/debhelper-9.20150811.ebuild [new file with mode: 0644]

index b82aa61ceac809a8f4a2752027b5d45e3592ca30..e33a18269d1c113b23e7024c7f810bffdbb5870e 100644 (file)
@@ -2,3 +2,4 @@ DIST debhelper_9.20150101.tar.gz 545089 SHA256 fd8d81d71d1bb0ba4b58c517465551231
 DIST debhelper_9.20150502.tar.xz 313460 SHA256 b4d55e83b7d3aa7f15ad5ddeab34fc043e803abcb051bd38ef81e80fc5423f13 SHA512 302d592dd70e95c6f14fe5d7aecb221399354dcea4d7a1d49007cc8c2c52014ce88b10f273739e2ff6673fff2139a343ec35f894145409c4235e66694ed39e47 WHIRLPOOL 58bb221ff062b5b471390abe3fbd463c83fbae359a11fc9e0dbf3662d463f3a454613f1ba42d8cdef9e774a1b89420e7a34b563fcacec51f85f31e32b3748e6b
 DIST debhelper_9.20150507.tar.xz 314408 SHA256 f3b51b3c1ad87cd936d4c443f1cebf8f194ece4b998dce6544e238ce5fd5dc39 SHA512 1a4ca17ccf9ebc874f5c5521320ec4421d3e128e83b1a07cbf53201c559d10473e3db92ab3119dfca778cdab0f2f8e66c77659410a9f3f8e50a03c654cc6b5f5 WHIRLPOOL d354f7adb9c1e059e53c4e6ebfa06f21bc9222152faa3461ab19e0efbf13cd6426e4f260ddff2880457093eafd83c4e40b5e301d3f8a304479d24aab41fc9d73
 DIST debhelper_9.20150628.tar.xz 317804 SHA256 8fb59c2a03fa9f6061db8091e7ecaf68c5680495eec05d6c145e3f782b09d68f SHA512 bde93266e475c3ac7dd8cbf5ee0d2c435593eadbc0f33d1389f2705f7debc36b4da165ae65cfd202a1c871fd708cda1d1c57763bdad04748a1bbdab516b2905a WHIRLPOOL 4a56790c1a1629e83b6fd164cb74d9edace02318334bc968acc74f421db98b343bbd32dce56fc15a5ca4a4c7b4364bfea9bf1213864c2f3a8238dbc43ee2a33f
+DIST debhelper_9.20150811.tar.xz 319992 SHA256 dc96fb0e8c34b0f239482088e85261bd8d858b0e5154990b52879893215d6d73 SHA512 37754b0b9fe8e73a9ec3ccbce972d3fddc8d63d11dafb90e6a3ba68a6e966ebab78e1ee564f80dc36b017ac4501b13efba66ccb32309ca040f753c2ec541ba49 WHIRLPOOL 9ed1ac69c48b4002deab5f412f086634ade1a30f8d9932d22ffa5fb93500c0fa1e15c5dd1b4c14b2c2c1ef5bee55434fe9922a19348bfa5da4c54179a1c046c2
diff --git a/dev-util/debhelper/debhelper-9.20150811.ebuild b/dev-util/debhelper/debhelper-9.20150811.ebuild
new file mode 100644 (file)
index 0000000..9d5f195
--- /dev/null
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 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
+}