public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-misc/xsensors/, x11-misc/xsensors/files/
@ 2017-02-05 19:08 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2017-02-05 19:08 UTC (permalink / raw
  To: gentoo-commits

commit:     d37d3680c8cf9b457b6bf643a48ad135c2e3414d
Author:     Harri Nieminen <moikkis <AT> gmail <DOT> com>
AuthorDate: Sun Feb  5 13:32:46 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Feb  5 19:06:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d37d3680

x11-misc/xsensors: EAPI bump 2 -> 6, rename configure.in to .ac

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/3827

 x11-misc/xsensors/files/xsensors-0.70-gtk220.patch |  4 +--
 x11-misc/xsensors/xsensors-0.70-r1.ebuild          | 36 ++++++++++++++++++++++
 2 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/x11-misc/xsensors/files/xsensors-0.70-gtk220.patch b/x11-misc/xsensors/files/xsensors-0.70-gtk220.patch
index 0aaf2c8..2f36cfb 100644
--- a/x11-misc/xsensors/files/xsensors-0.70-gtk220.patch
+++ b/x11-misc/xsensors/files/xsensors-0.70-gtk220.patch
@@ -1,5 +1,5 @@
---- src/gui.c
-+++ src/gui.c
+--- a/src/gui.c
++++ b/src/gui.c
 @@ -84,7 +84,7 @@
      while ( *digit ) {
          get_pm_location( *digit, &x, &y, &w );

diff --git a/x11-misc/xsensors/xsensors-0.70-r1.ebuild b/x11-misc/xsensors/xsensors-0.70-r1.ebuild
new file mode 100644
index 00000000..f66b915
--- /dev/null
+++ b/x11-misc/xsensors/xsensors-0.70-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="A hardware health information viewer, interface to lm-sensors"
+HOMEPAGE="http://www.linuxhardware.org/xsensors/"
+SRC_URI="http://www.linuxhardware.org/xsensors/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+	>=sys-apps/lm_sensors-3"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-gtk220.patch )
+
+src_prepare() {
+	default
+
+	sed -i \
+		-e '/-DG.*_DISABLE_DEPRECATED/d' \
+		-e 's:-Werror:-Wall:' \
+		src/Makefile.am configure.in || die
+
+	mv configure.{in,ac} || die #426262
+
+	eautoreconf
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: x11-misc/xsensors/, x11-misc/xsensors/files/
@ 2020-09-06 11:37 Jeroen Roovers
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2020-09-06 11:37 UTC (permalink / raw
  To: gentoo-commits

commit:     a57cdb2cac51ad73069b1365045dd3d74e394c5b
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  6 11:37:15 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Sep  6 11:37:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a57cdb2c

x11-misc/xsensors: Patch configure.ac for missing AM_PATH_GTK_2_0

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Closes: https://bugs.gentoo.org/740646
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 x11-misc/xsensors/files/xsensors-0.80-Werror.patch | 14 +++++++++
 x11-misc/xsensors/files/xsensors-0.80-gtk220.patch | 34 ++++++++++++++++++++++
 x11-misc/xsensors/xsensors-0.80.ebuild             | 11 +++----
 3 files changed, 52 insertions(+), 7 deletions(-)

diff --git a/x11-misc/xsensors/files/xsensors-0.80-Werror.patch b/x11-misc/xsensors/files/xsensors-0.80-Werror.patch
new file mode 100644
index 00000000000..b903404256a
--- /dev/null
+++ b/x11-misc/xsensors/files/xsensors-0.80-Werror.patch
@@ -0,0 +1,14 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -4,10 +4,7 @@
+ 	-DG_LOG_DOMAIN=\"GnomeCPUInfoApplet\"				\
+ 	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"		\
+ 	-DDATADIR=\""$(datadir)"\"					\
+-	-DG_DISABLE_DEPRECATED		-DGTK_DISABLE_DEPRECATED	\
+-	-DGDK_DISABLE_DEPRECATED	-DGNOME_DISABLE_DEPRECATED	\
+-	-ansi	-Wall	-Wmissing-prototypes	-Wmissing-declarations \
+-    -Werror
++	-ansi	-Wall	-Wmissing-prototypes	-Wmissing-declarations
+ 
+ bin_PROGRAMS = xsensors
+ 

diff --git a/x11-misc/xsensors/files/xsensors-0.80-gtk220.patch b/x11-misc/xsensors/files/xsensors-0.80-gtk220.patch
new file mode 100644
index 00000000000..9b53de08864
--- /dev/null
+++ b/x11-misc/xsensors/files/xsensors-0.80-gtk220.patch
@@ -0,0 +1,34 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -29,7 +29,7 @@
+             [Force GTK2 GUI, even if GTK3 is available @<:@default=check@:>@])],
+             [], [with_gtk2=no])
+ 
+-if [ test "x$with_gtk2" == xno ]; then
++if [ test "x$with_gtk2" = xno ]; then
+     PKG_CHECK_MODULES([GTK],[gtk+-3.0],foundgtk3=true,foundgtk3=false)
+ else
+     echo "Using GTK2..."
+@@ -37,18 +37,13 @@
+ fi
+ 
+ if [ $foundgtk3 ]; then
+-	XSENSORS_CFLAGS="`pkg-config --cflags gtk+-3.0` -Werror -Wall"
+-	XSENSORS_LIBS="`pkg-config --libs gtk+-3.0`"
++	XSENSORS_CFLAGS="`${PKG_CONFIG} --cflags gtk+-3.0` -Wall -Wall"
++	XSENSORS_LIBS="`${PKG_CONFIG} --libs gtk+-3.0`"
+ else
+-    if [ test "x$with_gtk2" == xno ]; then
+-        echo "GTK3 is not installed, checking for GTK2 instead..."
+-    fi
+-	AM_PATH_GTK_2_0(2.8.0,,AC_MSG_ERROR([
++    AC_MSG_ERROR([
+ *** GTK+ is required to build xsensors; please make sure you have the GTK+
+ *** development headers installed. The latest version of GTK+ is
+-*** always available at http://www.gtk.org/.]))
+-	XSENSORS_CFLAGS="`pkg-config --cflags gtk+-2.0` -Werror -Wall"
+-	XSENSORS_LIBS="`pkg-config --libs gtk+-2.0`"
++*** always available at http://www.gtk.org/.])
+ fi
+ 
+ AC_SUBST(XSENSORS_CFLAGS)

diff --git a/x11-misc/xsensors/xsensors-0.80.ebuild b/x11-misc/xsensors/xsensors-0.80.ebuild
index 455f446c563..43258aef8b9 100644
--- a/x11-misc/xsensors/xsensors-0.80.ebuild
+++ b/x11-misc/xsensors/xsensors-0.80.ebuild
@@ -23,17 +23,14 @@ DEPEND="
 BDEPEND="
 	virtual/pkgconfig
 "
+PATCHES=(
+	"${FILESDIR}"/${P}-gtk220.patch
+	"${FILESDIR}"/${P}-Werror.patch
+)
 
 src_prepare() {
 	default
 
-	sed -i \
-		-e '/-DG.*_DISABLE_DEPRECATED/d' \
-		-e 's#-Werror#-Wall#g' \
-		-e 's#==#=#g' \
-		-e 's#pkg-config#${PKG_CONFIG}#g' \
-		src/Makefile.am configure.ac || die
-
 	eautoreconf
 }
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-06 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-05 19:08 [gentoo-commits] repo/gentoo:master commit in: x11-misc/xsensors/, x11-misc/xsensors/files/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2020-09-06 11:37 Jeroen Roovers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox