commit:     61e6e0542dcbb9eab9c80f90f48d60ff467a166a
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 29 11:20:46 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Dec 29 13:15:53 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61e6e054

app-arch/funzix: Port to EAPI 6

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-arch/funzix/files/funzix-1.0-fix-build-system.patch |  8 ++++++++
 app-arch/funzix/funzix-1.0.ebuild                       | 14 +++++++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/app-arch/funzix/files/funzix-1.0-fix-build-system.patch 
b/app-arch/funzix/files/funzix-1.0-fix-build-system.patch
new file mode 100644
index 00000000000..1fd5482d4dc
--- /dev/null
+++ b/app-arch/funzix/files/funzix-1.0-fix-build-system.patch
@@ -0,0 +1,8 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,4 +1,4 @@
+-CFLAGS += -Wall -g
++CFLAGS += -Wall
+ LDLIBS += -lz
+ 
+ all: funzix

diff --git a/app-arch/funzix/funzix-1.0.ebuild 
b/app-arch/funzix/funzix-1.0.ebuild
index 9d479a6c8ef..8f62fd7801f 100644
--- a/app-arch/funzix/funzix-1.0.ebuild
+++ b/app-arch/funzix/funzix-1.0.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
+EAPI=6
+
 inherit toolchain-funcs
 
 DESCRIPTION="unpacker for the bogus ZIX format"
@@ -12,11 +14,13 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE=""
 
-src_compile() {
-       emake CC="$(tc-getCC)" || die "emake failed"
+PATCHES=( "${FILESDIR}"/${PN}-1.0-fix-build-system.patch )
+
+src_configure() {
+       tc-export CC
 }
 
 src_install() {
-       dobin funzix || die
-       dodoc README
+       dobin funzix
+       einstalldocs
 }

Reply via email to