1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Yet another CW trainer for Linux/Unix"
9 HOMEPAGE="http://fkurz.net/ham/qrq.html"
10 SRC_URI="http://fkurz.net/ham/${PN}/${P}.tar.gz"
17 DEPEND="sys-libs/ncurses:=
18 pulseaudio? ( media-sound/pulseaudio )"
21 PATCHES=( "${FILESDIR}/${PN}-0.3.2-tinfo.patch" )
24 # avoid prestripping of 'qrq' binary
25 sed -i -e "s/install -s -m/install -m/" Makefile || die
26 sed -i -e "s/CC=gcc/CC=$(tc-getCC)/" Makefile || die
31 CONF="USE_PA=NO USE_OSS=YES"
32 if use pulseaudio; then
33 CONF="USE_PA=YES USE_OSS=NO"
39 emake $CONF DESTDIR="${D}/usr" install
40 dodoc AUTHORS ChangeLog README