public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/dzip/files/, games-util/dzip/
Date: Sun,  4 Apr 2021 09:52:10 +0000 (UTC)	[thread overview]
Message-ID: <1617529916.d1c7647be1559b79a07a476621ff3cd932c5e39b.sam@gentoo> (raw)

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>
 +


             reply	other threads:[~2021-04-04  9:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-04  9:52 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-06-19 20:42 [gentoo-commits] repo/gentoo:master commit in: games-util/dzip/files/, games-util/dzip/ James Le Cuirot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1617529916.d1c7647be1559b79a07a476621ff3cd932c5e39b.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox