Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/debhelper/
Date: Sat, 01 Oct 2016 14:48:58
Message-Id: 1475333228.22f3cef81d59f151a619a93f016e3564ee5e0919.jer@gentoo
1 commit: 22f3cef81d59f151a619a93f016e3564ee5e0919
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 14:47:08 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 14:47:08 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22f3cef8
7
8 dev-util/debhelper: Add test dependency on sys-apps/fakeroot.
9
10 Package-Manager: portage-2.3.1
11
12 dev-util/debhelper/debhelper-10-r1.ebuild | 74 +++++++++++++++++++++++++++++++
13 1 file changed, 74 insertions(+)
14
15 diff --git a/dev-util/debhelper/debhelper-10-r1.ebuild b/dev-util/debhelper/debhelper-10-r1.ebuild
16 new file mode 100644
17 index 00000000..1cae849
18 --- /dev/null
19 +++ b/dev-util/debhelper/debhelper-10-r1.ebuild
20 @@ -0,0 +1,74 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +inherit eutils toolchain-funcs
27 +
28 +DESCRIPTION="Collection of programs that can be used to automate common tasks in debian/rules"
29 +HOMEPAGE="http://packages.qa.debian.org/d/debhelper.html"
30 +SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
31 +
32 +LICENSE="GPL-2"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux"
35 +IUSE="test"
36 +DH_LINGUAS=( de es fr )
37 +IUSE+=" ${DH_LINGUAS[@]/#/linguas_}"
38 +
39 +NLS_DEPEND=$(
40 + printf "linguas_%s? ( >=app-text/po4a-0.24 )\n" ${DH_LINGUAS[@]}
41 +)
42 +
43 +RDEPEND="
44 + >=dev-lang/perl-5.10:=
45 + >=app-arch/dpkg-1.17
46 + dev-perl/TimeDate
47 + virtual/perl-Getopt-Long
48 +"
49 +DEPEND="
50 + ${RDEPEND}
51 + ${NLS_DEPEND}
52 + test? (
53 + dev-perl/Test-Pod
54 + sys-apps/fakeroot
55 + )
56 +"
57 +
58 +S=${WORKDIR}/${PN}
59 +
60 +src_compile() {
61 + tc-export CC
62 +
63 + local LANGS="" USE_NLS=no lingua
64 + for lingua in ${DH_LINGUAS[@]}; do
65 + if use linguas_${lingua}; then
66 + LANGS+=" ${lingua}"
67 + USE_NLS=yes
68 + fi
69 + done
70 +
71 + emake USE_NLS="${USE_NLS}" LANGS="${LANGS}" build
72 +}
73 +
74 +src_install() {
75 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
76 + dodoc doc/* debian/changelog
77 + docinto examples
78 + dodoc examples/*
79 + local lingua
80 + for manfile in *.1 *.7 ; do
81 + for lingua in ${DH_LINGUAS[@]}; do
82 + case ${manfile} in
83 + *.${lingua}.?)
84 + use linguas_${lingua} \
85 + && cp ${manfile} "${T}"/${manfile/.${lingua}/} \
86 + && doman -i18n=${lingua} "${T}"/${manfile/.${lingua}/}
87 + ;;
88 + *)
89 + doman ${manfile}
90 + ;;
91 + esac
92 + done
93 + done
94 +}