1 |
commit: 6bfe07120f7adb77e6ba5b96507ff685f3e0f18f |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 28 17:22:30 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 28 17:22:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bfe0712 |
7 |
|
8 |
media-sound/vb2rip: Port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
media-sound/vb2rip/files/vb2rip-1.4-makefile.patch | 21 +++++++++++++++++++++ |
14 |
media-sound/vb2rip/vb2rip-1.4.ebuild | 22 ++++++++++------------ |
15 |
2 files changed, 31 insertions(+), 12 deletions(-) |
16 |
|
17 |
diff --git a/media-sound/vb2rip/files/vb2rip-1.4-makefile.patch b/media-sound/vb2rip/files/vb2rip-1.4-makefile.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..0b584086f53 |
20 |
--- /dev/null |
21 |
+++ b/media-sound/vb2rip/files/vb2rip-1.4-makefile.patch |
22 |
@@ -0,0 +1,21 @@ |
23 |
+--- a/Makefile |
24 |
++++ b/Makefile |
25 |
+@@ -1,17 +1,4 @@ |
26 |
+-CC=gcc |
27 |
+-CFLAGS=-O9 -fomit-frame-pointer -Wall |
28 |
+-LD=gcc |
29 |
+-LFLAGS=-s |
30 |
+- |
31 |
+ OBJECTS=main.o decode.o wav.o lsb.o rip.o fmt.o fmt_raw.o fmt_vb2.o fmt_8.o fmt_msa.o fmt_xa2.o |
32 |
+ |
33 |
+-all: vb2rip |
34 |
+- |
35 |
+ vb2rip: $(OBJECTS) |
36 |
+- $(LD) $(LFLAGS) $(OBJECTS) -o $@ |
37 |
+- |
38 |
+-%.o: %.c |
39 |
+- $(CC) $(CFLAGS) -c $< |
40 |
+- |
41 |
+-clean: |
42 |
+- del *.o |
43 |
++ $(CC) $(LDFLAGS) $(OBJECTS) $(LOADLIBES) $(LDLIBS) -o vb2rip |
44 |
|
45 |
diff --git a/media-sound/vb2rip/vb2rip-1.4.ebuild b/media-sound/vb2rip/vb2rip-1.4.ebuild |
46 |
index 0ee16ac10e2..e9bacb5a23d 100644 |
47 |
--- a/media-sound/vb2rip/vb2rip-1.4.ebuild |
48 |
+++ b/media-sound/vb2rip/vb2rip-1.4.ebuild |
49 |
@@ -1,11 +1,11 @@ |
50 |
-# Copyright 1999-2018 Gentoo Foundation |
51 |
+# Copyright 1999-2019 Gentoo Authors |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
|
54 |
-EAPI=0 |
55 |
+EAPI=7 |
56 |
|
57 |
-inherit versionator toolchain-funcs |
58 |
+inherit toolchain-funcs |
59 |
|
60 |
-MY_PV=$(replace_version_separator '') |
61 |
+MY_PV=${PV//./} |
62 |
|
63 |
DESCRIPTION="Konami VB2 sound format ripping utility" |
64 |
HOMEPAGE="http://www.neillcorlett.com/vb2rip" |
65 |
@@ -14,20 +14,18 @@ SRC_URI="http://www.neillcorlett.com/vb2rip/${PN}${MY_PV}.zip" |
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~ppc ~x86" |
69 |
-IUSE="" |
70 |
|
71 |
-DEPEND="app-arch/unzip" |
72 |
+BDEPEND="app-arch/unzip" |
73 |
|
74 |
S=${WORKDIR}/src |
75 |
|
76 |
-src_compile() { |
77 |
+PATCHES=( "${FILESDIR}"/${PN}-1.4-makefile.patch ) |
78 |
+ |
79 |
+src_configure() { |
80 |
tc-export CC |
81 |
- echo "vb2rip: main.o decode.o wav.o lsb.o rip.o fmt.o fmt_raw.o fmt_vb2.o fmt_8.o fmt_msa.o fmt_xa2.o" > Makefile |
82 |
- echo ' $(CC) $(LDFLAGS) $^ -o $@' >> Makefile |
83 |
- emake || die |
84 |
} |
85 |
|
86 |
src_install() { |
87 |
- dobin vb2rip || die |
88 |
- dodoc "${WORKDIR}/games.txt" "${WORKDIR}/vb2rip.txt" |
89 |
+ dobin vb2rip |
90 |
+ dodoc "${WORKDIR}"/{games.txt,vb2rip.txt} |
91 |
} |