Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/combine_wave/files/, media-sound/combine_wave/
Date: Fri, 29 Jul 2022 21:39:16
Message-Id: 1659130694.088ae1176787ef3d2c6bcd6f314b59b8766a7149.soap@gentoo
1 commit: 088ae1176787ef3d2c6bcd6f314b59b8766a7149
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 29 21:38:14 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 21:38:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=088ae117
7
8 media-sound/combine_wave: update EAPI 6 -> 8
9
10 Closes: https://bugs.gentoo.org/714654
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 ....3.1-r1.ebuild => combine_wave-0.3.1-r2.ebuild} | 22 +++++++++-------------
14 .../files/combine_wave-0.3.1-makefile.patch | 22 ++++++++++++++++++++++
15 .../combine_wave-0.3.1-missing-includes.patch | 14 ++++++++++++++
16 3 files changed, 45 insertions(+), 13 deletions(-)
17
18 diff --git a/media-sound/combine_wave/combine_wave-0.3.1-r1.ebuild b/media-sound/combine_wave/combine_wave-0.3.1-r2.ebuild
19 similarity index 58%
20 rename from media-sound/combine_wave/combine_wave-0.3.1-r1.ebuild
21 rename to media-sound/combine_wave/combine_wave-0.3.1-r2.ebuild
22 index 6974e43cf260..ff73a2b87cd2 100644
23 --- a/media-sound/combine_wave/combine_wave-0.3.1-r1.ebuild
24 +++ b/media-sound/combine_wave/combine_wave-0.3.1-r2.ebuild
25 @@ -1,7 +1,7 @@
26 -# Copyright 1999-2018 Gentoo Foundation
27 +# Copyright 1999-2022 Gentoo Authors
28 # Distributed under the terms of the GNU General Public License v2
29
30 -EAPI=6
31 +EAPI=8
32
33 inherit toolchain-funcs
34
35 @@ -12,18 +12,12 @@ SRC_URI="http://panteltje.com/panteltje/dvd/${P}.tgz"
36 LICENSE="GPL-2"
37 SLOT="0"
38 KEYWORDS="~amd64 ~x86"
39 -IUSE=""
40
41 -DOCS=( CHANGES README combine_wave.man )
42 -
43 -PATCHES=( "${FILESDIR}/${P}-overflow.patch" )
44 -
45 -src_prepare() {
46 - default
47 - # fix makefile
48 - sed -i -e "s:gcc:\$(CC):g" -e "s:= -O2:+=:g" \
49 - -e "s:\( -o \): \$(LDFLAGS)\1:g" Makefile || die "sed Makefile failed"
50 -}
51 +PATCHES=(
52 + "${FILESDIR}"/${P}-makefile.patch
53 + "${FILESDIR}"/${P}-overflow.patch
54 + "${FILESDIR}"/${P}-missing-includes.patch
55 +)
56
57 src_configure() {
58 tc-export CC
59 @@ -31,5 +25,7 @@ src_configure() {
60
61 src_install() {
62 dobin combine_wave
63 +
64 einstalldocs
65 + dodoc combine_wave.man
66 }
67
68 diff --git a/media-sound/combine_wave/files/combine_wave-0.3.1-makefile.patch b/media-sound/combine_wave/files/combine_wave-0.3.1-makefile.patch
69 new file mode 100644
70 index 000000000000..591d56ad1867
71 --- /dev/null
72 +++ b/media-sound/combine_wave/files/combine_wave-0.3.1-makefile.patch
73 @@ -0,0 +1,22 @@
74 +--- a/Makefile
75 ++++ b/Makefile
76 +@@ -3,16 +3,13 @@
77 + #CC = /usr/local/bin/g++
78 + #CC = /usr/bin/g++
79 +
80 +-CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
81 +-
82 +-.c.o:
83 +- gcc $(CFLAGS) -c $<
84 ++CFLAGS += -Wall
85 ++CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
86 +
87 + OBJECT =\
88 + combine_wave.o
89 +
90 +-a.out : $(OBJECT)
91 +- gcc -o combine_wave $(OBJECT)
92 ++all: combine_wave
93 +
94 + # DEPENDENCIES
95 + combine_wave.o : combine_wave.c combine_wave.h wave_header.h
96
97 diff --git a/media-sound/combine_wave/files/combine_wave-0.3.1-missing-includes.patch b/media-sound/combine_wave/files/combine_wave-0.3.1-missing-includes.patch
98 new file mode 100644
99 index 000000000000..3d6a3c938ba1
100 --- /dev/null
101 +++ b/media-sound/combine_wave/files/combine_wave-0.3.1-missing-includes.patch
102 @@ -0,0 +1,14 @@
103 +--- a/combine_wave.h
104 ++++ b/combine_wave.h
105 +@@ -12,9 +12,10 @@
106 + #include <float.h>
107 + #include <math.h>
108 + #include <linux/soundcard.h>
109 +-#include <sys/poll.h>
110 ++#include <poll.h>
111 + #include "stdint.h"
112 + #include <sys/ioctl.h>
113 ++#include <sys/select.h>
114 + #include <string.h>
115 +
116 +