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: Wed, 09 Jun 2021 06:16:44
Message-Id: 1623219379.0c8536ec445181aed337fe8f7237b672c33201cf.gyakovlev@gentoo
1 commit: 0c8536ec445181aed337fe8f7237b672c33201cf
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 9 06:15:39 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 9 06:16:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c8536ec
7
8 app-arch/dpkg: add 1.20.9
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 app-arch/dpkg/Manifest | 1 +
13 app-arch/dpkg/dpkg-1.20.9.ebuild | 96 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 97 insertions(+)
15
16 diff --git a/app-arch/dpkg/Manifest b/app-arch/dpkg/Manifest
17 index e8e002cc6d0..fffb0b729b4 100644
18 --- a/app-arch/dpkg/Manifest
19 +++ b/app-arch/dpkg/Manifest
20 @@ -1 +1,2 @@
21 DIST dpkg_1.20.7.1.tar.xz 4952736 BLAKE2B 0439cd9440c34597ff5c5e04bd8e1b79d34cd7675a216cbe1e7dc4d68460847143a8a7dff14b1845374d8e504d6fba63842b1d1ac37aa01f7b2a96b78ef0278d SHA512 beec7a7ba1cfbd6954b3d583e57c811af3bfa5e4e4554e6af6673d4a4be0e79fb4aded2f6aeeda592c2ba3d91facb82138f2eb8eb2338dc4fae1832911df2fd6
22 +DIST dpkg_1.20.9.tar.xz 4954428 BLAKE2B 4e04f7a90c8696971895081e18b220d9dee4bc5930428f131556ae71c673e61e18c363e279b566c2218da60a5aca421807c14cf518952502e707c7397769097b SHA512 904a4742f5f340dc65b2137364dce102a0b2eb42ccedb2a73f79c207362c699fbffaaf1379f1f6c8b8b0e490321af1d03c34b50ebe0c703f5ce8a7f75f17a839
23
24 diff --git a/app-arch/dpkg/dpkg-1.20.9.ebuild b/app-arch/dpkg/dpkg-1.20.9.ebuild
25 new file mode 100644
26 index 00000000000..fce1289c142
27 --- /dev/null
28 +++ b/app-arch/dpkg/dpkg-1.20.9.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 ~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 + >=dev-lang/perl-5.14.2:=
48 + bzip2? ( app-arch/bzip2 )
49 + libmd? ( app-crypt/libmd )
50 + lzma? ( app-arch/xz-utils )
51 + nls? ( virtual/libintl )
52 + selinux? ( sys-libs/libselinux )
53 + zlib? ( >=sys-libs/zlib-1.1.4 )
54 +"
55 +DEPEND="
56 + ${RDEPEND}
57 + app-arch/xz-utils
58 + virtual/pkgconfig
59 + test? (
60 + dev-perl/IO-String
61 + dev-perl/Test-Pod
62 + virtual/perl-Test-Harness
63 + )
64 +"
65 +BDEPEND="
66 + sys-devel/flex
67 + nls? (
68 + app-text/po4a
69 + >=sys-devel/gettext-0.18.2
70 + )
71 +"
72 +DOCS=(
73 + ChangeLog
74 + THANKS
75 + TODO
76 +)
77 +PATCHES=(
78 + "${FILESDIR}"/${PN}-1.18.12-flags.patch
79 + "${FILESDIR}"/${PN}-1.18.12-rsyncable.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 +}