app-arch/arc: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Fri, 29 Dec 2017 12:22:56 +0000 (13:22 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 29 Dec 2017 13:16:15 +0000 (14:16 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-arch/arc/arc-5.21p.ebuild
app-arch/arc/files/arc-5.21m-gentoo-fbsd.patch

index 5cc46fabebae0f5a7f1ed2eaf8aa47b6f269887d..21daa1b1560175d701f9fd737542a295f66e6ce3 100644 (file)
@@ -1,9 +1,9 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="2"
+EAPI=6
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="Create & extract files from DOS .ARC files"
 HOMEPAGE="http://arc.sourceforge.net"
@@ -14,17 +14,22 @@ SLOT="0"
 KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
 IUSE=""
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-5.21m-darwin.patch
+       "${FILESDIR}"/${PN}-5.21m-gentoo-fbsd.patch
+       "${FILESDIR}"/${PN}-5.21o-interix.patch
+)
+
 src_prepare() {
-       epatch "${FILESDIR}"/${P/p/m}-darwin.patch \
-               "${FILESDIR}"/${P/p/m}-gentoo-fbsd.patch \
-               "${FILESDIR}"/${P/p/o}-interix.patch
+       default
+
        sed -i Makefile \
                -e 's/CFLAGS = $(OPT) $(SYSTEM)/CFLAGS += $(SYSTEM)/' \
                || die "sed Makefile"
 }
 
 src_compile() {
-       emake CC="$(tc-getCC)" OPT="${LDFLAGS}" || die "emake failed."
+       emake CC="$(tc-getCC)" OPT="${LDFLAGS}"
 }
 
 src_install() {
index 552bfd14edd7d6cbf52a46f55aed789a1e08bd67..f2762f74b9d27e37d0bb133bfabddf533b8d456e 100644 (file)
@@ -1,5 +1,5 @@
---- tmclock.c  2005-09-21 18:39:57 +0200
-+++ tmclock.c.new      2007-06-16 15:58:26 +0200
+--- a/tmclock.c
++++ b/tmclock.c
 @@ -18,8 +18,10 @@
  #include <sys/time.h>
  #else