Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/wavsplit/, media-sound/wavsplit/files/
Date: Fri, 07 Sep 2018 12:13:29
Message-Id: 1536322335.71a91badf76c98bc221687a406ca25ab4a411b5e.asturm@gentoo
1 commit: 71a91badf76c98bc221687a406ca25ab4a411b5e
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Sep 4 18:21:13 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 7 12:12:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71a91bad
7
8 media-sound/wavsplit: EAPI7 revbump, improve ebuild
9
10 Closes: https://bugs.gentoo.org/665234
11 Closes: https://github.com/gentoo/gentoo/pull/9777
12
13 .../wavsplit/files/wavsplit-1.2.1-64bit.patch | 8 ++---
14 .../wavsplit/files/wavsplit-1.2.1-Makefile.patch | 4 +--
15 .../files/wavsplit-1.2.1-large-files.patch | 12 +++----
16 media-sound/wavsplit/wavsplit-1.2.1-r2.ebuild | 38 ++++++++++++++++++++++
17 4 files changed, 50 insertions(+), 12 deletions(-)
18
19 diff --git a/media-sound/wavsplit/files/wavsplit-1.2.1-64bit.patch b/media-sound/wavsplit/files/wavsplit-1.2.1-64bit.patch
20 index abfaf424113..fe6294eb352 100644
21 --- a/media-sound/wavsplit/files/wavsplit-1.2.1-64bit.patch
22 +++ b/media-sound/wavsplit/files/wavsplit-1.2.1-64bit.patch
23 @@ -1,5 +1,5 @@
24 ---- bak/wavsplit.c 2006-11-24 17:53:36.056883000 +0100
25 -+++ wavsplit.c 2006-11-24 17:52:38.345276250 +0100
26 +--- a/wavsplit.c 2006-11-24 17:53:36.056883000 +0100
27 ++++ b/wavsplit.c 2006-11-24 17:52:38.345276250 +0100
28 @@ -403,7 +403,7 @@
29 ptr += 4; /* we move past fmt_ */
30 memcpy (&waveformat, ptr, sizeof (WAVEFORMAT));
31 @@ -27,8 +27,8 @@
32 printf ("Samplebits: %d\n", waveformat.wBitsPerSample);
33 printf ("Databytes: %llu\n\n", databytes);
34 printf ("Split Hours Mins Seconds Bytes %%\n");
35 ---- bak/wavsplit.h 2006-11-24 17:53:36.056883000 +0100
36 -+++ wavsplit.h 2006-11-24 17:43:58.648797250 +0100
37 +--- a/wavsplit.h 2006-11-24 17:53:36.056883000 +0100
38 ++++ b/wavsplit.h 2006-11-24 17:43:58.648797250 +0100
39 @@ -46,29 +46,29 @@
40 } TIMEFORMAT;
41
42
43 diff --git a/media-sound/wavsplit/files/wavsplit-1.2.1-Makefile.patch b/media-sound/wavsplit/files/wavsplit-1.2.1-Makefile.patch
44 index a4b35a64fef..4cac4b657b7 100644
45 --- a/media-sound/wavsplit/files/wavsplit-1.2.1-Makefile.patch
46 +++ b/media-sound/wavsplit/files/wavsplit-1.2.1-Makefile.patch
47 @@ -1,5 +1,5 @@
48 ---- Makefile.old 2006-03-30 08:54:03.000000000 +0200
49 -+++ Makefile 2006-03-30 08:55:04.000000000 +0200
50 +--- a/Makefile 2006-03-30 08:54:03.000000000 +0200
51 ++++ b/Makefile 2006-03-30 08:55:04.000000000 +0200
52 @@ -6,16 +6,16 @@
53 version = 1.2.1
54
55
56 diff --git a/media-sound/wavsplit/files/wavsplit-1.2.1-large-files.patch b/media-sound/wavsplit/files/wavsplit-1.2.1-large-files.patch
57 index ff27231be65..cfc7e9d41b6 100644
58 --- a/media-sound/wavsplit/files/wavsplit-1.2.1-large-files.patch
59 +++ b/media-sound/wavsplit/files/wavsplit-1.2.1-large-files.patch
60 @@ -1,5 +1,5 @@
61 ---- Makefile 2004-11-17 23:19:17.000000000 +0100
62 -+++ Makefile 2005-01-16 21:23:33.000000000 +0100
63 +--- a/Makefile 2004-11-17 23:19:17.000000000 +0100
64 ++++ b/Makefile 2005-01-16 21:23:33.000000000 +0100
65 @@ -6,7 +6,7 @@
66 version = 1.2.1
67
68 @@ -9,8 +9,8 @@
69 LIBS = -lm
70
71 all: wavsplit wavren
72 ---- wavsplit.c 2004-11-17 23:19:17.000000000 +0100
73 -+++ wavsplit.c 2005-01-16 22:04:39.000000000 +0100
74 +--- a/wavsplit.c 2004-11-17 23:19:17.000000000 +0100
75 ++++ b/wavsplit.c 2005-01-16 22:04:39.000000000 +0100
76 @@ -269,9 +269,9 @@
77 timepos * split)
78 {
79 @@ -161,8 +161,8 @@
80
81 while (to_be_read) {
82 n_read = read (ifd, buf, to_be_read);
83 ---- wavsplit.h 2004-11-17 23:19:17.000000000 +0100
84 -+++ wavsplit.h 2005-01-16 21:23:33.000000000 +0100
85 +--- a/wavsplit.h 2004-11-17 23:19:17.000000000 +0100
86 ++++ b/wavsplit.h 2005-01-16 21:23:33.000000000 +0100
87 @@ -121,15 +121,15 @@
88 static int split (unsigned int UseHours, unsigned int UseFrames,
89 unsigned int fps, unsigned int UseTrackLens,
90
91 diff --git a/media-sound/wavsplit/wavsplit-1.2.1-r2.ebuild b/media-sound/wavsplit/wavsplit-1.2.1-r2.ebuild
92 new file mode 100644
93 index 00000000000..7e422e4d3fa
94 --- /dev/null
95 +++ b/media-sound/wavsplit/wavsplit-1.2.1-r2.ebuild
96 @@ -0,0 +1,38 @@
97 +# Copyright 1999-2018 Gentoo Foundation
98 +# Distributed under the terms of the GNU General Public License v2
99 +
100 +EAPI=7
101 +
102 +inherit toolchain-funcs
103 +
104 +DESCRIPTION="Simple command line tool to split WAV files"
105 +HOMEPAGE="https://sourceforge.net/projects/wavsplit/"
106 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
107 +
108 +LICENSE="GPL-2"
109 +SLOT="0"
110 +#-sparc, -amd64: 1.0: "Only supports PCM wave format" error message.
111 +KEYWORDS="~amd64 -sparc ~x86"
112 +
113 +PATCHES=(
114 + "${FILESDIR}"/${P}-Makefile.patch
115 + "${FILESDIR}"/${P}-large-files.patch
116 + "${FILESDIR}"/${P}-64bit.patch
117 +)
118 +
119 +src_prepare() {
120 + default
121 + emake clean
122 +}
123 +
124 +src_compile() {
125 + emake CC="$(tc-getCC)"
126 +}
127 +
128 +src_test() { :; } #294302
129 +
130 +src_install() {
131 + dobin wav{ren,split}
132 + doman wav{ren,split}.1
133 + dodoc BUGS CHANGES CREDITS README{,.wavren}
134 +}