commit:     e7b2e3e63860442bcffaadbbd1037995bba244ec
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 28 11:28:28 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Dec 28 12:03:07 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7b2e3e6

app-cdr/daa2iso: Port to EAPI 6

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-cdr/daa2iso/daa2iso-0.1.7e.ebuild                  | 16 +++++++++-------
 app-cdr/daa2iso/files/daa2iso-0.1.7e-buildsystem.patch | 17 ++++++-----------
 2 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/app-cdr/daa2iso/daa2iso-0.1.7e.ebuild 
b/app-cdr/daa2iso/daa2iso-0.1.7e.ebuild
index e924db28243..1f49851b008 100644
--- a/app-cdr/daa2iso/daa2iso-0.1.7e.ebuild
+++ b/app-cdr/daa2iso/daa2iso-0.1.7e.ebuild
@@ -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
 }

diff --git a/app-cdr/daa2iso/files/daa2iso-0.1.7e-buildsystem.patch 
b/app-cdr/daa2iso/files/daa2iso-0.1.7e-buildsystem.patch
index b084d7bb723..5163d8bfa5d 100644
--- a/app-cdr/daa2iso/files/daa2iso-0.1.7e-buildsystem.patch
+++ b/app-cdr/daa2iso/files/daa2iso-0.1.7e-buildsystem.patch
@@ -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)

Reply via email to