Diff gsmartcontrol-1.1.4-r1 with a gsmartcontrol-2.0.1

/usr/portage/sys-apps/gsmartcontrol/gsmartcontrol-2.0.1.ebuild 2025-02-03 17:39:35.926677980 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit flag-o-matic xdg
6
inherit cmake xdg
7 7

  
8
DESCRIPTION="Hard disk drive health inspection tool"
9
HOMEPAGE="https://gsmartcontrol.sourceforge.io/"
10
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.bz2"
8
DESCRIPTION="Hard Disk Drive and SSD Health Inspection Tool"
9
HOMEPAGE="https://gsmartcontrol.shaduri.dev/"
11 10

  
12
LICENSE="|| ( GPL-2 GPL-3 ) Boost-1.0 BSD Unlicense ZLIB"
11
if [[ ${PV} == 9999 ]]; then
12
	inherit git-r3
13
	EGIT_REPO_URI="https://github.com/ashaduri/gsmartcontrol"
14
else
15
	SRC_URI="
16
		https://github.com/ashaduri/gsmartcontrol/archive/refs/tags/v${PV}.tar.gz
17
		-> ${P}.tar.gz
18
	"
19
	KEYWORDS="amd64 x86"
20
fi
21

  
22
LICENSE="GPL-3 LGPL-3 0BSD Boost-1.0 ZLIB"
23
#bundles catch2, nlohmann_json, tl_expected and whereami
24
LICENSE+=" Boost-1.0 CC0-1.0 MIT || ( MIT WTFPL-2 )"
13 25
SLOT="0"
14
KEYWORDS="amd64 x86"
15 26
IUSE="test"
16 27
RESTRICT="!test? ( test )"
17 28

  
18
DEPEND="dev-cpp/gtkmm:3.0
19
	dev-libs/libpcre:3[cxx]
20
	sys-apps/smartmontools"
21
RDEPEND="${DEPEND}
22
	x11-apps/xmessage"
23
BDEPEND="virtual/pkgconfig
24
	test? ( dev-util/gtk-builder-convert )"
25

  
26
DOCS=( TODO ) # See 'dist_doc_DATA' value in Makefile.am
29
DEPEND="
30
	dev-cpp/glibmm:*
31
	dev-cpp/gtkmm:3.0
32
	dev-libs/libsigc++:2
33
	sys-apps/smartmontools
34
"
35
RDEPEND="
36
	${DEPEND}
37
	x11-apps/xmessage
38
"
39
BDEPEND="
40
	sys-devel/gettext
41
	virtual/pkgconfig
42
"
27 43

  
28 44
src_configure() {
29
	append-cxxflags -std=c++11
30

  
31
	econf $(use test tests)
32
}
33

  
34
src_install() {
35
	default
36

  
37
	rm "${ED}"/usr/share/doc/${PF}/LICENSE_* || die
45
	local mycmakeargs=(
46
		-DAPP_BUILD_EXAMPLES=OFF
47
		-DAPP_BUILD_TESTS=$(usex test)
48
	)
49
	cmake_src_configure
38 50
}
Thank you!