[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/

2023-06-13 Thread Bernard Cafarelli
commit: fcde7b1e48c1e2147a1c9f32f077c375a09fb567
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Thu Jun  8 09:14:41 2023 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Tue Jun 13 14:15:02 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcde7b1e

x11-plugins/wmpower: use HTTPS

Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Signed-off-by: Bernard Cafarelli  gentoo.org>

 x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild 
b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
index 977f02854a32..c7a36ce9b193 100644
--- a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
+++ b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -6,7 +6,7 @@ inherit autotools
 
 DESCRIPTION="a dockapp to get/set power management status for laptops (APM, 
ACPI
 and CPUfreq)"
-HOMEPAGE="http://wmpower.sourceforge.net/;
+HOMEPAGE="https://wmpower.sourceforge.net/;
 SRC_URI="mirror://sourceforge/wmpower/${P}.tar.bz2"
 
 LICENSE="GPL-2"



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/

2022-10-19 Thread Sam James
commit: 8a3ad49a6c12e15363feabb25d806b81e5d61355
Author: Petr Vaněk  atlas  cz>
AuthorDate: Wed Oct 19 09:13:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Oct 20 03:52:57 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a3ad49a

x11-plugins/wmpower: align longdescription opening and closing tags

Signed-off-by: Petr Vaněk  atlas.cz>
Signed-off-by: Sam James  gentoo.org>

 x11-plugins/wmpower/metadata.xml | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/x11-plugins/wmpower/metadata.xml b/x11-plugins/wmpower/metadata.xml
index 4adb979b669f..b24bbe2e197e 100644
--- a/x11-plugins/wmpower/metadata.xml
+++ b/x11-plugins/wmpower/metadata.xml
@@ -6,11 +6,11 @@
Bernard Cafarelli


-wmpower is a Window Maker dock application
-allowing the user to graphically see (and set) the power management status of 
his laptop.
-It works with both APM and ACPI enabled kernels, has special support for 
Toshiba, Compal
-and Dell hardware, and allows you to dinamically set the frequency of your 
CPU(s) via CPUfreq.
-
+   wmpower is a Window Maker dock application
+   allowing the user to graphically see (and set) the power management 
status of his laptop.
+   It works with both APM and ACPI enabled kernels, has special support 
for Toshiba, Compal
+   and Dell hardware, and allows you to dinamically set the frequency of 
your CPU(s) via CPUfreq.
+   

wmpower




[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/files/, x11-plugins/wmpower/

2021-01-02 Thread Bernard Cafarelli
commit: 3566259c569ed3507de43419068d7966157771c3
Author: Bernard Cafarelli  gentoo  org>
AuthorDate: Sat Jan  2 23:31:43 2021 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Sat Jan  2 23:32:20 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3566259c

x11-plugins/wmpower: do not call ar directly

Closes: https://bugs.gentoo.org/726254
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Bernard Cafarelli  gentoo.org>

 x11-plugins/wmpower/files/wmpower-0.4.3-ar.patch | 11 +++
 x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild  | 13 +++--
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/x11-plugins/wmpower/files/wmpower-0.4.3-ar.patch 
b/x11-plugins/wmpower/files/wmpower-0.4.3-ar.patch
new file mode 100644
index 000..b59fcf6bbe3
--- /dev/null
+++ b/x11-plugins/wmpower/files/wmpower-0.4.3-ar.patch
@@ -0,0 +1,11 @@
+diff -Naur wmpower-0.4.3.orig/configure.in wmpower-0.4.3/configure.in
+--- wmpower-0.4.3.orig/configure.in2008-11-25 11:05:58.0 +0100
 wmpower-0.4.3/configure.in 2021-01-03 00:30:15.977692665 +0100
+@@ -3,6 +3,7 @@
+ AC_CONFIG_SRCDIR(src/wmpower.c)
+ AM_INIT_AUTOMAKE([1.7 check-news dist-bzip2])
+ 
++AM_PROG_AR
+ AC_GNU_SOURCE
+ AC_PROG_INSTALL
+ AC_PROG_CC

diff --git a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild 
b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
index 0f828dab580..977f02854a3 100644
--- a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
+++ b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+inherit autotools
 
 DESCRIPTION="a dockapp to get/set power management status for laptops (APM, 
ACPI
 and CPUfreq)"
@@ -18,10 +19,18 @@ RDEPEND="x11-libs/libX11
 DEPEND="${RDEPEND}
x11-base/xorg-proto"
 
-PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch )
+PATCHES=(
+   "${FILESDIR}"/${P}-gcc-10.patch
+   "${FILESDIR}"/${P}-ar.patch
+   )
 
 DOCS=( AUTHORS BUGS ChangeLog LEGGIMI NEWS README README.compal THANKS TODO )
 
+src_prepare() {
+   default
+   eautoreconf
+}
+
 src_configure() {
# override wmpower self-calculated cflags
econf MY_CFLAGS="${CFLAGS}"



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/, x11-plugins/wmpower/files/

2020-01-29 Thread Bernard Cafarelli
commit: f5291a8c09ea41b32a46c42349dcb9bfedf3ab77
Author: Bernard Cafarelli  gentoo  org>
AuthorDate: Wed Jan 29 18:22:48 2020 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Wed Jan 29 18:27:00 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5291a8c

x11-plugins/wmpower: fix build with -fno-common

Closes: https://bugs.gentoo.org/706754
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli  gentoo.org>

 .../wmpower/files/wmpower-0.4.3-gcc-10.patch   | 148 +
 x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild|   4 +-
 2 files changed, 151 insertions(+), 1 deletion(-)

diff --git a/x11-plugins/wmpower/files/wmpower-0.4.3-gcc-10.patch 
b/x11-plugins/wmpower/files/wmpower-0.4.3-gcc-10.patch
new file mode 100644
index 000..bdc28a16341
--- /dev/null
+++ b/x11-plugins/wmpower/files/wmpower-0.4.3-gcc-10.patch
@@ -0,0 +1,148 @@
+diff -Naur wmpower-0.4.3.orig/src/dockapp/dockapp.c 
wmpower-0.4.3/src/dockapp/dockapp.c
+--- wmpower-0.4.3.orig/src/dockapp/dockapp.c   2003-09-18 18:53:27.0 
+0200
 wmpower-0.4.3/src/dockapp/dockapp.c2020-01-29 19:15:58.062434728 
+0100
+@@ -50,6 +50,7 @@
+ GC NormalGC;
+ XpmIconwmgen;
+ Pixmap pixmask;
++Display*display;
+ 
+   /*/
+  /* Mouse Regions */
+diff -Naur wmpower-0.4.3.orig/src/dockapp/dockapp.h 
wmpower-0.4.3/src/dockapp/dockapp.h
+--- wmpower-0.4.3.orig/src/dockapp/dockapp.h   2003-09-18 18:29:17.0 
+0200
 wmpower-0.4.3/src/dockapp/dockapp.h2020-01-29 19:15:58.062434728 
+0100
+@@ -28,7 +28,7 @@
+  /* Global variable */
+ /***/
+ 
+-Display   *display;
++extern Display*display;
+ 
+   /***/
+  /* Function Prototypes */
+diff -Naur wmpower-0.4.3.orig/src/power_management/acpi/libacpi.c 
wmpower-0.4.3/src/power_management/acpi/libacpi.c
+--- wmpower-0.4.3.orig/src/power_management/acpi/libacpi.c 2005-09-06 
12:09:10.0 +0200
 wmpower-0.4.3/src/power_management/acpi/libacpi.c  2020-01-29 
19:20:44.031452047 +0100
+@@ -46,6 +46,8 @@
+ #include "power_management.h"
+ #include "lib_utils.h"
+ 
++char battery_type;
++int batt_count;
+ 
+ /* here we put temp stuff read from proc files */
+ char buf[512];
+diff -Naur wmpower-0.4.3.orig/src/power_management/acpi/libacpi.h 
wmpower-0.4.3/src/power_management/acpi/libacpi.h
+--- wmpower-0.4.3.orig/src/power_management/acpi/libacpi.h 2004-07-16 
20:13:19.0 +0200
 wmpower-0.4.3/src/power_management/acpi/libacpi.h  2020-01-29 
19:20:48.717452334 +0100
+@@ -67,7 +67,7 @@
+ }
+ ACPIinfo;
+ 
+-char battery_type;
++extern char battery_type;
+ 
+ typedef struct
+ {
+@@ -76,7 +76,7 @@
+ ACADstate;
+ 
+ /* number of batteries detected */
+-int batt_count;
++extern int batt_count;
+ 
+ int  check_acpi (void);
+ void read_acad_state (ACADstate *acadstate);
+diff -Naur wmpower-0.4.3.orig/src/power_management/compal/compal_lib.c 
wmpower-0.4.3/src/power_management/compal/compal_lib.c
+--- wmpower-0.4.3.orig/src/power_management/compal/compal_lib.c
2005-09-12 18:13:32.0 +0200
 wmpower-0.4.3/src/power_management/compal/compal_lib.c 2020-01-29 
19:21:14.455453915 +0100
+@@ -40,6 +40,7 @@
+ #include "lib_utils.h"
+ #include "power_management.h"
+ 
++char  compal_model[COMPAL_MAX_MODEL_INFO];
+ 
+ 
+ /* gets a value from a strtok-ed buffer; for reading from /proc */
+diff -Naur wmpower-0.4.3.orig/src/power_management/compal/compal_lib.h 
wmpower-0.4.3/src/power_management/compal/compal_lib.h
+--- wmpower-0.4.3.orig/src/power_management/compal/compal_lib.h
2005-09-12 18:13:23.0 +0200
 wmpower-0.4.3/src/power_management/compal/compal_lib.h 2020-01-29 
19:21:09.180453591 +0100
+@@ -44,7 +44,7 @@
+ #define COMPAL_PROC_FILE_BATT "/proc/omnibook/battery"
+ 
+ 
+-char  compal_model[COMPAL_MAX_MODEL_INFO];
++extern char  compal_model[COMPAL_MAX_MODEL_INFO];
+ 
+ char *getvaluefromhash (char *key, char *hash);
+ 
+diff -Naur wmpower-0.4.3.orig/src/power_management/power_management.c 
wmpower-0.4.3/src/power_management/power_management.c
+--- wmpower-0.4.3.orig/src/power_management/power_management.c 2005-12-15 
12:54:59.0 +0100
 wmpower-0.4.3/src/power_management/power_management.c  2020-01-29 
19:18:36.031444239 +0100
+@@ -55,6 +55,13 @@
+ int use_noflushd=1;
+ int use_cpufreq=1;
+ 
++kernel_versions kernel_version;
++int minBrightness;
++int maxBrightness;
++int waittime; /* /proc polling time */
++char *cpufreq_online_governor;
++char *cpufreq_offline_governor;
++
+ /* Battery to monitor */
+ int Battery;
+ 
+diff -Naur wmpower-0.4.3.orig/src/power_management/power_management.h 
wmpower-0.4.3/src/power_management/power_management.h
+--- wmpower-0.4.3.orig/src/power_management/power_management.h 2005-12-15 
12:54:12.0 +0100
 wmpower-0.4.3/src/power_management/power_management.h  2020-01-29 

[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/

2018-10-07 Thread Mikle Kolyada
commit: e20f33835a4eb665631e194cdf8d6af69238c43e
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sun Oct  7 12:12:47 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sun Oct  7 12:12:47 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e20f3383

x11-plugins/wmpower: amd64 stable wrt bug #666088

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

 x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild 
b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
index 81d0e102ca8..d161fd1e3b5 100644
--- a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
+++ b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/wmpower/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
+KEYWORDS="amd64 ~ppc x86"
 
 RDEPEND="x11-libs/libX11
x11-libs/libXext



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/

2018-10-07 Thread Mikle Kolyada
commit: ed2d423e5fc8265ecc1121057f64e7989f166efe
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sun Oct  7 12:13:07 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sun Oct  7 12:13:07 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed2d423e

x11-plugins/wmpower: Drop old

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

 x11-plugins/wmpower/wmpower-0.4.3.ebuild | 31 ---
 1 file changed, 31 deletions(-)

diff --git a/x11-plugins/wmpower/wmpower-0.4.3.ebuild 
b/x11-plugins/wmpower/wmpower-0.4.3.ebuild
deleted file mode 100644
index 3235f25cf63..000
--- a/x11-plugins/wmpower/wmpower-0.4.3.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-DESCRIPTION="a dockapp to get/set power management status for laptops (APM, 
ACPI
-and CPUfreq)"
-HOMEPAGE="http://wmpower.sourceforge.net/;
-SRC_URI="mirror://sourceforge/wmpower/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
-IUSE=""
-
-RDEPEND="x11-libs/libX11
-   x11-libs/libXext
-   x11-libs/libXpm"
-DEPEND="${RDEPEND}
-   x11-base/xorg-proto"
-
-src_compile() {
-   # override wmpower self-calculated cflags
-   econf MY_CFLAGS="${CFLAGS}" || die "Configuration failed"
-   emake prefix="/usr/" || die "Compilation failed"
-}
-
-src_install() {
-   emake DESTDIR="${D}" install || die "Installation failed"
-   dodoc AUTHORS BUGS ChangeLog LEGGIMI NEWS README README.compal THANKS 
TODO
-}



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/

2018-09-20 Thread Bernard Cafarelli
commit: c8e3220b1bc90a99948c285a113aa0ece89178f3
Author: Bernard Cafarelli  gentoo  org>
AuthorDate: Thu Sep 20 23:52:42 2018 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Thu Sep 20 23:52:42 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e3220b

x11-plugins/wmpower: fix missing src_configure

Closes: https://bugs.gentoo.org/31
Package-Manager: Portage-2.3.49, Repoman-2.3.10

 x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild 
b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
index 019b4d78dd7..81d0e102ca8 100644
--- a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
+++ b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
@@ -20,8 +20,11 @@ DEPEND="${RDEPEND}
 
 DOCS=( AUTHORS BUGS ChangeLog LEGGIMI NEWS README README.compal THANKS TODO )
 
-src_compile() {
+src_configure() {
# override wmpower self-calculated cflags
econf MY_CFLAGS="${CFLAGS}"
+}
+
+src_compile() {
emake prefix="/usr/"
 }



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/

2018-09-19 Thread Thomas Deutschmann
commit: 63692a57501cc8e5e25bec0cf542111406983ec5
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Wed Sep 19 18:17:30 2018 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Wed Sep 19 18:28:00 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63692a57

x11-plugins/wmpower: x86 stable (bug #666088)

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild 
b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
index 6a4a750ff07..019b4d78dd7 100644
--- a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
+++ b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/wmpower/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc x86"
 
 RDEPEND="x11-libs/libX11
x11-libs/libXext



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/

2018-08-02 Thread Bernard Cafarelli
commit: 3a64afde18a7c7fca8b18b892ac80fa1ca7a5584
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Mon Jul 23 18:38:32 2018 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Thu Aug  2 20:17:56 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a64afde

x11-plugins/wmpower: EAPI7, improve ebuild

 x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild | 27 +++
 1 file changed, 27 insertions(+)

diff --git a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild 
b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
new file mode 100644
index 000..6a4a750ff07
--- /dev/null
+++ b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="a dockapp to get/set power management status for laptops (APM, 
ACPI
+and CPUfreq)"
+HOMEPAGE="http://wmpower.sourceforge.net/;
+SRC_URI="mirror://sourceforge/wmpower/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="x11-libs/libX11
+   x11-libs/libXext
+   x11-libs/libXpm"
+DEPEND="${RDEPEND}
+   x11-base/xorg-proto"
+
+DOCS=( AUTHORS BUGS ChangeLog LEGGIMI NEWS README README.compal THANKS TODO )
+
+src_compile() {
+   # override wmpower self-calculated cflags
+   econf MY_CFLAGS="${CFLAGS}"
+   emake prefix="/usr/"
+}