Package-Manager: Portage-2.3.19, Repoman-2.3.6
-# 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"
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: 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)