public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-games/KXL/, dev-games/KXL/files/
@ 2021-04-06 18:18 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-04-06 18:18 UTC (permalink / raw
  To: gentoo-commits

commit:     d42e145f1d70f2f16f55d0c090f8aaf370f0a1dd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  6 01:55:36 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr  6 18:18:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d42e145f

dev-games/KXL: port to EAPI 7, eutils--, ltprune--, static-libs--

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{KXL-1.1.7-r2.ebuild => KXL-1.1.7-r3.ebuild}   | 29 ++++++++++++++--------
 dev-games/KXL/files/KXL-1.1.7-amd64.patch          | 16 ++++++------
 dev-games/KXL/files/KXL-1.1.7-as-needed.patch      |  4 +--
 dev-games/KXL/files/KXL-1.1.7-ldflags.patch        |  4 +--
 dev-games/KXL/files/KXL-1.1.7-m4.patch             |  4 +--
 5 files changed, 33 insertions(+), 24 deletions(-)

diff --git a/dev-games/KXL/KXL-1.1.7-r2.ebuild b/dev-games/KXL/KXL-1.1.7-r3.ebuild
similarity index 51%
rename from dev-games/KXL/KXL-1.1.7-r2.ebuild
rename to dev-games/KXL/KXL-1.1.7-r3.ebuild
index ab0d291a05c..7620b659e60 100644
--- a/dev-games/KXL/KXL-1.1.7-r2.ebuild
+++ b/dev-games/KXL/KXL-1.1.7-r3.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils autotools ltprune
+EAPI=7
+
+inherit autotools
 
 DESCRIPTION="Development Library for making games for X"
 HOMEPAGE="http://kxl.orz.hm/"
@@ -11,23 +12,31 @@ SRC_URI="http://kxl.hn.org/download/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 x86"
-IUSE="static-libs"
 
 DEPEND="x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-m4.patch
+	"${FILESDIR}"/${P}-amd64.patch
+	"${FILESDIR}"/${P}-as-needed.patch
+	"${FILESDIR}"/${P}-ldflags.patch
+)
 
 src_prepare() {
-	epatch "${FILESDIR}"/${P}-m4.patch \
-		"${FILESDIR}"/${P}-amd64.patch \
-		"${FILESDIR}"/${P}-as-needed.patch \
-		"${FILESDIR}"/${P}-ldflags.patch
+	default
+
+	mv configure.{in,ac} || die
+
 	eautoreconf
 }
 
 src_configure() {
-	econf $(use_enable static-libs static)
+	econf --disable-static
 }
 
 src_install() {
 	default
-	use static-libs || prune_libtool_files
+
+	find "${ED}" -name '*.la' -delete || die
 }

diff --git a/dev-games/KXL/files/KXL-1.1.7-amd64.patch b/dev-games/KXL/files/KXL-1.1.7-amd64.patch
index ec4b141d2a3..245e714abb0 100644
--- a/dev-games/KXL/files/KXL-1.1.7-amd64.patch
+++ b/dev-games/KXL/files/KXL-1.1.7-amd64.patch
@@ -1,5 +1,5 @@
---- src/KXLsound.c.old	2007-05-13 21:59:27.000000000 +0200
-+++ src/KXLsound.c	2007-05-13 22:09:19.000000000 +0200
+--- a/src/KXLsound.c
++++ b/src/KXLsound.c
 @@ -4,6 +4,9 @@
  #include <sys/ioctl.h>
  #include <sys/time.h>
@@ -42,8 +42,8 @@
    // create pipe
    if (pipe(KXL_SoundData.Pipe) < 0) {
      fprintf(stderr, "KXL error message\npipe error\n");
---- src/KXL.h.old	2007-05-13 22:25:11.000000000 +0200
-+++ src/KXL.h	2007-05-13 22:25:47.000000000 +0200
+--- a/src/KXL.h
++++ b/src/KXL.h
 @@ -205,6 +205,7 @@
    KXL_Frame   *Frame;    // Pointer of frame structure
    GC           FontGC;   // GC of font
@@ -52,16 +52,16 @@
  } KXL_Window;
  // RGBE palette
  typedef struct {
---- src/KXLimage.c.old	2007-05-13 22:29:02.000000000 +0200
-+++ src/KXLimage.c	2007-05-13 22:29:33.000000000 +0200
+--- a/src/KXLimage.c
++++ b/src/KXLimage.c
 @@ -1,4 +1,5 @@
  #include <stdio.h>
 +#include <stdlib.h>
  #include "KXL.h"
  
  extern KXL_Window *KXL_Root;
---- src/KXLvisual.c.old	2007-05-13 22:22:34.000000000 +0200
-+++ src/KXLvisual.c	2007-05-13 22:28:39.000000000 +0200
+--- a/src/KXLvisual.c
++++ b/src/KXLvisual.c
 @@ -1,4 +1,6 @@
  #include <stdio.h>
 +#include <stdlib.h>

diff --git a/dev-games/KXL/files/KXL-1.1.7-as-needed.patch b/dev-games/KXL/files/KXL-1.1.7-as-needed.patch
index d99564202ec..b4cb502a380 100644
--- a/dev-games/KXL/files/KXL-1.1.7-as-needed.patch
+++ b/dev-games/KXL/files/KXL-1.1.7-as-needed.patch
@@ -1,5 +1,5 @@
---- src/Makefile.am.old 2009-01-28 16:03:27.000000000 +0100
-+++ src/Makefile.am     2009-01-28 16:03:47.000000000 +0100
+--- a/src/Makefile.am
++++ b/src/Makefile.am
 @@ -2,3 +2,4 @@
  libKXL_la_SOURCES = KXLmisc.c KXLsound.c KXLjoystick.c KXLvisual.c KXLimage.c
  include_HEADERS = KXL.h

diff --git a/dev-games/KXL/files/KXL-1.1.7-ldflags.patch b/dev-games/KXL/files/KXL-1.1.7-ldflags.patch
index e628b5d2170..dd33debc718 100644
--- a/dev-games/KXL/files/KXL-1.1.7-ldflags.patch
+++ b/dev-games/KXL/files/KXL-1.1.7-ldflags.patch
@@ -1,5 +1,5 @@
---- KXL.m4.old	2010-09-23 14:20:45.000000000 +0200
-+++ KXL.m4	2010-09-23 14:21:08.000000000 +0200
+--- a/KXL.m4
++++ b/KXL.m4
 @@ -29,7 +29,6 @@
  
  dnl add the KXL library

diff --git a/dev-games/KXL/files/KXL-1.1.7-m4.patch b/dev-games/KXL/files/KXL-1.1.7-m4.patch
index f039974e6f9..40b2147a49d 100644
--- a/dev-games/KXL/files/KXL-1.1.7-m4.patch
+++ b/dev-games/KXL/files/KXL-1.1.7-m4.patch
@@ -1,7 +1,7 @@
 Get rid of aclocal warning:
 /usr/share/aclocal/KXL.m4:6: warning: underquoted definition of AM_PATH_KXL
---- KXL-1.1.7/KXL.m4
-+++ KXL-1.1.7/KXL.m4
+--- a/KXL.m4
++++ b/KXL.m4
 @@ -5,3 +5,3 @@
  dnl
 -AC_DEFUN(AM_PATH_KXL,


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-06 18:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-06 18:18 [gentoo-commits] repo/gentoo:master commit in: dev-games/KXL/, dev-games/KXL/files/ Sam James

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