summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-radio/qrq')
-rw-r--r--media-radio/qrq/Manifest1
-rw-r--r--media-radio/qrq/qrq-0.3.2.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/media-radio/qrq/Manifest b/media-radio/qrq/Manifest
index 002f1b6bc4a8..ea249a83a8a5 100644
--- a/media-radio/qrq/Manifest
+++ b/media-radio/qrq/Manifest
@@ -1 +1,2 @@
DIST qrq-0.3.1.tar.gz 131508 BLAKE2B f33f970b7d94291740ad4a7f0136a4ecf98aa9e7ef927e776326792da3dee884e114ea265354c2f5e15048a4979cfc195b9f5b827b76a11a267b15e6f9f58cc6 SHA512 ce6e3b6f79575f11457f56e1044267dbefda20b13ba43fd79b2ad5821b4502a8a2badacbd891e154472d6f26334a0a8fcddf9521d905d8e7a72d8a687346e23d
+DIST qrq-0.3.2.tar.gz 132546 BLAKE2B a19be5742deb719471c43e873c387995ab51a776d0f5b303f0f2fa15a87c697961cd5c93cc615a496f7377e0ab43ac8a2c12edbc7bc11ac44997b1b6788ad809 SHA512 1513428ee836610c7d755315a1cfc03dadacc33d78605fa9d0dd84786f4122f7ba7f928afa40a4fdc0bb9b19151fb8acdd1a7684a2ac6a76703379b9121e6ac5
diff --git a/media-radio/qrq/qrq-0.3.2.ebuild b/media-radio/qrq/qrq-0.3.2.ebuild
new file mode 100644
index 000000000000..e73c542665e9
--- /dev/null
+++ b/media-radio/qrq/qrq-0.3.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+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}"
+
+PATCHES=( "${FILESDIR}/${P}-tinfo.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 $CONF
+}
+
+src_install() {
+ emake DESTDIR="${D}/usr" install
+ dodoc AUTHORS ChangeLog README
+}