commit:     71a91badf76c98bc221687a406ca25ab4a411b5e
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Tue Sep  4 18:21:13 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Sep  7 12:12:15 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71a91bad

media-sound/wavsplit: EAPI7 revbump, improve ebuild

Closes: https://bugs.gentoo.org/665234
Closes: https://github.com/gentoo/gentoo/pull/9777

 .../wavsplit/files/wavsplit-1.2.1-64bit.patch      |  8 ++---
 .../wavsplit/files/wavsplit-1.2.1-Makefile.patch   |  4 +--
 .../files/wavsplit-1.2.1-large-files.patch         | 12 +++----
 media-sound/wavsplit/wavsplit-1.2.1-r2.ebuild      | 38 ++++++++++++++++++++++
 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 abfaf424113..fe6294eb352 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 a4b35a64fef..4cac4b657b7 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 ff27231be65..cfc7e9d41b6 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 00000000000..7e422e4d3fa
--- /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}
+}

Reply via email to