commit: 0328963eb8ab2d88d41dc0089b999036042b4ed2 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Apr 4 09:29:03 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Apr 4 09:51:54 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0328963e
games-util/biounzip: port to EAPI 7, eutils-- Signed-off-by: Sam James <sam <AT> gentoo.org> games-util/biounzip/biounzip-1.1a.ebuild | 21 ++++++++++----------- games-util/biounzip/files/biounzip-1.1a-64bit.patch | 4 ++-- 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 8864926d803..fa6925259af 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 a8522189d31..860261641ed 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) {
