summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Schultz <mattsch@gmail.com>2012-12-26 15:46:09 -0600
committerMatthew Schultz <mattsch@gmail.com>2012-12-26 15:46:19 -0600
commit81928feacfdc6065f62ee61f816f5c8b794f73ae (patch)
tree68261855ab148e42153b445ce3b2eeeda83cabb1 /dev-util
parentsys-apps/fwts: Version bump (diff)
downloadsunrise-81928feacfdc6065f62ee61f816f5c8b794f73ae.tar.gz
sunrise-81928feacfdc6065f62ee61f816f5c8b794f73ae.tar.bz2
sunrise-81928feacfdc6065f62ee61f816f5c8b794f73ae.zip
dev-util/lintian: New Ebuild for bug #448704. Thanks for the review hasufell.
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/lintian/ChangeLog11
-rw-r--r--dev-util/lintian/Manifest5
-rw-r--r--dev-util/lintian/files/lintian-2.5.10.3-FrontendUtil.pm.patch26
-rw-r--r--dev-util/lintian/lintian-2.5.10.3.ebuild76
-rw-r--r--dev-util/lintian/metadata.xml9
5 files changed, 127 insertions, 0 deletions
diff --git a/dev-util/lintian/ChangeLog b/dev-util/lintian/ChangeLog
new file mode 100644
index 000000000..fc9337114
--- /dev/null
+++ b/dev-util/lintian/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-util/lintian
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*lintian-2.5.10.3 (26 Dec 2012)
+
+ 26 Dec 2012; Matthew Schultz (mschultz) <mattsch@gmail.com>
+ +lintian-2.5.10.3.ebuild, +files/lintian-2.5.10.3-FrontendUtil.pm.patch,
+ +metadata.xml:
+ New Ebuild for bug #448704. Thanks for the review hasufell.
+
diff --git a/dev-util/lintian/Manifest b/dev-util/lintian/Manifest
new file mode 100644
index 000000000..ccf738a44
--- /dev/null
+++ b/dev-util/lintian/Manifest
@@ -0,0 +1,5 @@
+AUX lintian-2.5.10.3-FrontendUtil.pm.patch 1140 SHA256 87a8e7cf0f12c59c6262add103b6b0b4856fc02f833f2ca9e8da0740283433f6 SHA512 cc6b957dd335683d54417660411d806f43eed19dc1c0bfc54d87112b77812cde53c10f6e7b8ec1f439679e7e26c4b1b4120988e895ab1cc0aab469314a5a1341 WHIRLPOOL 3f885ee5a8799422fd59f5f54dddfcfcb7aefade480beadcca157652a67b09bebd5ae8d53811d8998cacf1db0f598e240544672229e49addcd0338b82b20b4bc
+DIST lintian_2.5.10.3.tar.gz 1098338 SHA256 0b6f9909f94b8e0f9afca55d28ac9e729617e024a663d7b201ee613b589e3c81 SHA512 93d26559dab8079bfc37e163ea2f68914ef13c30819a4f5a9ba383706ef9d518e8136dc8a55ec10d4ce8d56ae4a32b222097144514430b78e71985fe9db8be76 WHIRLPOOL a32fa406864d53383671e986343de7d4fb16dcb0c6b8723297012fed650a7c089307c8028b8ddb2d93e376cbf5e8d0fa9ffcf787cd06161b692b29136e8156ef
+EBUILD lintian-2.5.10.3.ebuild 1791 SHA256 e451c2eb820b75f400590309bd110114ca5f14d6c123b97ebde4f16f03bb8a76 SHA512 83021ef9cb8cb3a98f67989f0e9a28d4aefc9782881df6c63548d587a5bf7c73891f7fff33dc320eb78881b8e03705bea235405e4412bb6a92b3ad3fc5af63af WHIRLPOOL d79b600f7be12654508b0b7fdcb5f36b450c4a82aa01b1ff028f2b21c3b714d4a43806ae0e25ee3763dfceb283afcd0855a8bfa40b52207b8bd1edd6adabf314
+MISC ChangeLog 367 SHA256 9cf297251838f7b04fa17ab1f00d1973737565ae449ab1ff698b022f714a3c3a SHA512 7a49b478ac33bbb9d7234cfead3e33ae613bc5a117aad1df62c0adbc082e6408580e19cc242df490a861b51e5371e4415b97adffb9a931ee3586cbd18c03a70a WHIRLPOOL aa65da6633552a50ef560b463b30f099c9f81cca7e3b8f43461fba5b85316665bba4d02cd7221a2c19bdb933f516d9c3e0d35c1a6b1922705794d7bfc3dd6714
+MISC metadata.xml 437 SHA256 914c02ebe2b7e905050813d8e78f424e1ad4a72860e660b08e8b41cff01d2e64 SHA512 43b1a772882d6d60116889619c9f957c00774e610461b75d800f37b3233bfd780bb99d8681f1ce02f51eba0e470638275ae99c8b37314216f8164a2718cac5ec WHIRLPOOL 941c7717f4a8a0c5ec97986979474971a66bf09ad0c2c012eafe22ea5ce3c2d99fc08784506e82aaabd684400729164956c487bb7dfb181f4ad648ba7a7b5077
diff --git a/dev-util/lintian/files/lintian-2.5.10.3-FrontendUtil.pm.patch b/dev-util/lintian/files/lintian-2.5.10.3-FrontendUtil.pm.patch
new file mode 100644
index 000000000..7cec54c48
--- /dev/null
+++ b/dev-util/lintian/files/lintian-2.5.10.3-FrontendUtil.pm.patch
@@ -0,0 +1,26 @@
+--- lib/Lintian/Internal/FrontendUtil.pm 2012-11-26 11:39:38.000000000 -0600
++++ lib/Lintian/Internal/FrontendUtil.pm 2012-11-26 10:42:58.415371245 -0600
+@@ -44,11 +44,8 @@
+ my $par;
+ chomp($par = `dpkg-vendor --vendor "$cur" --query Parent`);
+ # dpkg-vendor returns 1 if there is no parent (because the query failed),
+- # which we translate into ''; but other values suggests an internal
+- # dpkg-vendor error.
++ # which we translate into '';
+ if ( $? ){
+- my $err = ($? >> 8) & 256;
+- fail('dpkg-vendor failed (status: ' . ($? >> 8). ").\n") if $err != 1;
+ return '';
+ }
+ return $par;
+@@ -81,7 +78,9 @@
+ # Use dpkg-vendor if present (unless we are testing our libdpkg-perl code)
+ if(check_path('dpkg-vendor') && !check_test_feature('vendor-libdpkg-perl')){
+ chomp($vendor = `dpkg-vendor --query Vendor`);
+- fail('dpkg-vendor failed (status: ' . ($? >> 8). ").\n") if $?;
++ if ( $? ) {
++ fail('dpkg-vendor failed (status: ' . ($? >> 8). ").\n");
++ }
+ $qparent = \&_find_parent_vendor_dpkg_vendor;
+ } else {
+ require Dpkg::Vendor;
diff --git a/dev-util/lintian/lintian-2.5.10.3.ebuild b/dev-util/lintian/lintian-2.5.10.3.ebuild
new file mode 100644
index 000000000..7512c09e1
--- /dev/null
+++ b/dev-util/lintian/lintian-2.5.10.3.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+#revision for stable versions (e.g. +squeeze1)
+MY_PVR=""
+
+inherit eutils
+
+DESCRIPTION="Debian package checker"
+HOMEPAGE="http://packages.qa.debian.org/${PN}"
+SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}${MY_PVR}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.8.8-r8"
+RDEPEND="app-arch/dpkg
+ app-misc/hardening-wrapper
+ dev-perl/Archive-Zip
+ dev-perl/Class-Accessor
+ dev-perl/Clone
+ dev-perl/IPC-Run
+ dev-perl/Parse-DebianChangelog
+ dev-perl/Apt-Pkg
+ dev-perl/TimeDate
+ dev-perl/URI
+ dev-util/diffstat
+ dev-util/intltool-debian
+ sys-apps/man-db
+ sys-devel/gettext
+ virtual/perl-Digest-MD5
+ virtual/perl-Digest-SHA
+ ${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ # Fixes incorrect reading of exit code for dpkg-vendor
+ epatch "${FILESDIR}"/${P}-FrontendUtil.pm.patch
+ # generate man pages
+ mkdir man/man1 || die
+ private/generate-lintian-pod | pod2man --name lintian \
+ --center "Debian Package Checker" --section=1 > man/man1/lintian.1 || die
+ pod2man --section=1 man/lintian-info.pod > man/man1/lintian-info.1 || die
+}
+
+src_install() {
+ insinto /etc
+ newins doc/${PN}rc.example ${PN}rc
+ dobin frontend/{${PN},${PN}-info}
+
+ local mysharedir=/usr/share/${PN}
+ insinto ${mysharedir}
+ doins -r checks lib profiles vendors
+ doins -r vendors/debian/ftp-master-auto-reject/data
+
+ insinto ${mysharedir}/collection
+ doins collection/*.desc
+ rm collection/*.desc || die
+
+ exeinto ${mysharedir}/collection
+ doexe collection/*
+
+ dodoc doc/{CREDITS,desc-files,${PN}.xml,README.developers}
+ dodoc debian/changelog
+ newdoc doc/README.in README
+ doman man/man1/*
+
+ keepdir /var/lib/${PN}
+ keepdir /var/spool/${PN}
+}
diff --git a/dev-util/lintian/metadata.xml b/dev-util/lintian/metadata.xml
new file mode 100644
index 000000000..de8b8175e
--- /dev/null
+++ b/dev-util/lintian/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+ <longdescription>
+ Lintian dissects Debian packages and reports bugs and policy violations. It contains
+ automated checks for many aspects of Debian policy as well as some checks for common errors.
+ </longdescription>
+</pkgmetadata>