* [gentoo-commits] repo/gentoo:master commit in: media-radio/qrq/files/, media-radio/qrq/
@ 2025-01-09 16:52 Thomas Beierlein
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Beierlein @ 2025-01-09 16:52 UTC (permalink / raw
To: gentoo-commits
commit: 4d81fabc9b02042bd82e850ef3b32ec5e1f078dc
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 9 16:47:02 2025 +0000
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Thu Jan 9 16:51:36 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d81fabc
media-radio/qrq: Fix function declaration, bump EAPI
Closes: https://bugs.gentoo.org/947561
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
.../qrq/files/qrq-0.3.5-fix-missing-parms.patch | 26 +++++++++++++
media-radio/qrq/qrq-0.3.5-r2.ebuild | 44 ++++++++++++++++++++++
2 files changed, 70 insertions(+)
diff --git a/media-radio/qrq/files/qrq-0.3.5-fix-missing-parms.patch b/media-radio/qrq/files/qrq-0.3.5-fix-missing-parms.patch
new file mode 100644
index 000000000000..415288dfeee2
--- /dev/null
+++ b/media-radio/qrq/files/qrq-0.3.5-fix-missing-parms.patch
@@ -0,0 +1,26 @@
+diff --git a/pulseaudio.c b/pulseaudio.c
+index 7a791a0..ee08dbb 100644
+--- a/pulseaudio.c
++++ b/pulseaudio.c
+@@ -33,7 +33,7 @@ short int *buf = 0;
+ int bufsize = 0;
+ int bufpos = 0;
+
+-void *open_dsp () {
++void *open_dsp (char *dummy) {
+ static int opened = 0;
+
+ /* with PA we only open the device once and then leave it
+diff --git a/pulseaudio.h b/pulseaudio.h
+index a915f88..fea4d0c 100644
+--- a/pulseaudio.h
++++ b/pulseaudio.h
+@@ -21,7 +21,7 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ #ifndef QRQ_PA
+ #define QRQ_PA
+
+-void *open_dsp ();
++void *open_dsp (char *dummy);
+ void write_audio (void *unused, int *in, int size);
+ void close_audio (void *s);
+
diff --git a/media-radio/qrq/qrq-0.3.5-r2.ebuild b/media-radio/qrq/qrq-0.3.5-r2.ebuild
new file mode 100644
index 000000000000..133c4e75a9eb
--- /dev/null
+++ b/media-radio/qrq/qrq-0.3.5-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Yet another CW trainer for Linux/Unix"
+HOMEPAGE="http://fkurz.net/ham/qrq.html"
+SRC_URI="http://fkurz.net/ham/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="pulseaudio"
+
+DEPEND="sys-libs/ncurses:=
+ pulseaudio? ( media-libs/libpulse )"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${PN}-0.3.2-tinfo.patch"
+ # bug #947561
+ "${FILESDIR}/${PN}-0.3.5-fix-missing-parms.patch" )
+
+src_prepare() {
+ # avoid prestripping of 'qrq' binary
+ sed -i -e "s/INSTALL} -s -m/INSTALL} -m/" Makefile || die
+ sed -i -e "s/CC=gcc/CC=$(tc-getCC)/" Makefile || die
+ default
+}
+
+src_compile() {
+ CONF="USE_PA=NO USE_OSS=YES"
+ if use pulseaudio; then
+ CONF="USE_PA=YES USE_OSS=NO"
+ fi
+ emake PKG_CONFIG="$(tc-getPKG_CONFIG)" ${CONF}
+}
+
+src_install() {
+ emake ${CONF} DESTDIR="${D}/usr" install
+ dodoc AUTHORS ChangeLog README
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-radio/qrq/files/, media-radio/qrq/
@ 2017-04-16 15:03 Thomas Beierlein
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Beierlein @ 2017-04-16 15:03 UTC (permalink / raw
To: gentoo-commits
commit: f51503a3a00c3d085e673b6d738159eac253cf60
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 16 15:02:52 2017 +0000
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Sun Apr 16 15:02:52 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f51503a3
media-radio/qrq: Move to EAPI 6. Fix tinfo problem. Thanks for report to S. Kricner.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
media-radio/qrq/files/qrq-0.3.1-tinfo.patch | 20 ++++++++++++++
media-radio/qrq/qrq-0.3.1-r1.ebuild | 41 +++++++++++++++++++++++++++++
2 files changed, 61 insertions(+)
diff --git a/media-radio/qrq/files/qrq-0.3.1-tinfo.patch b/media-radio/qrq/files/qrq-0.3.1-tinfo.patch
new file mode 100644
index 00000000000..83ae2b0e7bc
--- /dev/null
+++ b/media-radio/qrq/files/qrq-0.3.1-tinfo.patch
@@ -0,0 +1,20 @@
+--- a/Makefile 2017-04-03 18:45:09.028423872 +0200
++++ b/Makefile 2017-04-03 18:45:55.711048924 +0200
+@@ -47,7 +47,7 @@ ifeq ($(USE_CA), YES)
+ endif
+ else ifeq ($(USE_PA), YES)
+ CFLAGS:=$(CFLAGS) -D PA -pthread
+- LDFLAGS:=$(LDFLAGS) -lpulse-simple -lpulse -lncurses
++ LDFLAGS:=$(LDFLAGS) -lpulse-simple -lpulse $(shell pkg-config ncurses --libs)
+ OBJECTS=qrq.o pulseaudio.o
+ else ifeq ($(USE_WIN32), YES)
+ CFLAGS:=$(CFLAGS) -D PA
+@@ -55,7 +55,7 @@
+ OBJECTS=qrq.o qrq.res pdcurses.a libpthreadGC1.a
+ else
+ OBJECTS=qrq.o oss.o
+- LDFLAGS:=$(LDFLAGS) -lpthread -lncurses
++ LDFLAGS:=$(LDFLAGS) -lpthread $(shell pkg-config ncurses --libs)
+ CFLAGS:=$(CFLAGS) -D OSS
+ endif
+
diff --git a/media-radio/qrq/qrq-0.3.1-r1.ebuild b/media-radio/qrq/qrq-0.3.1-r1.ebuild
new file mode 100644
index 00000000000..9b363803062
--- /dev/null
+++ b/media-radio/qrq/qrq-0.3.1-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Yet another CW trainer for Linux/Unix"
+HOMEPAGE="http://fkurz.net/ham/qrq.html"
+SRC_URI="http://fkurz.net/ham/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="pulseaudio"
+
+DEPEND="sys-libs/ncurses:=
+ pulseaudio? ( media-sound/pulseaudio )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-tinfo.patch
+ # avoid prestripping of 'qrq' binary
+ sed -i -e "s/install -s -m/install -m/" Makefile || die
+ sed -i -e "s/CC=gcc/CC=$(tc-getCC)/" Makefile || die
+ sed -i -e "s/-lpulse-simple/-lpthread -lpulse-simple/" Makefile || die
+ default
+}
+
+src_compile() {
+ CONF="USE_PA=NO USE_OSS=YES"
+ if use pulseaudio; then
+ CONF="USE_PA=YES USE_OSS=NO"
+ fi
+ emake $CONF
+}
+
+src_install() {
+ emake $CONF DESTDIR="${D}/usr" install
+ dodoc AUTHORS ChangeLog README
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-09 16:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-09 16:52 [gentoo-commits] repo/gentoo:master commit in: media-radio/qrq/files/, media-radio/qrq/ Thomas Beierlein
-- strict thread matches above, loose matches on Subject: below --
2017-04-16 15:03 Thomas Beierlein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox