diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
commit | 4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch) | |
tree | 356496503d52354aa6d9f2d36126302fed5f3a73 /media-radio/qrq/qrq-0.3.5.ebuild | |
parent | fcc5224904648a8e6eb528d7603154160a20022f (diff) |
gentoo resync : 20.03.2022
Diffstat (limited to 'media-radio/qrq/qrq-0.3.5.ebuild')
-rw-r--r-- | media-radio/qrq/qrq-0.3.5.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/media-radio/qrq/qrq-0.3.5.ebuild b/media-radio/qrq/qrq-0.3.5.ebuild new file mode 100644 index 000000000000..5a47c640e5d0 --- /dev/null +++ b/media-radio/qrq/qrq-0.3.5.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 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}" +BDEPEND="virtual/pkgconfig" + +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 PKG_CONFIG="$(tc-getPKG_CONFIG)" ${CONF} +} + +src_install() { + emake ${CONF} DESTDIR="${D}/usr" install + dodoc AUTHORS ChangeLog README +} |