Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/fakechroot/
Date: Tue, 31 May 2022 08:43:05
Message-Id: 1653986572.f20643d9b4749c5d547748ef46044442a07d480e.sam@gentoo
1 commit: f20643d9b4749c5d547748ef46044442a07d480e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 08:23:24 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 08:42:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f20643d9
7
8 sys-apps/fakechroot: add 2.20.1_p2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-apps/fakechroot/Manifest | 2 ++
13 sys-apps/fakechroot/fakechroot-2.20.1_p2.ebuild | 41 +++++++++++++++++++++++++
14 2 files changed, 43 insertions(+)
15
16 diff --git a/sys-apps/fakechroot/Manifest b/sys-apps/fakechroot/Manifest
17 index 0429ed76685c..47334d301bf1 100644
18 --- a/sys-apps/fakechroot/Manifest
19 +++ b/sys-apps/fakechroot/Manifest
20 @@ -1 +1,3 @@
21 DIST fakechroot-2.20.1.tar.gz 504343 BLAKE2B 73459895319c1fd6297ab455e0d15f4b9985f433d958598d8581a35268e4df0f631b39d026061fe5c00ec6b805f3bf4f5f261039b93176db460b6f936c0de1b8 SHA512 9ddc715ff5c550b700c2384284c9f0cf6c2a99353a06d8e4c3b8363f4affdf9a11757ed5d1c9b85c83499b3bec054544290508a20f2ee16d46e66dc824a924ed
22 +DIST fakechroot_2.20.1+ds-2.debian.tar.xz 16120 BLAKE2B f4fe6943ca8e0f2bc68cc9d97af1195c34b8700b37838ced773e1452352d46806ebd31dbd6439121fa625ce74148d749e5064fe347ea5b1fa2e41c4e1b1a9867 SHA512 060448526eb7ac89b53984c582bcfffb641abdf4e7696e0033610343039012e6d459fb6682b4c1caa12bfcb91d515dfc4123ff3f1be3468d9db1a58ab9a8b415
23 +DIST fakechroot_2.20.1+ds.orig.tar.xz 88680 BLAKE2B 5e119eb6d7acee1f45bfc267e15b228624bbc5e29ebb19bcb61c4684719df4ce751c315423c27bceb0e2f97bcd491daa16d76f6b964842dcaddb90761dca092e SHA512 c61960b4fb03e65d7678511ae01a6f977d7f5584e81ee15a283f98da102dfc85d923265936443c7e9e208b62bb2147e8ae21a0ac62acf5bd8432775a4f6e723e
24
25 diff --git a/sys-apps/fakechroot/fakechroot-2.20.1_p2.ebuild b/sys-apps/fakechroot/fakechroot-2.20.1_p2.ebuild
26 new file mode 100644
27 index 000000000000..6e11e6023fc4
28 --- /dev/null
29 +++ b/sys-apps/fakechroot/fakechroot-2.20.1_p2.ebuild
30 @@ -0,0 +1,41 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +# Upstream seem to be kind of dead, so using Debian's patches.
37 +DESCRIPTION="Provide a faked chroot environment without requiring root privileges"
38 +HOMEPAGE="https://github.com/dex4er/fakechroot"
39 +if [[ ${PV} == *_p* ]] ; then
40 + inherit autotools
41 +
42 + SRC_URI="mirror://debian/pool/main/f/${PN}/${PN}_$(ver_cut 1-3)+ds.orig.tar.xz"
43 + SRC_URI+=" mirror://debian/pool/main/f/${PN}/${PN}_$(ver_cut 1-3)+ds-$(ver_cut 5).debian.tar.xz"
44 + S="${WORKDIR}"/${PN}-$(ver_cut 1-3)
45 +else
46 + SRC_URI="https://github.com/dex4er/${PN}/releases/download/${PV}/${P}.tar.gz"
47 +fi
48 +
49 +LICENSE="LGPL-2.1"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
52 +
53 +RESTRICT="test"
54 +
55 +src_prepare() {
56 + default
57 +
58 + if [[ ${PV} == *_p* ]] ; then
59 + if [[ -d "${WORKDIR}"/debian/patches ]] ; then
60 + eapply $(sed -e 's:^:../debian/patches/:' ../debian/patches/series || die)
61 + fi
62 +
63 + eautoreconf
64 + fi
65 +}
66 +
67 +src_install() {
68 + default
69 +
70 + find "${ED}" -name '*.la' -delete || die
71 +}