[gentoo-commits] repo/gentoo:master commit in: media-sound/rawrec/

2022-09-21 Thread Sam James
commit: c52cea9a43cead6954f950665cffaf9e82947a2a
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 22 03:21:48 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 22 04:05:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c52cea9a

media-sound/rawrec: drop unused flag-o-matic

Signed-off-by: Sam James  gentoo.org>

 media-sound/rawrec/rawrec-0.9.991.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-sound/rawrec/rawrec-0.9.991.ebuild 
b/media-sound/rawrec/rawrec-0.9.991.ebuild
index 940ba0cdbc25..9f32c4413301 100644
--- a/media-sound/rawrec/rawrec-0.9.991.ebuild
+++ b/media-sound/rawrec/rawrec-0.9.991.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit flag-o-matic toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="CLI program to play and record audiofiles"
 HOMEPAGE="http://rawrec.sourceforge.net;



[gentoo-commits] repo/gentoo:master commit in: media-sound/rawrec/

2022-03-09 Thread Sam James
commit: 1669b983007fffaf84a2b07b63d0c249e38a27d9
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar  9 23:15:55 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar  9 23:15:55 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1669b983

Revert "media-sound/*: fix UnusedInherits (flag-o-matic)"

This reverts commit 2486a38b78aa0912ec5b0ce77539712d0900e77c.

Signed-off-by: Sam James  gentoo.org>

 media-sound/rawrec/rawrec-0.9.991.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-sound/rawrec/rawrec-0.9.991.ebuild 
b/media-sound/rawrec/rawrec-0.9.991.ebuild
index e6b9fc25485c..940ba0cdbc25 100644
--- a/media-sound/rawrec/rawrec-0.9.991.ebuild
+++ b/media-sound/rawrec/rawrec-0.9.991.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: media-sound/rawrec/

2022-03-09 Thread Sam James
commit: 845c838b9f1ce873378a917a96d2721f9ca6a7e7
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar  9 23:14:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar  9 23:14:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=845c838b

media-sound/rawrec: fix UnusedInherits (flag-o-matic)

Signed-off-by: Sam James  gentoo.org>

 media-sound/rawrec/rawrec-0.9.991.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-sound/rawrec/rawrec-0.9.991.ebuild 
b/media-sound/rawrec/rawrec-0.9.991.ebuild
index 9f32c4413301..e6b9fc25485c 100644
--- a/media-sound/rawrec/rawrec-0.9.991.ebuild
+++ b/media-sound/rawrec/rawrec-0.9.991.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="CLI program to play and record audiofiles"
 HOMEPAGE="http://rawrec.sourceforge.net;



[gentoo-commits] repo/gentoo:master commit in: media-sound/rawrec/, media-sound/rawrec/files/

2019-10-17 Thread David Seifert
commit: ed1e95300e514a93a1d975907401eae9162f6c51
Author: David Seifert  gentoo  org>
AuthorDate: Thu Oct 17 10:11:14 2019 +
Commit: David Seifert  gentoo  org>
CommitDate: Thu Oct 17 10:11:14 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed1e9530

media-sound/rawrec: Port to EAPI 7

Bug: https://bugs.gentoo.org/697272
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert  gentoo.org>

 .../files/rawrec-0.9.991-fix-build-system.patch| 24 ++
 media-sound/rawrec/rawrec-0.9.991.ebuild   | 29 +++---
 2 files changed, 39 insertions(+), 14 deletions(-)

diff --git a/media-sound/rawrec/files/rawrec-0.9.991-fix-build-system.patch 
b/media-sound/rawrec/files/rawrec-0.9.991-fix-build-system.patch
new file mode 100644
index 000..bef125094f1
--- /dev/null
+++ b/media-sound/rawrec/files/rawrec-0.9.991-fix-build-system.patch
@@ -0,0 +1,24 @@
+--- a/Makefile
 b/Makefile
+@@ -6,19 +6,15 @@
+ HEADERS = $(wildcard *.h)
+ OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
+ 
+-CC = gcc
+ WARNFLAGS = -Wall -W -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
+-DEBUGFLAGS = -O0 -g
+-OPTFLAGS = -O2
+ 
+ # Uncomment this to try to use untested priority ceiling/inheritance
+ # code (if system supports it).
+ #FANCY_THREAD_DEFINES = -DUSE_FANCY_PRIORITY_CODE
+ 
+ # FIXME: USEBUFFLOCK appears to be historic, and should probably go some day.
+-CFLAGS = $(WARNFLAGS) $(OPTFLAGS) $(DEBUGFLAGS) -DUSEBUFFLOCK \
+- $(FANCY_THREAD_DEFINES) -D_REENTRANT -D_GNU_SOURCE \
+- -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
++CFLAGS += $(WARNFLAGS)
++CPPFLAGS += -DUSEBUFFLOCK -D_REENTRANT -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
+ LIBS = -lm -lpthread
+ 
+ # The GNU way is just too painful.  I'm not writing three tiers of

diff --git a/media-sound/rawrec/rawrec-0.9.991.ebuild 
b/media-sound/rawrec/rawrec-0.9.991.ebuild
index 24377e07228..3372ddccaf5 100644
--- a/media-sound/rawrec/rawrec-0.9.991.ebuild
+++ b/media-sound/rawrec/rawrec-0.9.991.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit flag-o-matic toolchain-funcs eutils
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="CLI program to play and record audiofiles"
 HOMEPAGE="http://rawrec.sourceforge.net;
@@ -12,23 +12,24 @@ SRC_URI="mirror://sourceforge/rawrec/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
-IUSE=""
 
-S="${S}"/src
+S="${WORKDIR}/${P}/src"
 
-src_unpack() {
-   unpack ${A}
-   cd "${S}"
-   epatch "${FILESDIR}/${PN}-libs.patch"
-}
+PATCHES=(
+   "${FILESDIR}"/${PN}-libs.patch
+   "${FILESDIR}"/${P}-fix-build-system.patch
+)
 
-src_compile() {
-   emake CC="$(tc-getCC)" OPTFLAGS="${CFLAGS}" || die "emake failed."
+src_configure() {
+   tc-export CC
 }
 
 src_install() {
-   emake EXE_DIR="${D}/usr/bin" \
-   MAN_DIR="${D}/usr/share/man/man1" install || die "emake install 
failed."
+   dobin rawrec
+   dosym rawrec /usr/bin/rawplay
+
+   doman ../docs/user/rawrec.1
+   dosym rawrec.1 /usr/share/man/man1/rawplay.1
 
einfo "Removing SUID from binary.."
fperms 755 /usr/bin/rawrec