Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: xfce-extra/xfce4-sensors-plugin/
Date: Thu, 03 Nov 2022 14:51:03
Message-Id: 1667487003.eccf4b90065e5bd40dc03ed163e214afd9ec12de.mgorny@gentoo
1 commit: eccf4b90065e5bd40dc03ed163e214afd9ec12de
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 3 14:04:55 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 3 14:50:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eccf4b90
7
8 xfce-extra/xfce4-sensors-plugin: Bump to 1.4.4
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 xfce-extra/xfce4-sensors-plugin/Manifest | 1 +
13 .../xfce4-sensors-plugin-1.4.4.ebuild | 72 ++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/xfce-extra/xfce4-sensors-plugin/Manifest b/xfce-extra/xfce4-sensors-plugin/Manifest
17 index 67517f902721..69867471ec89 100644
18 --- a/xfce-extra/xfce4-sensors-plugin/Manifest
19 +++ b/xfce-extra/xfce4-sensors-plugin/Manifest
20 @@ -1 +1,2 @@
21 DIST xfce4-sensors-plugin-1.4.3.tar.bz2 508993 BLAKE2B 4e857c2b31b6dc1d9e1f5adeb0b34c1f68c0e3386c7211533c5ffdfddddfc307fd16b0a55b6f8697aab87c62e143f3e8795c1a7ba36c3cfd18e92b56e316c7f0 SHA512 2cb91afaf740db5bbbb8451cfa0540ee979671e6a1a640ad61dfeb41328c057bc16fa668e9d536595ef460bfbd41617e8b3d27f63e02324e9764543fa6a0b2b5
22 +DIST xfce4-sensors-plugin-1.4.4.tar.bz2 472187 BLAKE2B ab59dea6dd2252c23ee7a74567c16ab040152bbe0012349078d306dcad2c699d6e55b32f7d084c6cdf26f51ff324bcac817ea6f01e3957c74cd7799bddd0a147 SHA512 45a5df383cc950f05f33d3d658b4847890e4136d6c72708a4218f1460a27d44a07a3f726d6c509bc706b963041a5dab3259dd94127636fb196d47ab9a0d6f702
23
24 diff --git a/xfce-extra/xfce4-sensors-plugin/xfce4-sensors-plugin-1.4.4.ebuild b/xfce-extra/xfce4-sensors-plugin/xfce4-sensors-plugin-1.4.4.ebuild
25 new file mode 100644
26 index 000000000000..6de78b078b96
27 --- /dev/null
28 +++ b/xfce-extra/xfce4-sensors-plugin/xfce4-sensors-plugin-1.4.4.ebuild
29 @@ -0,0 +1,72 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit xdg-utils
36 +
37 +DESCRIPTION="A panel plug-in for acpi, lm-sensors and hddtemp sensors"
38 +HOMEPAGE="
39 + https://docs.xfce.org/panel-plugins/xfce4-sensors-plugin/start
40 + https://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/
41 +"
42 +SRC_URI="https://archive.xfce.org/src/panel-plugins/${PN}/${PV%.*}/${P}.tar.bz2"
43 +
44 +LICENSE="GPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86"
47 +IUSE="+acpi hddtemp libnotify lm-sensors video_cards_nvidia"
48 +REQUIRED_USE="|| ( hddtemp lm-sensors acpi )"
49 +
50 +DEPEND="
51 + >=x11-libs/gtk+-3.20:3
52 + >=xfce-base/libxfce4ui-4.16:=
53 + >=xfce-base/libxfce4util-4.17.2:=
54 + >=xfce-base/xfce4-panel-4.16:=
55 + hddtemp? (
56 + app-admin/hddtemp
57 + || (
58 + net-analyzer/openbsd-netcat
59 + net-analyzer/netcat
60 + )
61 + )
62 + libnotify? ( >=x11-libs/libnotify-0.7:= )
63 + lm-sensors? ( >=sys-apps/lm-sensors-3.1.0:= )
64 + video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
65 +"
66 +RDEPEND="
67 + ${DEPEND}
68 +"
69 +BDEPEND="
70 + dev-util/intltool
71 + virtual/pkgconfig
72 +"
73 +
74 +src_configure() {
75 + local myconf=(
76 + --libexecdir="${EPREFIX}"/usr/$(get_libdir)
77 + $(use_enable lm-sensors libsensors)
78 + $(use_enable hddtemp)
79 + $(use_enable hddtemp netcat)
80 + $(use_enable acpi procacpi)
81 + $(use_enable acpi sysfsacpi)
82 + $(use_enable video_cards_nvidia xnvctrl)
83 + $(use_enable libnotify notification)
84 + --disable-pathchecks
85 + )
86 +
87 + econf "${myconf[@]}"
88 +}
89 +
90 +src_install() {
91 + default
92 + find "${D}" -name '*.la' -delete || die
93 +}
94 +
95 +pkg_postinst() {
96 + xdg_icon_cache_update
97 +}
98 +
99 +pkg_postrm() {
100 + xdg_icon_cache_update
101 +}