DIST qrq-0.3.1.tar.gz 131508 BLAKE2B f33f970b7d94291740ad4a7f0136a4ecf98aa9e7ef927e776326792da3dee884e114ea265354c2f5e15048a4979cfc195b9f5b827b76a11a267b15e6f9f58cc6 SHA512 ce6e3b6f79575f11457f56e1044267dbefda20b13ba43fd79b2ad5821b4502a8a2badacbd891e154472d6f26334a0a8fcddf9521d905d8e7a72d8a687346e23d
DIST qrq-0.3.2.tar.gz 132546 BLAKE2B a19be5742deb719471c43e873c387995ab51a776d0f5b303f0f2fa15a87c697961cd5c93cc615a496f7377e0ab43ac8a2c12edbc7bc11ac44997b1b6788ad809 SHA512 1513428ee836610c7d755315a1cfc03dadacc33d78605fa9d0dd84786f4122f7ba7f928afa40a4fdc0bb9b19151fb8acdd1a7684a2ac6a76703379b9121e6ac5
+DIST qrq-0.3.3.tar.gz 159832 BLAKE2B 7af974175777f6166303ece0e0cfa0a035d49e0c265cd513b771a280dc7ac0772a979f45923a14737ff58a64147f8c97a3978ccd7e4cd81fe4a38f3156766057 SHA512 025f0a350600a9f3f24cb00afcaa0e99c0be881e40684cc7ccbb9927d883372336c0b668bae21f232ce52dd221eb4ed950d306a32bab34e65f9f3cba9f28a484
--- /dev/null
+# 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}/${PN}-0.3.2-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 $CONF DESTDIR="${D}/usr" install
+ dodoc AUTHORS ChangeLog README
+}