1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils multilib autotools ltprune toolchain-funcs
7 DESCRIPTION="Package maintenance system for Debian"
8 HOMEPAGE="https://packages.qa.debian.org/dpkg"
9 SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
13 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris ~x86-solaris"
14 IUSE="+bzip2 +lzma nls selinux test unicode +update-alternatives +zlib"
15 RESTRICT="!test? ( test )"
18 >=dev-lang/perl-5.14.2:=
19 bzip2? ( app-arch/bzip2 )
20 lzma? ( app-arch/xz-utils )
21 selinux? ( sys-libs/libselinux )
22 zlib? ( >=sys-libs/zlib-1.1.4 )
31 >=sys-devel/gettext-0.18.2
36 virtual/perl-Test-Harness
46 "${FILESDIR}"/${PN}-1.18.12-dpkg_buildpackage-test.patch
47 "${FILESDIR}"/${PN}-1.18.12-flags.patch
48 "${FILESDIR}"/${PN}-1.18.12-rsyncable.patch
52 use nls && strip-linguas -i po
63 $(use_enable unicode) \
64 $(use_enable update-alternatives) \
65 $(use_with bzip2 libbz2) \
66 $(use_with lzma liblzma) \
67 $(use_with selinux libselinux) \
68 $(use_with zlib libz) \
69 --disable-compiler-warnings \
71 --disable-start-stop-daemon \
72 --localstatedir="${EPREFIX}"/var \
83 keepdir /usr/$(get_libdir)/db/methods/{mnt,floppy,disk}
84 keepdir /usr/$(get_libdir)/db/{alternatives,info,methods,parts,updates}