commit:     dd5a87b45d6b8e829fdf3c1fbafd6bb50535058b
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 26 19:27:01 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Jul 26 19:27:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd5a87b4

app-cdr/cuegen: update EAPI 6 -> 8

Closes: https://bugs.gentoo.org/714228
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../{cuegen-1.2.0.ebuild => cuegen-1.2.0-r1.ebuild}     | 13 +++++++------
 .../cuegen/files/cuegen-1.2.0-fix-build-system.patch    |  5 +++--
 .../cuegen/files/cuegen-1.2.0-missing-includes.patch    | 17 +++++++++++++++++
 3 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/app-cdr/cuegen/cuegen-1.2.0.ebuild 
b/app-cdr/cuegen/cuegen-1.2.0-r1.ebuild
similarity index 64%
rename from app-cdr/cuegen/cuegen-1.2.0.ebuild
rename to app-cdr/cuegen/cuegen-1.2.0-r1.ebuild
index 2f72c4191258..85cb4049484a 100644
--- a/app-cdr/cuegen/cuegen-1.2.0.ebuild
+++ b/app-cdr/cuegen/cuegen-1.2.0-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
-inherit flag-o-matic toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="CUEgen is a FLAC-compatible cuesheet generator for Linux"
 HOMEPAGE="http://www.cs.man.ac.uk/~slavinp/cuegen.html";
@@ -12,12 +12,13 @@ SRC_URI="http://www.cs.man.ac.uk/~slavinp/files/${P}.tar.gz";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
-PATCHES=( "${FILESDIR}"/${PN}-1.2.0-fix-build-system.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.2.0-fix-build-system.patch
+       "${FILESDIR}"/${PN}-1.2.0-missing-includes.patch
+)
 
 src_configure() {
-       append-cflags -W -Wall -Wstrict-prototypes -Wmissing-prototypes
        tc-export CC
 }
 

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
index 614ec59f905d..fa54235d0e4f 100644
--- 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
@@ -1,11 +1,12 @@
 --- a/Makefile
 +++ b/Makefile
-@@ -1,9 +1 @@
+@@ -1,9 +1,3 @@
 -TARGET := cuegen
 -CC     := gcc
 -CFLAGS := -O2 -pipe -fomit-frame-pointer
 -WARN   := -W -Wall -Wstrict-prototypes -Wmissing-prototypes
--
++CFLAGS += -W -Wall -Wstrict-prototypes -Wmissing-prototypes
+ 
  all:  cuegen
 -
 -cuegen:       cuegen.o

diff --git a/app-cdr/cuegen/files/cuegen-1.2.0-missing-includes.patch 
b/app-cdr/cuegen/files/cuegen-1.2.0-missing-includes.patch
new file mode 100644
index 000000000000..98a273cddb13
--- /dev/null
+++ b/app-cdr/cuegen/files/cuegen-1.2.0-missing-includes.patch
@@ -0,0 +1,17 @@
+--- a/cuegen.c
++++ b/cuegen.c
+@@ -10,12 +10,14 @@
+  */
+ 
+ 
++#include <fcntl.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <linux/cdrom.h>
+ #include <sys/ioctl.h>
+ #include <sys/file.h>
+ #include <sys/types.h>
++#include <sys/stat.h>
+ #include <unistd.h>
+ #include <string.h>
+ 

Reply via email to