commit:     6d2e8311aafba6dbdf853adf483d667430eca942
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 27 15:31:37 2022 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Feb 27 15:33:36 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d2e8311

sys-apps/crazydiskinfo: update EAPI 6 -> 8

Migrate to cmake.eclass whilst at it.

Closes: https://bugs.gentoo.org/834309
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 .../crazydiskinfo/crazydiskinfo-1.1.0-r1.ebuild    | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0-r1.ebuild 
b/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0-r1.ebuild
new file mode 100644
index 000000000000..f2b277bdde19
--- /dev/null
+++ b/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Interactive TUI S.M.A.R.T viewer"
+HOMEPAGE="https://github.com/otakuto/crazydiskinfo";
+SRC_URI="https://github.com/otakuto/crazydiskinfo/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+       dev-libs/libatasmart:0=
+       sys-libs/ncurses:0="
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       sed -e "s#^set(CMAKE_CXX_FLAGS.*#set(CMAKE_CXX_FLAGS \"${CXXFLAGS} 
-Wall -std=c++11\")#" \
+               -e "5s#^#set(CMAKE_C_FLAGS \"${CFLAGS}\")\n#" \
+               -i CMakeLists.txt || die "can't patch CMakeLists.txt"
+
+       cmake_src_prepare
+}

Reply via email to