diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-05-18 00:10:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-05-18 00:10:51 +0100 |
commit | eccb70a7f91b2d22582587f26d1a28bb31408b45 (patch) | |
tree | 3223e1fd54201bcf4ebecac6fbe87361cbe643e2 /media-radio/qrq/qrq-0.3.3.ebuild | |
parent | a2810985afabcc31d3eace5e61d8ea25b852ba17 (diff) |
gentoo resync : 18.05.2019
Diffstat (limited to 'media-radio/qrq/qrq-0.3.3.ebuild')
-rw-r--r-- | media-radio/qrq/qrq-0.3.3.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/media-radio/qrq/qrq-0.3.3.ebuild b/media-radio/qrq/qrq-0.3.3.ebuild new file mode 100644 index 000000000000..f718c220fa2f --- /dev/null +++ b/media-radio/qrq/qrq-0.3.3.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}/${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 +} |