summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-04 09:29:03 +0000
committerSam James <sam@gentoo.org>2021-04-04 09:51:54 +0000
commit0328963eb8ab2d88d41dc0089b999036042b4ed2 (patch)
tree22651854a1fa3b92aee3bf2b97dcc603f7b187e7 /games-util
parentgames-util/catcodec: port to EAPI 7, eutils-- (diff)
downloadgentoo-0328963eb8ab2d88d41dc0089b999036042b4ed2.tar.gz
gentoo-0328963eb8ab2d88d41dc0089b999036042b4ed2.tar.bz2
gentoo-0328963eb8ab2d88d41dc0089b999036042b4ed2.zip
games-util/biounzip: port to EAPI 7, eutils--
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-util')
-rw-r--r--games-util/biounzip/biounzip-1.1a.ebuild21
-rw-r--r--games-util/biounzip/files/biounzip-1.1a-64bit.patch4
2 files changed, 12 insertions, 13 deletions
diff --git a/games-util/biounzip/biounzip-1.1a.ebuild b/games-util/biounzip/biounzip-1.1a.ebuild
index 8864926d8034..fa6925259af0 100644
--- a/games-util/biounzip/biounzip-1.1a.ebuild
+++ b/games-util/biounzip/biounzip-1.1a.ebuild
@@ -1,29 +1,28 @@
-# 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 toolchain-funcs
+EAPI=7
+
+inherit toolchain-funcs
DESCRIPTION="Unpacks BioZip archives"
HOMEPAGE="http://biounzip.sourceforge.net/"
SRC_URI="mirror://sourceforge/biounzip/${P}.tar.bz2"
+S="${WORKDIR}"/${P/a/}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
DEPEND="sys-libs/zlib"
-RDEPEND=${DEPEND}
-
-S=${WORKDIR}/${P/a/}
+RDEPEND="${DEPEND}"
-src_prepare() {
- epatch "${FILESDIR}"/${P}-64bit.patch
-}
+PATCHES=(
+ "${FILESDIR}"/${P}-64bit.patch
+)
src_compile() {
- $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN} *.c -lz || die
+ $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${PN} *.c -lz || die
}
src_install() {
diff --git a/games-util/biounzip/files/biounzip-1.1a-64bit.patch b/games-util/biounzip/files/biounzip-1.1a-64bit.patch
index a8522189d31f..860261641ed4 100644
--- a/games-util/biounzip/files/biounzip-1.1a-64bit.patch
+++ b/games-util/biounzip/files/biounzip-1.1a-64bit.patch
@@ -1,5 +1,5 @@
---- biounzip-1.1-old/biounzip.c 2007-03-08 02:06:16.000000000 +0200
-+++ biounzip-1.1/biounzip.c 2007-03-08 02:06:50.000000000 +0200
+--- a/biounzip.c
++++ b/biounzip.c
@@ -127,7 +127,7 @@
void writefile(bzfile *ptr, FILE *fp, char *destdir)
{