public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-misc/gbdfed/files/, x11-misc/gbdfed/
@ 2021-11-06 20:33 Jakov Smolić
  0 siblings, 0 replies; 2+ messages in thread
From: Jakov Smolić @ 2021-11-06 20:33 UTC (permalink / raw
  To: gentoo-commits

commit:     44791088ccbb887a3b11c29baed9d1765987c192
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  5 19:08:23 2021 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Sat Nov  6 20:32:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44791088

x11-misc/gbdfed: Port to EAPI 8

Closes: https://bugs.gentoo.org/819159
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 x11-misc/gbdfed/files/gbdfed-1.6-makefile.patch | 13 +++++++++++++
 x11-misc/gbdfed/gbdfed-1.6.ebuild               | 21 ++++++++-------------
 2 files changed, 21 insertions(+), 13 deletions(-)

diff --git a/x11-misc/gbdfed/files/gbdfed-1.6-makefile.patch b/x11-misc/gbdfed/files/gbdfed-1.6-makefile.patch
new file mode 100644
index 00000000000..20c8f3856de
--- /dev/null
+++ b/x11-misc/gbdfed/files/gbdfed-1.6-makefile.patch
@@ -0,0 +1,13 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -27,9 +27,7 @@ MKINSTALLDIRS = ./mkinstalldirs
+ CC = @CC@
+ CFLAGS = @XX_CFLAGS@ @CFLAGS@
+ 
+-DEFINES = @DEFINES@ -DG_DISABLE_DEPRECATED \
+-	-DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED \
+-	-DGTK_DISABLE_DEPRECATED
++DEFINES = @DEFINES@
+ 
+ SRCS = bdf.c \
+        bdfcons.c \

diff --git a/x11-misc/gbdfed/gbdfed-1.6.ebuild b/x11-misc/gbdfed/gbdfed-1.6.ebuild
index 2166c768e87..3f72a17df64 100644
--- a/x11-misc/gbdfed/gbdfed-1.6.ebuild
+++ b/x11-misc/gbdfed/gbdfed-1.6.ebuild
@@ -1,8 +1,7 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils
+EAPI=8
 
 DESCRIPTION="gbdfed Bitmap Font Editor"
 HOMEPAGE="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/"
@@ -11,19 +10,15 @@ SRC_URI="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/${P}.tar.bz2"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
-RDEPEND=">=x11-libs/gtk+-2.6:2
+RDEPEND="
 	>=media-libs/freetype-2
+	>=x11-libs/gtk+-2.6:2
 	x11-libs/libX11
 	x11-libs/pango"
 DEPEND="${RDEPEND}"
 
-src_prepare() {
-	sed "s:-D.*_DISABLE_DEPRECATED::" -i Makefile.in || die #248562
-}
-
-src_install() {
-	emake DESTDIR="${D}" install
-	dodoc README NEWS
-}
+PATCHES=(
+	# bug 248562
+	"${FILESDIR}"/${P}-makefile.patch
+)


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

* [gentoo-commits] repo/gentoo:master commit in: x11-misc/gbdfed/files/, x11-misc/gbdfed/
@ 2025-04-12 20:59 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-04-12 20:59 UTC (permalink / raw
  To: gentoo-commits

commit:     106d254a63d44358465bf7496e6a4886b6449c6c
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sun Feb 23 20:29:55 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 12 20:58:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=106d254a

x11-misc/gbdfed: port to C23

Closes: https://bugs.gentoo.org/944399
Closes: https://bugs.gentoo.org/944095
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/41190
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-misc/gbdfed/files/gbdfed-1.6-c23.patch | 36 ++++++++++++++++++++++++++++++
 x11-misc/gbdfed/gbdfed-1.6-r1.ebuild       | 25 +++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/x11-misc/gbdfed/files/gbdfed-1.6-c23.patch b/x11-misc/gbdfed/files/gbdfed-1.6-c23.patch
new file mode 100644
index 000000000000..06d8db3ff87a
--- /dev/null
+++ b/x11-misc/gbdfed/files/gbdfed-1.6-c23.patch
@@ -0,0 +1,36 @@
+Port to C23. Correct error handler type, use system bool
+https://bugs.gentoo.org/944095
+https://bugs.gentoo.org/944399
+--- a/bdfgrab.c
++++ b/bdfgrab.c
+@@ -244,7 +244,7 @@
+     XCharStruct *cp;
+     bdf_property_t *pp, prop;
+     bdf_callback_struct_t cb;
+-    int (*old_error_handler)();
++    XErrorHandler old_error_handler;
+ 
+     if (f == 0)
+       return 0;
+--- a/hbf.c
++++ b/hbf.c
+@@ -62,6 +62,7 @@
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <string.h>
++#include <stdbool.h>
+ #include "hbf.h"
+ 
+ #ifdef __MSDOS__
+@@ -82,9 +83,8 @@
+ 
+ #define	reg	register
+ 
+-typedef	int	bool;
+-#define	TRUE	1
+-#define	FALSE	0
++#define	TRUE	true
++#define	FALSE	false
+ 
+ #define	Bit(n)	(1<<(7 - (n)))
+ 

diff --git a/x11-misc/gbdfed/gbdfed-1.6-r1.ebuild b/x11-misc/gbdfed/gbdfed-1.6-r1.ebuild
new file mode 100644
index 000000000000..2e915640b277
--- /dev/null
+++ b/x11-misc/gbdfed/gbdfed-1.6-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="gbdfed Bitmap Font Editor"
+HOMEPAGE="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/"
+SRC_URI="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/${P}.tar.bz2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	>=media-libs/freetype-2
+	>=x11-libs/gtk+-2.6:2
+	x11-libs/libX11
+	x11-libs/pango"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+	# bug 248562
+	"${FILESDIR}"/${P}-makefile.patch
+	"${FILESDIR}"/${P}-c23.patch
+)


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

end of thread, other threads:[~2025-04-12 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-12 20:59 [gentoo-commits] repo/gentoo:master commit in: x11-misc/gbdfed/files/, x11-misc/gbdfed/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2021-11-06 20:33 Jakov Smolić

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