summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2018-12-27 15:50:31 +0100
committerJeroen Roovers <jer@gentoo.org>2018-12-27 15:58:58 +0100
commit5be00e6a37ac8c8ef0bcb0628210f6c91161e5ce (patch)
tree05f3e22aa8661b4075aaa6e155a7f8757830f1b3 /dev-util
parentdev-perl/Time-Duration: Keyword for ~arm64 re bug #668488 (diff)
downloadgentoo-5be00e6a37ac8c8ef0bcb0628210f6c91161e5ce.tar.gz
gentoo-5be00e6a37ac8c8ef0bcb0628210f6c91161e5ce.tar.bz2
gentoo-5be00e6a37ac8c8ef0bcb0628210f6c91161e5ce.zip
dev-util/debhelper: Version 12
Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/debhelper/Manifest1
-rw-r--r--dev-util/debhelper/debhelper-12.ebuild73
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-util/debhelper/Manifest b/dev-util/debhelper/Manifest
index 68d6efcc460..3b2975165e2 100644
--- a/dev-util/debhelper/Manifest
+++ b/dev-util/debhelper/Manifest
@@ -1,3 +1,4 @@
DIST debhelper_11.5.3.tar.xz 478232 BLAKE2B 18ddbaf99d06d8305f5268448144f9149d3cfe09e22e89e6a3f88bf8fe315fd6cc6c863f2c832f47b54bbff3626198768563e321fc3eed37dfa199910c3ba60c SHA512 336da776cb8be7d9220985d04b8277466514b9daaec91ce5e905c63867b4db103d182212a245c47810908c213fc2fed6ed0cc9e5366be2f017d18c5b47437cdf
DIST debhelper_11.5.4.tar.xz 478008 BLAKE2B 12ac91b2de8f8090f2cea7e746312ac79df15b09f9882010bf90761f99712214ec147134c7e02872778f1cb90dc172d3df3d32e8bff63e1ef3b293723a111764 SHA512 f9c9352db4df9cd3582223ffa70fd72f19d269f2b4a0b33015bbce87cbd7798cb15a2f0c0f732e33e2cdb4d77a71ef69834ba5021386729ed10f470794f2a081
+DIST debhelper_12.tar.xz 478104 BLAKE2B 3d3e766a5cd7a37d538605a1cdd12e0bd4062a97c7f510c04dc13b8c8d0a9cec21149fdb291650d0c914d003296b3428d234aa315f5f8bf4c8a197d6a0de0422 SHA512 18ca6b310cb777875605a0800880eda706e59c39f8ed37966c41cdc68c2c03d8a249ba78ac61a998a8b86bcd8619f79c1e3c3a104f8bbfae68cafb05839b863a
DIST debhelper_9.20160814.tar.xz 344328 BLAKE2B 38791ab3dfb74d12e44226b79a377889911a08505cdb45cc0a6e653906edbafcac1038d1d9ff9f5fd9f714ed36681562ce7fb1c9c1109a8528523100128fced6 SHA512 63072ba35ec8c62ee4c4d44833712925264c808a91f1522ef6a73377f2da3d11b285a21ad39158fd44693c801916189261186c8c7b28096719328a81a0a65f62
diff --git a/dev-util/debhelper/debhelper-12.ebuild b/dev-util/debhelper/debhelper-12.ebuild
new file mode 100644
index 00000000000..49deff4eb2c
--- /dev/null
+++ b/dev-util/debhelper/debhelper-12.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2018 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 ~sh ~sparc ~x86 ~amd64-linux"
+IUSE="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
+}