summaryrefslogtreecommitdiff
path: root/media-radio/qrq
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /media-radio/qrq
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'media-radio/qrq')
-rw-r--r--media-radio/qrq/Manifest1
-rw-r--r--media-radio/qrq/files/qrq-0.3.2-tinfo.patch20
-rw-r--r--media-radio/qrq/metadata.xml9
-rw-r--r--media-radio/qrq/qrq-0.3.3.ebuild41
4 files changed, 71 insertions, 0 deletions
diff --git a/media-radio/qrq/Manifest b/media-radio/qrq/Manifest
new file mode 100644
index 000000000000..a15abfa10112
--- /dev/null
+++ b/media-radio/qrq/Manifest
@@ -0,0 +1 @@
+DIST qrq-0.3.3.tar.gz 159832 BLAKE2B 7af974175777f6166303ece0e0cfa0a035d49e0c265cd513b771a280dc7ac0772a979f45923a14737ff58a64147f8c97a3978ccd7e4cd81fe4a38f3156766057 SHA512 025f0a350600a9f3f24cb00afcaa0e99c0be881e40684cc7ccbb9927d883372336c0b668bae21f232ce52dd221eb4ed950d306a32bab34e65f9f3cba9f28a484
diff --git a/media-radio/qrq/files/qrq-0.3.2-tinfo.patch b/media-radio/qrq/files/qrq-0.3.2-tinfo.patch
new file mode 100644
index 000000000000..6a0f38d18fab
--- /dev/null
+++ b/media-radio/qrq/files/qrq-0.3.2-tinfo.patch
@@ -0,0 +1,20 @@
+--- a/Makefile 2019-04-19 16:16:08.354994946 +0200
++++ b/Makefile 2019-04-19 16:18:30.711734410 +0200
+@@ -56,7 +56,7 @@
+ endif
+ else ifeq ($(USE_PA), YES)
+ CFLAGS:=$(CFLAGS) -D PA -pthread
+- LDFLAGS:=$(LDFLAGS) -lpthread -lpulse-simple -lpulse -lncurses
++ LDFLAGS:=$(LDFLAGS) -lpthread -lpulse-simple -lpulse $(shell pkg-config ncurses --libs)
+ OBJECTS=qrq.o pulseaudio.o
+ else ifeq ($(USE_WIN32), YES)
+ CFLAGS:=$(CFLAGS) -D WIN32 -Iinclude -Iinclude/ncursesw
+@@ -64,7 +64,7 @@
+ OBJECTS=qrq.o qrq.res lib/libncursesw.a
+ else
+ OBJECTS=qrq.o oss.o
+- LDFLAGS:=$(LDFLAGS) -lpthread -lncurses
++ LDFLAGS:=$(LDFLAGS) -lpthread $(shell pkg-config ncurses --libs)
+ CFLAGS:=$(CFLAGS) -D OSS
+ endif
+
diff --git a/media-radio/qrq/metadata.xml b/media-radio/qrq/metadata.xml
new file mode 100644
index 000000000000..96fbc8ba3fed
--- /dev/null
+++ b/media-radio/qrq/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tomjbe@gentoo.org</email>
+ <name>Thomas Beierlein</name>
+ </maintainer>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>
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..18cee98d5be7
--- /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
+}