summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-07-26 21:27:01 +0200
committerDavid Seifert <soap@gentoo.org>2022-07-26 21:27:01 +0200
commitdd5a87b45d6b8e829fdf3c1fbafd6bb50535058b (patch)
tree1faf65a3b1b04648a60087322e9d195c4e83c758 /app-cdr/cuegen
parentvirtual/rust: Stabilize 1.62.1 sparc, #861125 (diff)
downloadgentoo-dd5a87b45d6b8e829fdf3c1fbafd6bb50535058b.tar.gz
gentoo-dd5a87b45d6b8e829fdf3c1fbafd6bb50535058b.tar.bz2
gentoo-dd5a87b45d6b8e829fdf3c1fbafd6bb50535058b.zip
app-cdr/cuegen: update EAPI 6 -> 8
Closes: https://bugs.gentoo.org/714228 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-cdr/cuegen')
-rw-r--r--app-cdr/cuegen/cuegen-1.2.0-r1.ebuild (renamed from app-cdr/cuegen/cuegen-1.2.0.ebuild)13
-rw-r--r--app-cdr/cuegen/files/cuegen-1.2.0-fix-build-system.patch5
-rw-r--r--app-cdr/cuegen/files/cuegen-1.2.0-missing-includes.patch17
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
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>
+