public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-misc/xbatt/files/, x11-misc/xbatt/
@ 2018-02-26 18:42 Jeroen Roovers
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2018-02-26 18:42 UTC (permalink / raw
  To: gentoo-commits

commit:     5a72fa99c24aac8a895e809e6e24c758a18e6277
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 26 18:42:02 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Mon Feb 26 18:42:02 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a72fa99

x11-misc/xbatt: EAPI=6 (bug #648876).

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 x11-misc/xbatt/files/xbatt-1.2.1-implicits.patch |  4 +--
 x11-misc/xbatt/xbatt-1.3_rc1.ebuild              | 40 +++++++++++++-----------
 2 files changed, 23 insertions(+), 21 deletions(-)

diff --git a/x11-misc/xbatt/files/xbatt-1.2.1-implicits.patch b/x11-misc/xbatt/files/xbatt-1.2.1-implicits.patch
index d86e42ef3fc..5e135d5c313 100644
--- a/x11-misc/xbatt/files/xbatt-1.2.1-implicits.patch
+++ b/x11-misc/xbatt/files/xbatt-1.2.1-implicits.patch
@@ -1,7 +1,7 @@
 Fix implicit functions declarations
 
---- xbatt.c
-+++ xbatt.c
+--- a/xbatt.c
++++ b/xbatt.c
 @@ -47,6 +47,9 @@
  #include <time.h>
  #include <sys/file.h>

diff --git a/x11-misc/xbatt/xbatt-1.3_rc1.ebuild b/x11-misc/xbatt/xbatt-1.3_rc1.ebuild
index a3d3a1f562f..f291714e25c 100644
--- a/x11-misc/xbatt/xbatt-1.3_rc1.ebuild
+++ b/x11-misc/xbatt/xbatt-1.3_rc1.ebuild
@@ -1,9 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=2
-
-inherit versionator eutils toolchain-funcs
+EAPI=6
+inherit toolchain-funcs versionator
 
 MY_PV=${PV/_rc/pr}
 DESCRIPTION="Notebook battery indicator for X"
@@ -13,32 +12,35 @@ SRC_URI="http://www.clave.gr.jp/~eto/xbatt/${PN}-${MY_PV}.tar.gz"
 LICENSE="xbatt"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
-
-RDEPEND="x11-libs/libX11
+RDEPEND="
+	x11-libs/libX11
 	x11-libs/libXmu
 	x11-libs/libXt
 	x11-libs/libXaw
 	x11-libs/libXext
 	x11-libs/libxkbfile
-	x11-libs/libXpm"
-DEPEND="${RDEPEND}
+	x11-libs/libXpm
+"
+DEPEND="
+	${RDEPEND}
 	x11-proto/xextproto
-	x11-misc/imake"
-
+	x11-misc/imake
+"
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.2.1-implicits.patch
+)
 S="${WORKDIR}"/${PN}-$(get_version_component_range 1-2)
 
-src_prepare(){
-	epatch "${FILESDIR}"/${PN}-1.2.1-implicits.patch
-}
-
 src_compile() {
 	xmkmf || die
-	emake xbatt CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" \
-		EXTRA_LDOPTIONS="${LDFLAGS}" || die
+	emake \
+		CC="$(tc-getCC)" \
+		CDEBUGFLAGS="${CFLAGS}" \
+		EXTRA_LDOPTIONS="${LDFLAGS}" \
+		xbatt
 }
 
 src_install() {
-	emake DESTDIR="${D}" install || die
-	dodoc README* || die
+	emake DESTDIR="${D}" install
+	dodoc README*
 }


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

* [gentoo-commits] repo/gentoo:master commit in: x11-misc/xbatt/files/, x11-misc/xbatt/
@ 2022-09-30 11:02 Ionen Wolkens
  0 siblings, 0 replies; 2+ messages in thread
From: Ionen Wolkens @ 2022-09-30 11:02 UTC (permalink / raw
  To: gentoo-commits

commit:     8928da1acfffdc887ba79d34b1088fe21406e0d7
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 30 09:10:31 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Sep 30 10:48:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8928da1a

x11-misc/xbatt: fix build with clang16

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-misc/xbatt/files/xbatt-1.2.1-clang16.patch | 8 ++++++++
 x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild         | 1 +
 2 files changed, 9 insertions(+)

diff --git a/x11-misc/xbatt/files/xbatt-1.2.1-clang16.patch b/x11-misc/xbatt/files/xbatt-1.2.1-clang16.patch
new file mode 100644
index 000000000000..9a7c03157738
--- /dev/null
+++ b/x11-misc/xbatt/files/xbatt-1.2.1-clang16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/870412
+--- a/xbatt.c
++++ b/xbatt.c
+@@ -223,3 +223,3 @@
+ 
+-main(
++int main(
+   int	argc,

diff --git a/x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild b/x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild
index 1c3072e729f7..460d865a6a04 100644
--- a/x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild
+++ b/x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild
@@ -32,6 +32,7 @@ BDEPEND="
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-1.2.1-implicits.patch
+	"${FILESDIR}"/${PN}-1.2.1-clang16.patch
 )
 
 src_configure() {


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

end of thread, other threads:[~2022-09-30 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-26 18:42 [gentoo-commits] repo/gentoo:master commit in: x11-misc/xbatt/files/, x11-misc/xbatt/ Jeroen Roovers
  -- strict thread matches above, loose matches on Subject: below --
2022-09-30 11:02 Ionen Wolkens

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