dev-util/debhelper: Version 12.10
authorJeroen Roovers <jer@gentoo.org>
Sat, 28 Mar 2020 05:28:27 +0000 (06:28 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sat, 28 Mar 2020 05:29:23 +0000 (06:29 +0100)
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
dev-util/debhelper/Manifest
dev-util/debhelper/debhelper-12.10.ebuild [new file with mode: 0644]

index b71276c159549c4b4dd063c4a8dafc3910213574..03e449706c8e70aef525024af8aeb806cf73c8b9 100644 (file)
@@ -1,3 +1,4 @@
+DIST debhelper_12.10.tar.xz 525416 BLAKE2B ce3a2116d9793eeda0df851047c0bed710ae6f948b6de268788e7991d683951f0eaf1a7a7a00d9195f1fbb008d21772f9a372f20d25c809fe07ef36ac91ca7e9 SHA512 79903492994a71a57a420207f3cde3fc1bef7645b9e7cf8d10b915cb52d325f947ae9f5130e28e88c3d357089fe35356aa2935480a333bc47352f6ced719a348
 DIST debhelper_12.8.tar.xz 517508 BLAKE2B 2f72bde30638755787c93e2dabf5f60a013c58508c8872b2625e09c98dd64dca77b91063b24a5612ab7cd04ed0a94c533663cee1ef271783be5b27709008c9a3 SHA512 41c5f2e2362dc1b02c1ac60ec7c7b8e1826b9a5abd1a981f85bb90ef128362022228ba8778645492498d57676e5ba7a5563a8391ff5474065178f67f339bbb0e
 DIST debhelper_12.9.tar.xz 521116 BLAKE2B 287740877b2431082baec262af581c34a9c0f3388232f7866bc7629b893c6d1f23da8f8956de5aa66d33b43d6f31d8ea31c897d313423d829750f894e5a3aeab SHA512 c8ee3040119a91b7dd2447be5c5d6bbe56d13aa53bd5e3d97be3af7c0a087a57661b36ae4eb56b20b0574c0e8702166ab75c7ffdeb7279f8ef77cc0ea367a6e5
 DIST debhelper_9.20160814.tar.xz 344328 BLAKE2B 38791ab3dfb74d12e44226b79a377889911a08505cdb45cc0a6e653906edbafcac1038d1d9ff9f5fd9f714ed36681562ce7fb1c9c1109a8528523100128fced6 SHA512 63072ba35ec8c62ee4c4d44833712925264c808a91f1522ef6a73377f2da3d11b285a21ad39158fd44693c801916189261186c8c7b28096719328a81a0a65f62
diff --git a/dev-util/debhelper/debhelper-12.10.ebuild b/dev-util/debhelper/debhelper-12.10.ebuild
new file mode 100644 (file)
index 0000000..99dca21
--- /dev/null
@@ -0,0 +1,74 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Collection of programs that can be used to automate common tasks in debian/rules"
+HOMEPAGE="https://tracker.debian.org/pkg/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 ~sparc ~x86 ~amd64-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+DH_LANGS=( de es fr )
+IUSE+=" ${DH_LANGS[@]/#/l10n_}"
+
+NLS_DEPEND=$(
+       printf "l10n_%s? ( >=app-text/po4a-0.24 )\n" ${DH_LANGS[@]}
+)
+
+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
+               sys-apps/fakeroot
+       )
+"
+
+S=${WORKDIR}/${PN}
+
+src_compile() {
+       tc-export CC
+
+       local LANGS="" USE_NLS=no lang
+       for lang in ${DH_LANGS[@]}; do
+               if use l10n_${lang}; then
+                       LANGS+=" ${lang}"
+                       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 lang
+       for manfile in *.1 *.7 ; do
+               for lang in ${DH_LANGS[@]}; do
+                       case ${manfile} in
+                               *.${lang}.?)
+                                       use l10n_${lang} \
+                                               && cp ${manfile} "${T}"/${manfile/.${lang}/} \
+                                               && doman -i18n=${lang} "${T}"/${manfile/.${lang}/}
+                                       ;;
+                               *)
+                                       doman ${manfile}
+                                       ;;
+                       esac
+               done
+       done
+}