1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 #revision for stable versions (e.g. +squeeze1)
12 DESCRIPTION="Debian package checker"
13 HOMEPAGE="http://packages.qa.debian.org/${PN}"
14 SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}${MY_PVR}.tar.gz"
18 KEYWORDS="~amd64 ~x86"
21 DEPEND=">=dev-lang/perl-5.8.8-r8"
22 RDEPEND="app-arch/dpkg
23 app-misc/hardening-wrapper
25 dev-perl/Class-Accessor
28 dev-perl/Parse-DebianChangelog
33 dev-util/intltool-debian
36 virtual/perl-Digest-MD5
37 virtual/perl-Digest-SHA
43 # Fixes incorrect reading of exit code for dpkg-vendor
44 epatch "${FILESDIR}"/${P}-FrontendUtil.pm.patch
47 private/generate-lintian-pod | pod2man --name lintian \
48 --center "Debian Package Checker" --section=1 > man/man1/lintian.1 || die
49 pod2man --section=1 man/lintian-info.pod > man/man1/lintian-info.1 || die
54 newins doc/${PN}rc.example ${PN}rc
55 dobin frontend/{${PN},${PN}-info}
57 local mysharedir=/usr/share/${PN}
59 doins -r checks lib profiles vendors
60 doins -r vendors/debian/ftp-master-auto-reject/data
62 insinto ${mysharedir}/collection
63 doins collection/*.desc
64 rm collection/*.desc || die
66 exeinto ${mysharedir}/collection
69 dodoc doc/{CREDITS,desc-files,${PN}.xml,README.developers}
70 dodoc debian/changelog
71 newdoc doc/README.in README
74 # Lintian requires a UTF-8 locale in order to properly do man page tests.
75 local mylocaledir=/var/lib/${PN}/locale
77 localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias \
78 --quiet "${D}${mylocaledir}"/en_US.UTF-8 || die