summaryrefslogtreecommitdiff
path: root/media-radio/qrq
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-radio/qrq
reinit the tree, so we can have metadata
Diffstat (limited to 'media-radio/qrq')
-rw-r--r--media-radio/qrq/Manifest7
-rw-r--r--media-radio/qrq/files/qrq-0.3.1-tinfo.patch20
-rw-r--r--media-radio/qrq/metadata.xml8
-rw-r--r--media-radio/qrq/qrq-0.3.1-r1.ebuild41
-rw-r--r--media-radio/qrq/qrq-0.3.1.ebuild39
5 files changed, 115 insertions, 0 deletions
diff --git a/media-radio/qrq/Manifest b/media-radio/qrq/Manifest
new file mode 100644
index 000000000000..0fe95ec42f3e
--- /dev/null
+++ b/media-radio/qrq/Manifest
@@ -0,0 +1,7 @@
+AUX qrq-0.3.1-tinfo.patch 689 SHA256 67a9afd6fd0b646de643c57db335affcf8bbcb17bf4b1567588514e4a60b4acc SHA512 cb2bfa48ae5c6c4874e5ea4e54eed53b30ffb4f1c6d73c9fd9e3cac8a97b40861907261c8a06601b71c41c60e96bba0aa845ba8d3128d424a3bba0e016a52ebb WHIRLPOOL 3edc32b37ffaae494dcc2fe2ee27cc8778acc66e8c00bf28f60cb19c775e6eaab6f4daec7c3fe30ddfe05d74080ac7b068823b7f8e1c0ef5424bb27fbb5f87ba
+DIST qrq-0.3.1.tar.gz 131508 SHA256 92988a33b7eddb3941cf91a285a57f4f0872722adf003350a8afe2caf83159a1 SHA512 ce6e3b6f79575f11457f56e1044267dbefda20b13ba43fd79b2ad5821b4502a8a2badacbd891e154472d6f26334a0a8fcddf9521d905d8e7a72d8a687346e23d WHIRLPOOL 8cdad3bebaf1754b499df1372acab50bbe24683f23ffeb337ca0a6d7379fea970f8ee5a8935b485f55f92b048459f284110fea0994c6327e659152a9a6129755
+EBUILD qrq-0.3.1-r1.ebuild 940 SHA256 4b1b2ee2e165cce6eb07ea79ccdbcf765f1a81fb3bce9d5f5e5a97fd36cd2637 SHA512 d6aac6e98701cd5f95e0b166abfc46f614262a2a598fa40b645131a1208ec308327af3a5775503f66aa075cec3adb7ae68ebd7abacfd3dd9bde354dc8a2955ed WHIRLPOOL dcd5a8432a1763f7f25d7685ebe6fb3deb9986e9226805db172a7ca9889cb7fd429fa2f28ce35a0ae70d117f535506b775ecd9b9390dbcf9ac315c9f81fee3d4
+EBUILD qrq-0.3.1.ebuild 892 SHA256 b6819fe1f3d36a1f31cedd4c039fee0f42b90eef2bba1fcfa779d5517f5a8146 SHA512 456a817c926fb0db8c11f7a20c92cdddbf3b4f923473bd598a0a4f26d666ae9afd1b33cc0766ee1f3f584e3896f0ed7815b60fafebe7a604bed25b5856acdf87 WHIRLPOOL 85727bc2ec7ba3c569bf0276997712bcbe50bd751d1403e20af889eca902477ad1bb930b7b049797f871b0f8559bce3ec4a59c781a18c905423b38318e30872e
+MISC ChangeLog 2310 SHA256 9e97c079ef9611258ec7616c9e2f8f6412d063cf94df755a901a9231a5ca9fea SHA512 82a63d9ac08c0b66337a50766f69e1fdbbda8cdeee5dd945e35548f4430464ab72f2eb8b6039f40a4a0f74a45a872ea0ea8d7f6c5827ea8d02e286a89848c220 WHIRLPOOL 461db3d3691c9946000a7ebf2436f43ec12f42934f7ab275515fb831c7c55144b2b761d39c2b54f28aeac1b64e60e16c169f502be7dfb5608f82f4ef9b70d131
+MISC ChangeLog-2015 1954 SHA256 04860a4fd32fe3ad1615ff9c9d5dcebda5321dbd37877c868ea28d6c3228ff45 SHA512 ea015c47827a4374113d5f2822103d5cddf1a292b1bf3d99938177f300d6fa9f7e795497cf1b5bd5ae0174fe494d28498307c5821467e900fa35986bd8a79b4a WHIRLPOOL 53c158db01bd03c335e361983ba9e13d7bd4f6fd1dd582fd516b749ed85a0273c1b935d495a4283649aa0f33cf83125bef77fc0420b7af490692e3ceb5aaf572
+MISC metadata.xml 255 SHA256 707873307fd820b656feb83b7064bfe7bd211f140e17ce5ada633423c9991f44 SHA512 de8b7215b0e95c523e18bbb6a7048b395d5219a9c68458c47cc5944fc3dea6bc3a3a1569ce0815a1bdc2bfdf4d8a570a083acb927dc467f0da56ce9988b53c3a WHIRLPOOL 9ae9cfa9a3ccc1812d335357fe6489431d12437882ff8eabe29315e13659a1e8303f7d4616fca570cef4ca095f99c42cee1d2be59cbf776b8cfc3bcbc5846098
diff --git a/media-radio/qrq/files/qrq-0.3.1-tinfo.patch b/media-radio/qrq/files/qrq-0.3.1-tinfo.patch
new file mode 100644
index 000000000000..83ae2b0e7bca
--- /dev/null
+++ b/media-radio/qrq/files/qrq-0.3.1-tinfo.patch
@@ -0,0 +1,20 @@
+--- a/Makefile 2017-04-03 18:45:09.028423872 +0200
++++ b/Makefile 2017-04-03 18:45:55.711048924 +0200
+@@ -47,7 +47,7 @@ ifeq ($(USE_CA), YES)
+ endif
+ else ifeq ($(USE_PA), YES)
+ CFLAGS:=$(CFLAGS) -D PA -pthread
+- LDFLAGS:=$(LDFLAGS) -lpulse-simple -lpulse -lncurses
++ LDFLAGS:=$(LDFLAGS) -lpulse-simple -lpulse $(shell pkg-config ncurses --libs)
+ OBJECTS=qrq.o pulseaudio.o
+ else ifeq ($(USE_WIN32), YES)
+ CFLAGS:=$(CFLAGS) -D PA
+@@ -55,7 +55,7 @@
+ OBJECTS=qrq.o qrq.res pdcurses.a libpthreadGC1.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..e91b5e271e2a
--- /dev/null
+++ b/media-radio/qrq/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/media-radio/qrq/qrq-0.3.1-r1.ebuild b/media-radio/qrq/qrq-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..cf605dee2b54
--- /dev/null
+++ b/media-radio/qrq/qrq-0.3.1-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+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}"
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-tinfo.patch
+ # 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
+ sed -i -e "s/-lpulse-simple/-lpthread -lpulse-simple/" 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
+}
diff --git a/media-radio/qrq/qrq-0.3.1.ebuild b/media-radio/qrq/qrq-0.3.1.ebuild
new file mode 100644
index 000000000000..cda5a8f5a9cf
--- /dev/null
+++ b/media-radio/qrq/qrq-0.3.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+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}"
+
+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
+ sed -i -e "s/-lpulse-simple/-lpthread -lpulse-simple/" Makefile || die
+}
+
+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
+}