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

app-cdr/cuegen/cuegen-1.2.0.ebuild
app-cdr/cuegen/files/cuegen-1.2.0-fix-build-system.patch [new file with mode: 0644]

index 7fbb0a2d704987d9fc1d48ad90d6e7563b01e160..2f72c41912580e0cc006c6d2e1aabd22f3adaa99 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2010 Gentoo Foundation
+# 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 flag-o-matic toolchain-funcs
 
 DESCRIPTION="CUEgen is a FLAC-compatible cuesheet generator for Linux"
 HOMEPAGE="http://www.cs.man.ac.uk/~slavinp/cuegen.html"
@@ -14,18 +14,14 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-DEPEND=""
-RDEPEND=""
+PATCHES=( "${FILESDIR}"/${PN}-1.2.0-fix-build-system.patch )
 
-src_prepare() {
-       sed -i -e 's:\(\${CFLAGS}\):\1 \${LDFLAGS}:g' Makefile
-}
-
-src_compile() {
-       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
+src_configure() {
+       append-cflags -W -Wall -Wstrict-prototypes -Wmissing-prototypes
+       tc-export CC
 }
 
 src_install() {
-       dobin cuegen || die "install failed"
-       dodoc README
+       dobin cuegen
+       einstalldocs
 }
diff --git a/app-cdr/cuegen/files/cuegen-1.2.0-fix-build-system.patch b/app-cdr/cuegen/files/cuegen-1.2.0-fix-build-system.patch
new file mode 100644 (file)
index 0000000..614ec59
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,9 +1 @@
+-TARGET := cuegen
+-CC     := gcc
+-CFLAGS := -O2 -pipe -fomit-frame-pointer
+-WARN   := -W -Wall -Wstrict-prototypes -Wmissing-prototypes
+-
+ all:  cuegen
+-
+-cuegen:       cuegen.o
+-      ${CC} ${WARN} ${CFLAGS} cuegen.c -o cuegen