mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-21 22:53:31 +02:00
44 lines
1,007 B
Bash
44 lines
1,007 B
Bash
# 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
|
|
}
|