Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/redo/
Date: Thu, 23 Jun 2022 05:35:36
Message-Id: 1655962497.9d41061cf0a2f1f85399bc1442098bb97fe96386.sam@gentoo
1 commit: 9d41061cf0a2f1f85399bc1442098bb97fe96386
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 23 05:34:22 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 23 05:34:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d41061c
7
8 dev-util/redo: add 0.42d
9
10 Bug: https://bugs.gentoo.org/775212
11 Bug: https://bugs.gentoo.org/671840
12 Closes: https://bugs.gentoo.org/832245
13 Closes: https://bugs.gentoo.org/764068
14 Closes: https://bugs.gentoo.org/671842
15 Closes: https://bugs.gentoo.org/678988
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 dev-util/redo/Manifest | 1 +
19 dev-util/redo/redo-0.42d.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++
20 2 files changed, 64 insertions(+)
21
22 diff --git a/dev-util/redo/Manifest b/dev-util/redo/Manifest
23 index 3f16c673454c..dc0b3f604565 100644
24 --- a/dev-util/redo/Manifest
25 +++ b/dev-util/redo/Manifest
26 @@ -1 +1,2 @@
27 DIST redo-0.42c.tar.gz 195232 BLAKE2B b24969d71b247d02642340cebbf325e2ae68d4893d02e489930120e6aac76bd3099fd42e7dc36dae1fdea5c7825657957291876b906c2671a6319f8eb45a9d91 SHA512 3196ff5941d9e62084c7332a6771edd0db0082a499ba16fb6de273295c65b734e7dadb29a9fca3e6266421bc964369a8e725ef55f59ade2ecfb5e8bcc446ced0
28 +DIST redo-0.42d.tar.gz 195186 BLAKE2B 2f36dc8380d9e20475788b8d94ce02d6375ddf0a0e745dc68b7e350c427522088243bca16bd8d7c760ada17de75560e9cfdf5282a5e39081fee395a142164c82 SHA512 2749a1a1046f8edd63c4b4e2b0f4d95988dfcf8c776b264007914e583fc21ff51447be34ffc2c136c343ace8c38147d6a43c0c0dd01a681b6283a38d5d8f3fb7
29
30 diff --git a/dev-util/redo/redo-0.42d.ebuild b/dev-util/redo/redo-0.42d.ebuild
31 new file mode 100644
32 index 000000000000..3eb879fff843
33 --- /dev/null
34 +++ b/dev-util/redo/redo-0.42d.ebuild
35 @@ -0,0 +1,63 @@
36 +# Copyright 2018-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +PYTHON_COMPAT=( python3_{8..11} )
42 +PYTHON_REQ_USE="sqlite"
43 +inherit edo multiprocessing python-single-r1
44 +
45 +DESCRIPTION="Smaller, easier, more powerful, and more reliable than make"
46 +HOMEPAGE="https://github.com/apenwarr/redo"
47 +SRC_URI="https://github.com/apenwarr/redo/archive/${P}.tar.gz"
48 +S="${WORKDIR}"/${PN}-${P}
49 +
50 +LICENSE="LGPL-2"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~hppa ~x86"
53 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
54 +
55 +BDEPEND="
56 + $(python_gen_cond_dep '
57 + dev-python/beautifulsoup4[${PYTHON_USEDEP}]
58 + dev-python/markdown[${PYTHON_USEDEP}]
59 + ')
60 + ${PYTHON_DEPS}
61 +"
62 +RDEPEND="${BDEPEND}"
63 +
64 +src_prepare() {
65 + default
66 +
67 + sed -i -e "s:which:command -v:" redo/sh.do || die
68 + sed -i "1s;^;#!${PYTHON}\n;" docs/md2man.py || die
69 +}
70 +
71 +src_configure() {
72 + echo ${PYTHON} > redo/whichpython || die
73 +}
74 +
75 +src_compile() {
76 + edo ./do -j$(makeopts_jobs) build
77 +}
78 +
79 +src_test() {
80 + local ARCH= CFLAGS= CXXFLAGS= LDFLAGS=
81 + edo ./do -j$(makeopts_jobs) test
82 +}
83 +
84 +src_install() {
85 + DESTDIR="${D}" \
86 + DOCDIR="${D}/usr/share/doc/${PF}" \
87 + LIBDIR="${D}/$(python_get_sitedir)/${PN}" \
88 + edo ./do -j$(makeopts_jobs) \
89 + install
90 +
91 + python_fix_shebang "${D}"
92 +
93 + sed -i \
94 + -e 's|/lib/|/'"$(get_libdir)"'/|g' \
95 + "${D}"/usr/bin/* || die
96 +
97 + python_optimize
98 +}