diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-06-08 23:15:39 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-06-08 23:16:19 -0700 |
commit | 0c8536ec445181aed337fe8f7237b672c33201cf (patch) | |
tree | ab939e620b0b7e8b94973d9e4e60e2c8aa28bc56 /app-arch | |
parent | app-arch/dpkg: drop old (diff) | |
download | gentoo-0c8536ec445181aed337fe8f7237b672c33201cf.tar.gz gentoo-0c8536ec445181aed337fe8f7237b672c33201cf.tar.bz2 gentoo-0c8536ec445181aed337fe8f7237b672c33201cf.zip |
app-arch/dpkg: add 1.20.9
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/dpkg/Manifest | 1 | ||||
-rw-r--r-- | app-arch/dpkg/dpkg-1.20.9.ebuild | 96 |
2 files changed, 97 insertions, 0 deletions
diff --git a/app-arch/dpkg/Manifest b/app-arch/dpkg/Manifest index e8e002cc6d02..fffb0b729b40 100644 --- a/app-arch/dpkg/Manifest +++ b/app-arch/dpkg/Manifest @@ -1 +1,2 @@ DIST dpkg_1.20.7.1.tar.xz 4952736 BLAKE2B 0439cd9440c34597ff5c5e04bd8e1b79d34cd7675a216cbe1e7dc4d68460847143a8a7dff14b1845374d8e504d6fba63842b1d1ac37aa01f7b2a96b78ef0278d SHA512 beec7a7ba1cfbd6954b3d583e57c811af3bfa5e4e4554e6af6673d4a4be0e79fb4aded2f6aeeda592c2ba3d91facb82138f2eb8eb2338dc4fae1832911df2fd6 +DIST dpkg_1.20.9.tar.xz 4954428 BLAKE2B 4e04f7a90c8696971895081e18b220d9dee4bc5930428f131556ae71c673e61e18c363e279b566c2218da60a5aca421807c14cf518952502e707c7397769097b SHA512 904a4742f5f340dc65b2137364dce102a0b2eb42ccedb2a73f79c207362c699fbffaaf1379f1f6c8b8b0e490321af1d03c34b50ebe0c703f5ce8a7f75f17a839 diff --git a/app-arch/dpkg/dpkg-1.20.9.ebuild b/app-arch/dpkg/dpkg-1.20.9.ebuild new file mode 100644 index 000000000000..fce1289c1427 --- /dev/null +++ b/app-arch/dpkg/dpkg-1.20.9.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit multilib autotools toolchain-funcs + +DESCRIPTION="Package maintenance system for Debian" +HOMEPAGE="https://packages.qa.debian.org/dpkg" +SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="+bzip2 libmd +lzma nls selinux static-libs test unicode +update-alternatives +zlib" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-lang/perl-5.14.2:= + bzip2? ( app-arch/bzip2 ) + libmd? ( app-crypt/libmd ) + lzma? ( app-arch/xz-utils ) + nls? ( virtual/libintl ) + selinux? ( sys-libs/libselinux ) + zlib? ( >=sys-libs/zlib-1.1.4 ) +" +DEPEND=" + ${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig + test? ( + dev-perl/IO-String + dev-perl/Test-Pod + virtual/perl-Test-Harness + ) +" +BDEPEND=" + sys-devel/flex + nls? ( + app-text/po4a + >=sys-devel/gettext-0.18.2 + ) +" +DOCS=( + ChangeLog + THANKS + TODO +) +PATCHES=( + "${FILESDIR}"/${PN}-1.18.12-flags.patch + "${FILESDIR}"/${PN}-1.18.12-rsyncable.patch + "${FILESDIR}"/${PN}-1.20.5-dpkg_buildpackage-test.patch +) + +src_prepare() { + default + + sed -i -e 's|\<ar\>|${AR}|g' t-func/deb-format.at t-func/testsuite || die + + eautoreconf +} + +src_configure() { + tc-export AR CC + + econf \ + $(use_enable nls) \ + $(use_enable unicode) \ + $(use_enable update-alternatives) \ + $(use_with bzip2 libbz2) \ + $(use_with libmd) \ + $(use_with lzma liblzma) \ + $(use_with selinux libselinux) \ + $(use_with zlib libz) \ + --disable-compiler-warnings \ + --disable-dselect \ + --disable-start-stop-daemon \ + --localstatedir="${EPREFIX}"/var +} + +src_compile() { + emake AR=$(tc-getAR) +} + +src_install() { + default + + keepdir \ + /usr/$(get_libdir)/db/methods/{mnt,floppy,disk} \ + /var/lib/dpkg/{alternatives,info,parts,updates} + + find "${ED}" -name '*.la' -delete || die + + if ! use static-libs; then + find "${ED}" -name '*.a' -delete || die + fi +} |