summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2023-10-08 00:19:43 +0200
committerDavid Seifert <soap@gentoo.org>2023-10-08 00:19:43 +0200
commit2e8ad73e4d9ce3802709bfff5d7a05bd22d761e2 (patch)
treefacb61d405b89a135e92f78db1991fb596757a80 /x11-misc
parentx11-misc/e16menuedit2: update EAPI 6 -> 8 (diff)
downloadgentoo-2e8ad73e4d9ce3802709bfff5d7a05bd22d761e2.tar.gz
gentoo-2e8ad73e4d9ce3802709bfff5d7a05bd22d761e2.tar.bz2
gentoo-2e8ad73e4d9ce3802709bfff5d7a05bd22d761e2.zip
x11-misc/gbase: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/gbase/files/gbase-0.5-gtk.patch21
-rw-r--r--x11-misc/gbase/gbase-0.5-r2.ebuild (renamed from x11-misc/gbase/gbase-0.5-r1.ebuild)14
2 files changed, 15 insertions, 20 deletions
diff --git a/x11-misc/gbase/files/gbase-0.5-gtk.patch b/x11-misc/gbase/files/gbase-0.5-gtk.patch
index 4763839624af..55a1dfff9b95 100644
--- a/x11-misc/gbase/files/gbase-0.5-gtk.patch
+++ b/x11-misc/gbase/files/gbase-0.5-gtk.patch
@@ -1,25 +1,22 @@
--- a/Makefile
+++ b/Makefile
-@@ -1,15 +1,15 @@
+@@ -1,15 +1,7 @@
-CC = gcc
-CCFLAGS = `gtk-config --cflags`
-LDFLAGS = `gtk-config --libs`
-+CC ?= gcc
-+CFLAGS += `${PKG_CONFIG} --cflags gtk+-2.0`
-+LIBS = `${PKG_CONFIG} --libs gtk+-2.0`
++CPPFLAGS += `${PKG_CONFIG} --cflags gtk+-2.0`
++LDLIBS = `${PKG_CONFIG} --libs gtk+-2.0`
- gbase: gbase.o
+-gbase: gbase.o
- $(CC) gbase.o $(LDFLAGS) -o gbase
-+ $(CC) $(LDFLAGS) gbase.o $(LIBS) -o gbase
++all: gbase
clean:
rm -f gbase gbase.o gbase.c~
-
- # Make object files:
- %.o:
+-
+-# Make object files:
+-%.o:
- $(CC) $(CCFLAGS) -c $*.c
-+ $(CC) $(CFLAGS) -c $*.c
-
+-
-gbase.o: gbase.c
\ No newline at end of file
-+gbase.o: gbase.c
diff --git a/x11-misc/gbase/gbase-0.5-r1.ebuild b/x11-misc/gbase/gbase-0.5-r2.ebuild
index e40430eebba8..c24962442fd6 100644
--- a/x11-misc/gbase/gbase-0.5-r1.ebuild
+++ b/x11-misc/gbase/gbase-0.5-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
inherit toolchain-funcs
@@ -12,21 +12,19 @@ SRC_URI="http://www.fluxcode.net/files/${P}.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="amd64 x86"
-
RESTRICT="test" #424671
RDEPEND="x11-libs/gtk+:2"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
PATCHES=( "${FILESDIR}"/${P}-gtk.patch )
-src_compile() {
+src_configure() {
tc-export CC PKG_CONFIG
- default
}
src_install() {
- dobin ${PN}
+ dobin gbase
einstalldocs
}