commit:     f00f7f3dc5dee4e7a6210f03db21f15ea8479938
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 20 18:48:54 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Mar 20 18:48:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f00f7f3d

media-sound/id3: update EAPI 6 -> 8

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-sound/id3/files/id3-0.15-makefile.patch      | 32 ++++++++++++++++++++++
 .../id3/{id3-0.15-r1.ebuild => id3-0.15-r2.ebuild} | 15 ++++------
 2 files changed, 37 insertions(+), 10 deletions(-)

diff --git a/media-sound/id3/files/id3-0.15-makefile.patch 
b/media-sound/id3/files/id3-0.15-makefile.patch
new file mode 100644
index 000000000000..265fa0970269
--- /dev/null
+++ b/media-sound/id3/files/id3-0.15-makefile.patch
@@ -0,0 +1,32 @@
+--- a/Makefile
++++ b/Makefile
+@@ -3,9 +3,6 @@
+ 
+ SHELL = /bin/sh
+ 
+-CC = gcc
+-CFLAGS = -g -O2
+-LDFLAGS = 
+ LIBS = 
+ DEFS =  
+ INSTALL = /usr/bin/install -c
+@@ -20,11 +17,6 @@
+ SRCS = id3.c
+ OBJS = $(SRCS:.c=.o)
+ 
+-.SUFFIXES: .c .o
+-
+-.c.o:
+-      $(CC) $(DEFS) $(CFLAGS) -c $<
+-
+ all: $(PRODUCT)
+ 
+ $(PRODUCT): $(OBJS)
+@@ -35,6 +27,6 @@
+ 
+ install: $(PRODUCT)
+       $(INSTALL) -d -m 755 $(bindir)
+-      $(INSTALL) -s -m 755 -o 0 $(PRODUCT) $(bindir)
++      $(INSTALL) -m 755 -o 0 $(PRODUCT) $(bindir)
+       $(INSTALL) -d -m 755 $(mandir)
+       $(INSTALL) -m 644 -o 0 $(PRODUCT).1 $(mandir)

diff --git a/media-sound/id3/id3-0.15-r1.ebuild 
b/media-sound/id3/id3-0.15-r2.ebuild
similarity index 61%
rename from media-sound/id3/id3-0.15-r1.ebuild
rename to media-sound/id3/id3-0.15-r2.ebuild
index 3cdb64eae22d..27233f54fba6 100644
--- a/media-sound/id3/id3-0.15-r1.ebuild
+++ b/media-sound/id3/id3-0.15-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 inherit toolchain-funcs
 
@@ -12,14 +12,9 @@ SRC_URI="http://lly.org/~rcw/id3/${PN}_${PV}.orig.tar.gz -> 
${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc ppc64 ~riscv sparc x86"
-IUSE=""
 
-src_prepare() {
-       default
-       sed -i -e "s:-s::" Makefile || die "sed failed"
-}
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
 
-src_compile() {
-       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
-               LDFLAGS="${LDFLAGS}"
+src_configure() {
+       tc-export CC
 }

Reply via email to