Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/dpkg/
Date: Tue, 21 Dec 2021 04:03:40
Message-Id: 1640059411.cb0c57c279298bf0b01e2eb76cae3e7e0216f0ad.gyakovlev@gentoo
1 commit: cb0c57c279298bf0b01e2eb76cae3e7e0216f0ad
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 21 04:02:56 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 21 04:03:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb0c57c2
7
8 app-arch/dpkg: add 1.21.1
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 app-arch/dpkg/Manifest | 1 +
13 app-arch/dpkg/dpkg-1.21.1.ebuild | 96 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 97 insertions(+)
15
16 diff --git a/app-arch/dpkg/Manifest b/app-arch/dpkg/Manifest
17 index 3a9738825d54..0a8fe927e70a 100644
18 --- a/app-arch/dpkg/Manifest
19 +++ b/app-arch/dpkg/Manifest
20 @@ -1 +1,2 @@
21 DIST dpkg_1.20.9.tar.xz 4954428 BLAKE2B 4e04f7a90c8696971895081e18b220d9dee4bc5930428f131556ae71c673e61e18c363e279b566c2218da60a5aca421807c14cf518952502e707c7397769097b SHA512 904a4742f5f340dc65b2137364dce102a0b2eb42ccedb2a73f79c207362c699fbffaaf1379f1f6c8b8b0e490321af1d03c34b50ebe0c703f5ce8a7f75f17a839
22 +DIST dpkg_1.21.1.tar.xz 4986936 BLAKE2B f5b0f9fe7ac5fe7ba47191a9e467356e748418846ce0fc9f3c61d731e035eb096932848b15e6a85a15938d3bbd6fa069c786ab0e89c77119958fe632a91c309f SHA512 3f3f263e1300f3e4b55e84521847703dcfe465aa54829a69c31c174a2ad5e8b6a8a251da7c6020d31a38e9e6744113924a71e9579469e32289328e91a48db07f
23
24 diff --git a/app-arch/dpkg/dpkg-1.21.1.ebuild b/app-arch/dpkg/dpkg-1.21.1.ebuild
25 new file mode 100644
26 index 000000000000..e3368a531b44
27 --- /dev/null
28 +++ b/app-arch/dpkg/dpkg-1.21.1.ebuild
29 @@ -0,0 +1,96 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +inherit multilib autotools toolchain-funcs
35 +
36 +DESCRIPTION="Package maintenance system for Debian"
37 +HOMEPAGE="https://packages.qa.debian.org/dpkg"
38 +SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
39 +
40 +LICENSE="GPL-2+"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
43 +IUSE="+bzip2 libmd +lzma nls selinux static-libs test unicode +update-alternatives +zlib"
44 +RESTRICT="!test? ( test )"
45 +
46 +RDEPEND="
47 + >=app-arch-gzip-1.7
48 + >=dev-lang/perl-5.14.2:=
49 + bzip2? ( app-arch/bzip2 )
50 + libmd? ( app-crypt/libmd )
51 + lzma? ( app-arch/xz-utils )
52 + nls? ( virtual/libintl )
53 + selinux? ( sys-libs/libselinux )
54 + zlib? ( >=sys-libs/zlib-1.1.4 )
55 +"
56 +DEPEND="
57 + ${RDEPEND}
58 + app-arch/xz-utils
59 + virtual/pkgconfig
60 + test? (
61 + dev-perl/IO-String
62 + dev-perl/Test-Pod
63 + virtual/perl-Test-Harness
64 + )
65 +"
66 +BDEPEND="
67 + sys-devel/flex
68 + nls? (
69 + app-text/po4a
70 + >=sys-devel/gettext-0.18.2
71 + )
72 +"
73 +DOCS=(
74 + ChangeLog
75 + THANKS
76 + TODO
77 +)
78 +PATCHES=(
79 + "${FILESDIR}"/${PN}-1.18.12-flags.patch
80 + "${FILESDIR}"/${PN}-1.20.5-dpkg_buildpackage-test.patch
81 +)
82 +
83 +src_prepare() {
84 + default
85 +
86 + sed -i -e 's|\<ar\>|${AR}|g' t-func/deb-format.at t-func/testsuite || die
87 +
88 + eautoreconf
89 +}
90 +
91 +src_configure() {
92 + tc-export AR CC
93 +
94 + econf \
95 + $(use_enable nls) \
96 + $(use_enable unicode) \
97 + $(use_enable update-alternatives) \
98 + $(use_with bzip2 libbz2) \
99 + $(use_with libmd) \
100 + $(use_with lzma liblzma) \
101 + $(use_with selinux libselinux) \
102 + $(use_with zlib libz) \
103 + --disable-compiler-warnings \
104 + --disable-dselect \
105 + --disable-start-stop-daemon \
106 + --localstatedir="${EPREFIX}"/var
107 +}
108 +
109 +src_compile() {
110 + emake AR=$(tc-getAR)
111 +}
112 +
113 +src_install() {
114 + default
115 +
116 + keepdir \
117 + /usr/$(get_libdir)/db/methods/{mnt,floppy,disk} \
118 + /var/lib/dpkg/{alternatives,info,parts,updates}
119 +
120 + find "${ED}" -name '*.la' -delete || die
121 +
122 + if ! use static-libs; then
123 + find "${ED}" -name '*.a' -delete || die
124 + fi
125 +}