blob: cc3c241d5b9a2ee94b7fdb67314b9d8c81ff65f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake xdg
DESCRIPTION="Hard Disk Drive and SSD Health Inspection Tool"
HOMEPAGE="https://gsmartcontrol.shaduri.dev/"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/ashaduri/gsmartcontrol"
else
SRC_URI="
https://github.com/ashaduri/gsmartcontrol/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz
"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3 LGPL-3 0BSD Boost-1.0 ZLIB"
#bundles catch2, nlohmann_json, tl_expected and whereami
LICENSE+=" Boost-1.0 CC0-1.0 MIT || ( MIT WTFPL-2 )"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="
dev-cpp/glibmm:*
dev-cpp/gtkmm:3.0
dev-libs/libsigc++:2
sys-apps/smartmontools
"
RDEPEND="
${DEPEND}
x11-apps/xmessage
"
BDEPEND="
sys-devel/gettext
virtual/pkgconfig
"
src_configure() {
local mycmakeargs=(
-DAPP_BUILD_EXAMPLES=OFF
-DAPP_BUILD_TESTS=$(usex test)
)
cmake_src_configure
}
|