app-cdr/daa2iso: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Thu, 28 Dec 2017 11:28:28 +0000 (12:28 +0100)
committerDavid Seifert <soap@gentoo.org>
Thu, 28 Dec 2017 12:03:07 +0000 (13:03 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-cdr/daa2iso/daa2iso-0.1.7e.ebuild
app-cdr/daa2iso/files/daa2iso-0.1.7e-buildsystem.patch

index e924db28243b5d2be397f82fd7a20e0eedce36f8..1f49851b00898dc616d94a4963cc371c97a35d8f 100644 (file)
@@ -1,8 +1,9 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="2"
-inherit base toolchain-funcs
+EAPI=6
+
+inherit toolchain-funcs
 
 DESCRIPTION="Program for converting the DAA and GBI files to ISO"
 HOMEPAGE="http://aluigi.org/mytoolz.htm"
@@ -16,13 +17,14 @@ IUSE=""
 DEPEND="app-arch/unzip"
 RDEPEND=""
 
-S="${WORKDIR}/src"
+S=${WORKDIR}/src
 PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch )
 
-src_compile() {
-       emake CC="$(tc-getCC)" || die "emake failed"
+src_configure() {
+       tc-export CC
 }
 
 src_install() {
-       emake PREFIX="${D}"/usr install || die "emake install failed"
+       emake PREFIX="${ED%/}"/usr install
+       einstalldocs
 }
index b084d7bb7236ab2775648e63d6b7e5c2ae3f7ced..5163d8bfa5d4c040a9023cd4bbbebc852a758390 100644 (file)
@@ -1,22 +1,17 @@
-Index: work/src/Makefile
-===================================================================
---- work.orig/src/Makefile
-+++ work/src/Makefile
-@@ -1,13 +1,12 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,13 +1,9 @@
  EXE           = daa2iso
 -CFLAGS        += -O2 -s
--PREFIX        = /usr/local
-+PREFIX        = /usr/
+ PREFIX        = /usr/local
  BINDIR        = $(PREFIX)/bin
  SRC           = $(EXE).c
  
- all:
+-all:
 -      $(CC) $(CFLAGS) -c LzmaDec.c
 -      $(CC) $(CFLAGS) -c tinflate.c
 -      $(CC) $(SRC) $(CFLAGS) -o $(EXE) LzmaDec.o tinflate.o
-+      $(CC) $(CFLAGS) $(LDFLAGS) -c LzmaDec.c
-+      $(CC) $(CFLAGS) $(LDFLAGS) -c tinflate.c
-+      $(CC) $(SRC) $(CFLAGS) $(LDFLAGS) -o $(EXE) LzmaDec.o tinflate.o
++$(EXE): LzmaDec.o tinflate.o
  
  install:
        install -m 755 -d $(BINDIR)