summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-09-04 20:21:13 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-09-07 14:12:15 +0200
commit71a91badf76c98bc221687a406ca25ab4a411b5e (patch)
treea2dfed5b79ca6c966d4366082e5f2b2268ef476c /media-sound
parentmedia-sound/tempest_for_eliza: EAPI7 revbump, improve ebuild (diff)
downloadgentoo-71a91badf76c98bc221687a406ca25ab4a411b5e.tar.gz
gentoo-71a91badf76c98bc221687a406ca25ab4a411b5e.tar.bz2
gentoo-71a91badf76c98bc221687a406ca25ab4a411b5e.zip
media-sound/wavsplit: EAPI7 revbump, improve ebuild
Closes: https://bugs.gentoo.org/665234 Closes: https://github.com/gentoo/gentoo/pull/9777
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/wavsplit/files/wavsplit-1.2.1-64bit.patch8
-rw-r--r--media-sound/wavsplit/files/wavsplit-1.2.1-Makefile.patch4
-rw-r--r--media-sound/wavsplit/files/wavsplit-1.2.1-large-files.patch12
-rw-r--r--media-sound/wavsplit/wavsplit-1.2.1-r2.ebuild38
4 files changed, 50 insertions, 12 deletions
diff --git a/media-sound/wavsplit/files/wavsplit-1.2.1-64bit.patch b/media-sound/wavsplit/files/wavsplit-1.2.1-64bit.patch
index abfaf424113b..fe6294eb3523 100644
--- a/media-sound/wavsplit/files/wavsplit-1.2.1-64bit.patch
+++ b/media-sound/wavsplit/files/wavsplit-1.2.1-64bit.patch
@@ -1,5 +1,5 @@
---- bak/wavsplit.c 2006-11-24 17:53:36.056883000 +0100
-+++ wavsplit.c 2006-11-24 17:52:38.345276250 +0100
+--- a/wavsplit.c 2006-11-24 17:53:36.056883000 +0100
++++ b/wavsplit.c 2006-11-24 17:52:38.345276250 +0100
@@ -403,7 +403,7 @@
ptr += 4; /* we move past fmt_ */
memcpy (&waveformat, ptr, sizeof (WAVEFORMAT));
@@ -27,8 +27,8 @@
printf ("Samplebits: %d\n", waveformat.wBitsPerSample);
printf ("Databytes: %llu\n\n", databytes);
printf ("Split Hours Mins Seconds Bytes %%\n");
---- bak/wavsplit.h 2006-11-24 17:53:36.056883000 +0100
-+++ wavsplit.h 2006-11-24 17:43:58.648797250 +0100
+--- a/wavsplit.h 2006-11-24 17:53:36.056883000 +0100
++++ b/wavsplit.h 2006-11-24 17:43:58.648797250 +0100
@@ -46,29 +46,29 @@
} TIMEFORMAT;
diff --git a/media-sound/wavsplit/files/wavsplit-1.2.1-Makefile.patch b/media-sound/wavsplit/files/wavsplit-1.2.1-Makefile.patch
index a4b35a64fefe..4cac4b657b70 100644
--- a/media-sound/wavsplit/files/wavsplit-1.2.1-Makefile.patch
+++ b/media-sound/wavsplit/files/wavsplit-1.2.1-Makefile.patch
@@ -1,5 +1,5 @@
---- Makefile.old 2006-03-30 08:54:03.000000000 +0200
-+++ Makefile 2006-03-30 08:55:04.000000000 +0200
+--- a/Makefile 2006-03-30 08:54:03.000000000 +0200
++++ b/Makefile 2006-03-30 08:55:04.000000000 +0200
@@ -6,16 +6,16 @@
version = 1.2.1
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
index ff27231be65e..cfc7e9d41b68 100644
--- a/media-sound/wavsplit/files/wavsplit-1.2.1-large-files.patch
+++ b/media-sound/wavsplit/files/wavsplit-1.2.1-large-files.patch
@@ -1,5 +1,5 @@
---- Makefile 2004-11-17 23:19:17.000000000 +0100
-+++ Makefile 2005-01-16 21:23:33.000000000 +0100
+--- a/Makefile 2004-11-17 23:19:17.000000000 +0100
++++ b/Makefile 2005-01-16 21:23:33.000000000 +0100
@@ -6,7 +6,7 @@
version = 1.2.1
@@ -9,8 +9,8 @@
LIBS = -lm
all: wavsplit wavren
---- wavsplit.c 2004-11-17 23:19:17.000000000 +0100
-+++ wavsplit.c 2005-01-16 22:04:39.000000000 +0100
+--- a/wavsplit.c 2004-11-17 23:19:17.000000000 +0100
++++ b/wavsplit.c 2005-01-16 22:04:39.000000000 +0100
@@ -269,9 +269,9 @@
timepos * split)
{
@@ -161,8 +161,8 @@
while (to_be_read) {
n_read = read (ifd, buf, to_be_read);
---- wavsplit.h 2004-11-17 23:19:17.000000000 +0100
-+++ wavsplit.h 2005-01-16 21:23:33.000000000 +0100
+--- a/wavsplit.h 2004-11-17 23:19:17.000000000 +0100
++++ b/wavsplit.h 2005-01-16 21:23:33.000000000 +0100
@@ -121,15 +121,15 @@
static int split (unsigned int UseHours, unsigned int UseFrames,
unsigned int fps, unsigned int UseTrackLens,
diff --git a/media-sound/wavsplit/wavsplit-1.2.1-r2.ebuild b/media-sound/wavsplit/wavsplit-1.2.1-r2.ebuild
new file mode 100644
index 000000000000..7e422e4d3fa0
--- /dev/null
+++ b/media-sound/wavsplit/wavsplit-1.2.1-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Simple command line tool to split WAV files"
+HOMEPAGE="https://sourceforge.net/projects/wavsplit/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+#-sparc, -amd64: 1.0: "Only supports PCM wave format" error message.
+KEYWORDS="~amd64 -sparc ~x86"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-Makefile.patch
+ "${FILESDIR}"/${P}-large-files.patch
+ "${FILESDIR}"/${P}-64bit.patch
+)
+
+src_prepare() {
+ default
+ emake clean
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_test() { :; } #294302
+
+src_install() {
+ dobin wav{ren,split}
+ doman wav{ren,split}.1
+ dodoc BUGS CHANGES CREDITS README{,.wavren}
+}