xfce4-sensors-plugin: fork for bug #746107

This commit is contained in:
Rick Farina (Zero_Chaos) 2021-04-14 15:15:11 -04:00
parent 232aac787e
commit 94fca6d896
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
4 changed files with 110 additions and 0 deletions

View file

@ -0,0 +1,3 @@
DIST xfce4-sensors-plugin-1.3.95.tar.bz2 486771 BLAKE2B 130b38d30bcbb2e08ca167846f32ebc7e60ea2cd855ae0bcbcf82e8a73c9cdf04cd91da5c5e8e1a73c79b0d36e00366a37fa04cb40abc477df70dd2ee77d866f SHA512 265dec06bcd7a609b992e70273e8b11fdbaec41b0eb4dcb1b390e315b924743b3833b65fe2d237bb0b457e61943b97c065b34138216b171d111f5e923602642b
EBUILD xfce4-sensors-plugin-1.3.95.ebuild 1492 BLAKE2B 3bc49627040f99f94c34bd8feeaba32fb007cad4b4730cf67d0d79d4dc4b821aa173c4e2a078e1f513bd70eb1ef6b22a887b6e2824cd95995d275e549b186741 SHA512 0a97a155599b9863e026555e6265d217da9023093bd886827769881c34e4fbbc8b809cec14f28226fe7c44c4f677a6cead35ff4392644e896f258486cd715cc1
MISC metadata.xml 247 BLAKE2B f381ffd75f3fdb2842002ea885015f443cc35334f0420d70a61d6730bd55c11750d6a177831dc7c8564eec4dc3863db6085162e58848b0dceb09799006a1b2c5 SHA512 25494c0053fb7b2ed0f78ecc2de8a8ae08a971db8e15f89e906a1d43177fef53eb9ec5dd075a5c67ddee2be112c0943f6c87e4870d405436bddfea3a4fa19203

View file

@ -0,0 +1,32 @@
https://bugs.gentoo.org/746107
Taken from a non-merged commit
https://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/-/commit/fa63a854bf2f4a651260e635e8fdc34e423b6018
From fa63a854bf2f4a651260e635e8fdc34e423b6018 Mon Sep 17 00:00:00 2001
From: Jan Ziak <0xe2.0x9a.0x9b@gmail.com>
Date: Sat, 2 Jan 2021 17:15:06 +0100
Subject: [PATCH] Include X11 headers before NVCtrl headers
See also: https://bugs.gentoo.org/746107
---
lib/nvidia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/nvidia.c b/lib/nvidia.c
index 70f2cc4..ab9756d 100644
--- a/lib/nvidia.c
+++ b/lib/nvidia.c
@@ -35,10 +35,10 @@
#include <stdbool.h>
#include <stdlib.h>
+#include <X11/Xlib.h> /* Must be before NVCtrl includes */
#include <NVCtrl/NVCtrl.h>
#include <NVCtrl/NVCtrlLib.h>
#include <nvidia.h>
-#include <X11/Xlib.h>
/* Global variables */
Display *nvidia_sensors_display;
--
GitLab

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>zerochaos@gentoo.org</email>
<name>Zero_Chaos</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,67 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit gnome2-utils
DESCRIPTION="A panel plug-in for acpi, lm-sensors and hddtemp sensors"
HOMEPAGE="https://goodies.xfce.org/projects/panel-plugins/xfce4-sensors-plugin"
SRC_URI="https://archive.xfce.org/src/panel-plugins/${PN}/${PV%.*}/${P}.tar.bz2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~ppc ~ppc64 x86"
IUSE="+acpi hddtemp libnotify lm-sensors video_cards_nvidia"
REQUIRED_USE="|| ( hddtemp lm-sensors acpi )"
RDEPEND=">=x11-libs/gtk+-3.20:3=
>=xfce-base/libxfce4ui-4.12:=[gtk3(+)]
>=xfce-base/xfce4-panel-4.12:=
hddtemp? (
app-admin/hddtemp
|| (
net-analyzer/openbsd-netcat
net-analyzer/netcat
)
)
libnotify? ( >=x11-libs/libnotify-0.7:= )
lm-sensors? ( >=sys-apps/lm-sensors-3.1.0:= )
video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )"
DEPEND=${RDEPEND}
BDEPEND="
dev-util/intltool
virtual/pkgconfig"
PATCHES=( "${FILESDIR}"/fix-nvidia.patch )
src_configure() {
local myconf=(
--libexecdir="${EPREFIX}"/usr/$(get_libdir)
$(use_enable lm-sensors libsensors)
$(use_enable hddtemp)
$(use_enable hddtemp netcat)
$(use_enable acpi procacpi)
$(use_enable acpi sysfsacpi)
$(use_enable video_cards_nvidia xnvctrl)
$(use_enable libnotify notification)
--disable-pathchecks
)
econf "${myconf[@]}"
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}