public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-util/dzip/files/, games-util/dzip/
@ 2021-04-04  9:52 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-04-04  9:52 UTC (permalink / raw
  To: gentoo-commits

commit:     d1c7647be1559b79a07a476621ff3cd932c5e39b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  4 09:35:25 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  4 09:51:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1c7647b

games-util/dzip: port to EAPI 7, eutils--

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

 games-util/dzip/dzip-2.9-r3.ebuild                 | 30 ++++++++++++++--------
 games-util/dzip/files/dzip-2.9-scrub-names.patch   |  8 +++---
 .../dzip/files/dzip-2.9-system-zlib-r2.patch       | 12 ++++-----
 games-util/dzip/files/dzip-amd64.diff              |  4 +--
 4 files changed, 31 insertions(+), 23 deletions(-)

diff --git a/games-util/dzip/dzip-2.9-r3.ebuild b/games-util/dzip/dzip-2.9-r3.ebuild
index c5b3149a68d..b91f030becb 100644
--- a/games-util/dzip/dzip-2.9-r3.ebuild
+++ b/games-util/dzip/dzip-2.9-r3.ebuild
@@ -1,27 +1,35 @@
-# 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
+EAPI=7
+
+inherit toolchain-funcs
 
 DESCRIPTION="compressor/uncompressor for demo recordings from id's Quake"
 HOMEPAGE="http://speeddemosarchive.com/dzip/"
 SRC_URI="http://speeddemosarchive.com/dzip/dz${PV/./}src.zip"
+S="${WORKDIR}"
 
 LICENSE="ZLIB"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
-DEPEND="app-arch/unzip"
-RDEPEND=""
 
-S="${WORKDIR}"
+BDEPEND="app-arch/unzip"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-system-zlib-r2.patch
+	"${FILESDIR}"/${P}-scrub-names.patch #93079
+	"${FILESDIR}"/dzip-amd64.diff
+)
 
 src_prepare() {
-	epatch "${FILESDIR}"/${P}-system-zlib-r2.patch
-	epatch "${FILESDIR}"/${P}-scrub-names.patch #93079
-	epatch "${FILESDIR}/dzip-amd64.diff"
-	mv -f Makefile{.linux,}
+	default
+
+	mv -f Makefile{.linux,} || die
+}
+
+src_configure() {
+	tc-export CC
 }
 
 src_install() {

diff --git a/games-util/dzip/files/dzip-2.9-scrub-names.patch b/games-util/dzip/files/dzip-2.9-scrub-names.patch
index 079fae3fd07..01fbc53ec26 100644
--- a/games-util/dzip/files/dzip-2.9-scrub-names.patch
+++ b/games-util/dzip/files/dzip-2.9-scrub-names.patch
@@ -9,8 +9,8 @@ we strip out all the components which ascend in the directory tree
 
 http://bugs.gentoo.org/93079
 
---- main.c
-+++ main.c
+--- a/main.c
++++ b/main.c
 @@ -77,6 +77,48 @@ int dzRead (int inlen)
  	return 1;
  }
@@ -68,8 +68,8 @@ http://bugs.gentoo.org/93079
  	if (de->pak && de->type != TYPE_PAK)
  		return 1;	/* dont mess with dirchar inside pakfiles */
  	do
---- v1code.c
-+++ v1code.c
+--- a/v1code.c
++++ b/v1code.c
 @@ -201,6 +201,7 @@ void demv1_dxentities(void)
  
  }

diff --git a/games-util/dzip/files/dzip-2.9-system-zlib-r2.patch b/games-util/dzip/files/dzip-2.9-system-zlib-r2.patch
index 4bf10f8b98f..668ef369dfe 100644
--- a/games-util/dzip/files/dzip-2.9-system-zlib-r2.patch
+++ b/games-util/dzip/files/dzip-2.9-system-zlib-r2.patch
@@ -1,5 +1,5 @@
---- dzip.h
-+++ dzip.h
+--- a/dzip.h
++++ b/dzip.h
 @@ -2,7 +2,7 @@
  #include <stdlib.h>
  #include <string.h>
@@ -16,8 +16,8 @@
 -#endif
 \ No newline at end of file
 +#endif
---- Makefile.linux
-+++ Makefile.linux
+--- a/Makefile.linux
++++ b/Makefile.linux
 @@ -1,18 +1,17 @@
  # Makefile for linux
  
@@ -50,8 +50,8 @@
 -v1code.o: v1code.c dzip.h dzipcon.h
 \ No newline at end of file
 +v1code.o: v1code.c dzip.h dzipcon.h
---- conmain.c.orig	2010-01-17 15:10:20.938605770 +0000
-+++ conmain.c	2010-01-17 15:10:34.180603846 +0000
+--- a/conmain.c
++++ b/conmain.c
 @@ -507,8 +507,8 @@
  		if (!strcmp(argv[i],"-o")) i++;
  	}

diff --git a/games-util/dzip/files/dzip-amd64.diff b/games-util/dzip/files/dzip-amd64.diff
index ef49ff33057..60d4a524b00 100644
--- a/games-util/dzip/files/dzip-amd64.diff
+++ b/games-util/dzip/files/dzip-amd64.diff
@@ -1,5 +1,5 @@
---- dzip/crc32.c	2002-07-12 06:07:54.000000000 +0200
-+++ dz/crc32.c	2010-01-20 23:23:43.000000000 +0100
+--- a/crc32.c
++++ b/crc32.c
 @@ -1,10 +1,12 @@
 +#include <stdint.h>
 +


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

* [gentoo-commits] repo/gentoo:master commit in: games-util/dzip/files/, games-util/dzip/
@ 2023-06-19 20:42 James Le Cuirot
  0 siblings, 0 replies; 2+ messages in thread
From: James Le Cuirot @ 2023-06-19 20:42 UTC (permalink / raw
  To: gentoo-commits

commit:     fb2611695e556262a52a3e1f64105844f225a925
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Mon Jun 19 18:22:25 2023 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Jun 19 20:42:02 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb261169

games-util/dzip: Fix incompatible function pointer types passing int

Closes: https://bugs.gentoo.org/884923
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31545
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-util/dzip/dzip-2.9-r5.ebuild                 | 41 ++++++++++++++++++++++
 games-util/dzip/files/dzip-clang16-build-fix.patch | 14 ++++++++
 2 files changed, 55 insertions(+)

diff --git a/games-util/dzip/dzip-2.9-r5.ebuild b/games-util/dzip/dzip-2.9-r5.ebuild
new file mode 100644
index 000000000000..ee9cb2270e33
--- /dev/null
+++ b/games-util/dzip/dzip-2.9-r5.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="compressor/uncompressor for demo recordings from id's Quake"
+HOMEPAGE="http://speeddemosarchive.com/dzip/"
+SRC_URI="http://speeddemosarchive.com/dzip/dz${PV/./}src.zip"
+S="${WORKDIR}"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}"
+BDEPEND="app-arch/unzip"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-system-zlib-r2.patch
+	"${FILESDIR}"/${P}-scrub-names.patch #93079
+	"${FILESDIR}"/dzip-amd64.diff
+	"${FILESDIR}"/${PN}-clang16-build-fix.patch
+)
+
+src_prepare() {
+	default
+
+	mv -f Makefile{.linux,} || die
+}
+
+src_configure() {
+	tc-export CC
+}
+
+src_install() {
+	dobin dzip
+	dodoc Readme
+}

diff --git a/games-util/dzip/files/dzip-clang16-build-fix.patch b/games-util/dzip/files/dzip-clang16-build-fix.patch
new file mode 100644
index 000000000000..d16c6beb182c
--- /dev/null
+++ b/games-util/dzip/files/dzip-clang16-build-fix.patch
@@ -0,0 +1,14 @@
+Bug: https://bugs.gentoo.org/884923
+--- a/delete.c
++++ b/delete.c
+@@ -1,8 +1,8 @@
+ #include "dzip.h"
+ 
+-int intcmp (const uInt *arg1, const uInt *arg2)
++int intcmp (const void *arg1, const void *arg2)
+ {
+-	if (*arg1 < *arg2) return -1;
++	if (*(uInt *)arg1 < *(uInt *)arg2) return -1;
+ 	return 1;
+ }
+ 


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

end of thread, other threads:[~2023-06-19 20:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-19 20:42 [gentoo-commits] repo/gentoo:master commit in: games-util/dzip/files/, games-util/dzip/ James Le Cuirot
  -- strict thread matches above, loose matches on Subject: below --
2021-04-04  9:52 Sam James

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