1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 ECM_HANDBOOK="forceoptional"
12 DESCRIPTION="Utility providing information about the computer hardware"
13 HOMEPAGE="https://userbase.kde.org/KInfoCenter"
14 SRC_URI+=" https://www.gentoo.org/assets/img/logo/gentoo-3d-small.png -> glogo-small.png"
15 LICENSE="GPL-2" # TODO: CHECK
17 KEYWORDS="amd64 ~arm arm64 ~ppc64 x86"
18 IUSE="gles2-only ieee1394 +opengl +pci wayland"
20 REQUIRED_USE="wayland? ( || ( gles2-only opengl ) )"
22 BDEPEND=">=dev-util/cmake-3.14.3"
24 >=dev-qt/qtdbus-${QTMIN}:5
25 >=dev-qt/qtdeclarative-${QTMIN}:5
26 >=dev-qt/qtgui-${QTMIN}:5[gles2-only=]
27 >=dev-qt/qtwidgets-${QTMIN}:5
28 >=kde-frameworks/kcmutils-${KFMIN}:5
29 >=kde-frameworks/kcompletion-${KFMIN}:5
30 >=kde-frameworks/kconfig-${KFMIN}:5
31 >=kde-frameworks/kconfigwidgets-${KFMIN}:5
32 >=kde-frameworks/kcoreaddons-${KFMIN}:5
33 >=kde-frameworks/kcrash-${KFMIN}:5
34 >=kde-frameworks/kdbusaddons-${KFMIN}:5
35 >=kde-frameworks/kdeclarative-${KFMIN}:5
36 >=kde-frameworks/ki18n-${KFMIN}:5
37 >=kde-frameworks/kiconthemes-${KFMIN}:5
38 >=kde-frameworks/kio-${KFMIN}:5
39 >=kde-frameworks/kpackage-${KFMIN}:5
40 >=kde-frameworks/kservice-${KFMIN}:5
41 >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
42 >=kde-frameworks/kxmlgui-${KFMIN}:5
43 >=kde-frameworks/solid-${KFMIN}:5
45 gles2-only? ( media-libs/mesa[gles2] )
46 ieee1394? ( sys-libs/libraw1394 )
48 !gles2-only? ( media-libs/glu )
50 pci? ( sys-apps/pciutils )
52 >=kde-frameworks/kwayland-${KFMIN}:5
56 DEPEND="${COMMON_DEPEND}
57 >=kde-frameworks/plasma-${KFMIN}:5
59 RDEPEND="${COMMON_DEPEND}
60 >=dev-qt/qtquickcontrols2-${QTMIN}:5
61 >=kde-plasma/kde-cli-tools-${PVCUT}:5
66 $(cmake_use_find_package ieee1394 RAW1394)
67 $(cmake_use_find_package pci PCIUTILS)
68 $(cmake_use_find_package wayland EGL)
69 $(cmake_use_find_package wayland KF5Wayland)
72 if has_version "dev-qt/qtgui[gles2-only]"; then
73 mycmakeargs+=( $(cmake_use_find_package gles2-only OpenGLES) )
75 mycmakeargs+=( $(cmake_use_find_package opengl OpenGL) )
84 # TODO: Make this fully obsolete by /etc/os-release
86 doins "${FILESDIR}"/kcm-about-distrorc
88 insinto /usr/share/${PN}
89 doins "${DISTDIR}"/glogo-small.png
95 if [[ -z "${REPLACING_VERSIONS}" ]]; then
96 has_version "net-fs/nfs-utils" || \
97 elog "Installing net-fs/nfs-utils will enable the NFS information module."
99 has_version "net-fs/samba" || \
100 elog "Installing net-fs/samba will enable the Samba status information module."