Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xbattbar/files/, x11-misc/xbattbar/
Date: Tue, 29 Nov 2022 00:00:03
Message-Id: 1669679979.0d2ce1ced242c7c6c73b41172a95c6289d0f4abe.ionen@gentoo
1 commit: 0d2ce1ced242c7c6c73b41172a95c6289d0f4abe
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 23:57:57 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 28 23:59:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d2ce1ce
7
8 x11-misc/xbattbar: EAPI7->8, fix w/ upcoming clang16
9
10 Closes: https://bugs.gentoo.org/875059
11 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
12
13 x11-misc/xbattbar/files/xbattbar-1.4.9-implicit-int.patch | 8 ++++++++
14 x11-misc/xbattbar/xbattbar-1.4.9.ebuild | 15 +++++++--------
15 2 files changed, 15 insertions(+), 8 deletions(-)
16
17 diff --git a/x11-misc/xbattbar/files/xbattbar-1.4.9-implicit-int.patch b/x11-misc/xbattbar/files/xbattbar-1.4.9-implicit-int.patch
18 new file mode 100644
19 index 000000000000..8ee0b80ecb3b
20 --- /dev/null
21 +++ b/x11-misc/xbattbar/files/xbattbar-1.4.9-implicit-int.patch
22 @@ -0,0 +1,8 @@
23 +https://bugs.gentoo.org/875059
24 +--- a/xbattbar.c
25 ++++ b/xbattbar.c
26 +@@ -234,3 +234,3 @@
27 +
28 +-main(int argc, char **argv)
29 ++int main(int argc, char **argv)
30 + {
31
32 diff --git a/x11-misc/xbattbar/xbattbar-1.4.9.ebuild b/x11-misc/xbattbar/xbattbar-1.4.9.ebuild
33 index 660160d40073..ff02fcb15ecb 100644
34 --- a/x11-misc/xbattbar/xbattbar-1.4.9.ebuild
35 +++ b/x11-misc/xbattbar/xbattbar-1.4.9.ebuild
36 @@ -1,7 +1,7 @@
37 -# Copyright 1999-2021 Gentoo Authors
38 +# Copyright 1999-2022 Gentoo Authors
39 # Distributed under the terms of the GNU General Public License v2
40
41 -EAPI=7
42 +EAPI=8
43
44 inherit flag-o-matic toolchain-funcs
45
46 @@ -9,7 +9,7 @@ DESCRIPTION="Advanced Power Management battery status display for X"
47 HOMEPAGE="https://packages.qa.debian.org/x/xbattbar.html"
48 SRC_URI="mirror://debian/pool/main/x/${PN}/${PN}_${PV}.orig.tar.gz"
49
50 -LICENSE="GPL-2"
51 +LICENSE="GPL-2+"
52 SLOT="0"
53 KEYWORDS="amd64 ppc x86"
54
55 @@ -24,14 +24,13 @@ BDEPEND="virtual/pkgconfig"
56 PATCHES=(
57 "${FILESDIR}"/${PN}-1.4.5-Makefile.patch
58 "${FILESDIR}"/${PN}-1.4.8-const.patch
59 + "${FILESDIR}"/${PN}-1.4.9-implicit-int.patch
60 )
61
62 src_prepare() {
63 default
64
65 - sed -i \
66 - -e "s:usr/lib:usr/$(get_libdir):" \
67 - xbattbar.c || die
68 + sed -i "s|/usr/lib|${EPREFIX}/usr/$(get_libdir)|" xbattbar.c || die
69 }
70
71 src_configure() {
72 @@ -40,6 +39,6 @@ src_configure() {
73 }
74
75 src_install() {
76 - emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
77 - dodoc README
78 + emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
79 + einstalldocs
80 }