Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/i2bits/
Date: Sun, 27 Feb 2022 15:33:46
Message-Id: 1645976016.86c737911010bc8f582db712e4b9cca4e7a6f600.monsieurp@gentoo
1 commit: 86c737911010bc8f582db712e4b9cca4e7a6f600
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 27 15:32:36 2022 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 27 15:33:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86c73791
7
8 app-misc/i2bits: update EAPI 6 -> 8
9
10 Migrate to cmake.eclass whilst at it.
11
12 Closes: https://bugs.gentoo.org/834314
13 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
14
15 app-misc/i2bits/i2bits-0.1.0-r1.ebuild | 22 ++++++++++++++++++++++
16 1 file changed, 22 insertions(+)
17
18 diff --git a/app-misc/i2bits/i2bits-0.1.0-r1.ebuild b/app-misc/i2bits/i2bits-0.1.0-r1.ebuild
19 new file mode 100644
20 index 000000000000..2e699e116f58
21 --- /dev/null
22 +++ b/app-misc/i2bits/i2bits-0.1.0-r1.ebuild
23 @@ -0,0 +1,22 @@
24 +# Copyright 1999-2022 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=8
28 +
29 +inherit cmake toolchain-funcs
30 +
31 +DESCRIPTION="Utility to convert hex or dec to binary format"
32 +HOMEPAGE="https://bitbucket.org/PascalRD/i2bits/"
33 +SRC_URI="http://unixdev.ru/src/${P}.tar.gz"
34 +
35 +LICENSE="WTFPL-2"
36 +SLOT="0"
37 +KEYWORDS="amd64 x86"
38 +
39 +src_prepare() {
40 + sed -e "s/^set(CMAKE_C_FLAGS.*/set(CMAKE_C_FLAGS \"${CFLAGS}\")/" \
41 + -e "1s/^/project(${PN})\n/" \
42 + -i CMakeLists.txt || die "can't patch CMakeLists.txt"
43 +
44 + cmake_src_prepare
45 +}