Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/crazydiskinfo/
Date: Sun, 27 Feb 2022 15:33:45
Message-Id: 1645976016.6d2e8311aafba6dbdf853adf483d667430eca942.monsieurp@gentoo
1 commit: 6d2e8311aafba6dbdf853adf483d667430eca942
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 27 15:31:37 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=6d2e8311
7
8 sys-apps/crazydiskinfo: update EAPI 6 -> 8
9
10 Migrate to cmake.eclass whilst at it.
11
12 Closes: https://bugs.gentoo.org/834309
13 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
14
15 .../crazydiskinfo/crazydiskinfo-1.1.0-r1.ebuild | 28 ++++++++++++++++++++++
16 1 file changed, 28 insertions(+)
17
18 diff --git a/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0-r1.ebuild b/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0-r1.ebuild
19 new file mode 100644
20 index 000000000000..f2b277bdde19
21 --- /dev/null
22 +++ b/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0-r1.ebuild
23 @@ -0,0 +1,28 @@
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
30 +
31 +DESCRIPTION="Interactive TUI S.M.A.R.T viewer"
32 +HOMEPAGE="https://github.com/otakuto/crazydiskinfo"
33 +SRC_URI="https://github.com/otakuto/crazydiskinfo/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +
39 +DEPEND="
40 + dev-libs/libatasmart:0=
41 + sys-libs/ncurses:0="
42 +
43 +RDEPEND="${DEPEND}"
44 +
45 +src_prepare() {
46 + sed -e "s#^set(CMAKE_CXX_FLAGS.*#set(CMAKE_CXX_FLAGS \"${CXXFLAGS} -Wall -std=c++11\")#" \
47 + -e "5s#^#set(CMAKE_C_FLAGS \"${CFLAGS}\")\n#" \
48 + -i CMakeLists.txt || die "can't patch CMakeLists.txt"
49 +
50 + cmake_src_prepare
51 +}