Gentoo Archives: gentoo-commits

From: Thomas Beierlein <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-radio/qrq/files/, media-radio/qrq/
Date: Sun, 16 Apr 2017 15:03:30
Message-Id: 1492354972.f51503a3a00c3d085e673b6d738159eac253cf60.tomjbe@gentoo
1 commit: f51503a3a00c3d085e673b6d738159eac253cf60
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 16 15:02:52 2017 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 16 15:02:52 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f51503a3
7
8 media-radio/qrq: Move to EAPI 6. Fix tinfo problem. Thanks for report to S. Kricner.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 media-radio/qrq/files/qrq-0.3.1-tinfo.patch | 20 ++++++++++++++
13 media-radio/qrq/qrq-0.3.1-r1.ebuild | 41 +++++++++++++++++++++++++++++
14 2 files changed, 61 insertions(+)
15
16 diff --git a/media-radio/qrq/files/qrq-0.3.1-tinfo.patch b/media-radio/qrq/files/qrq-0.3.1-tinfo.patch
17 new file mode 100644
18 index 00000000000..83ae2b0e7bc
19 --- /dev/null
20 +++ b/media-radio/qrq/files/qrq-0.3.1-tinfo.patch
21 @@ -0,0 +1,20 @@
22 +--- a/Makefile 2017-04-03 18:45:09.028423872 +0200
23 ++++ b/Makefile 2017-04-03 18:45:55.711048924 +0200
24 +@@ -47,7 +47,7 @@ ifeq ($(USE_CA), YES)
25 + endif
26 + else ifeq ($(USE_PA), YES)
27 + CFLAGS:=$(CFLAGS) -D PA -pthread
28 +- LDFLAGS:=$(LDFLAGS) -lpulse-simple -lpulse -lncurses
29 ++ LDFLAGS:=$(LDFLAGS) -lpulse-simple -lpulse $(shell pkg-config ncurses --libs)
30 + OBJECTS=qrq.o pulseaudio.o
31 + else ifeq ($(USE_WIN32), YES)
32 + CFLAGS:=$(CFLAGS) -D PA
33 +@@ -55,7 +55,7 @@
34 + OBJECTS=qrq.o qrq.res pdcurses.a libpthreadGC1.a
35 + else
36 + OBJECTS=qrq.o oss.o
37 +- LDFLAGS:=$(LDFLAGS) -lpthread -lncurses
38 ++ LDFLAGS:=$(LDFLAGS) -lpthread $(shell pkg-config ncurses --libs)
39 + CFLAGS:=$(CFLAGS) -D OSS
40 + endif
41 +
42
43 diff --git a/media-radio/qrq/qrq-0.3.1-r1.ebuild b/media-radio/qrq/qrq-0.3.1-r1.ebuild
44 new file mode 100644
45 index 00000000000..9b363803062
46 --- /dev/null
47 +++ b/media-radio/qrq/qrq-0.3.1-r1.ebuild
48 @@ -0,0 +1,41 @@
49 +# Copyright 1999-2017 Gentoo Foundation
50 +# Distributed under the terms of the GNU General Public License v2
51 +
52 +EAPI="6"
53 +
54 +inherit toolchain-funcs
55 +
56 +DESCRIPTION="Yet another CW trainer for Linux/Unix"
57 +HOMEPAGE="http://fkurz.net/ham/qrq.html"
58 +SRC_URI="http://fkurz.net/ham/${PN}/${P}.tar.gz"
59 +
60 +LICENSE="GPL-2"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~x86"
63 +IUSE="pulseaudio"
64 +
65 +DEPEND="sys-libs/ncurses:=
66 + pulseaudio? ( media-sound/pulseaudio )"
67 +RDEPEND="${DEPEND}"
68 +
69 +src_prepare() {
70 + eapply "${FILESDIR}"/${P}-tinfo.patch
71 + # avoid prestripping of 'qrq' binary
72 + sed -i -e "s/install -s -m/install -m/" Makefile || die
73 + sed -i -e "s/CC=gcc/CC=$(tc-getCC)/" Makefile || die
74 + sed -i -e "s/-lpulse-simple/-lpthread -lpulse-simple/" Makefile || die
75 + default
76 +}
77 +
78 +src_compile() {
79 + CONF="USE_PA=NO USE_OSS=YES"
80 + if use pulseaudio; then
81 + CONF="USE_PA=YES USE_OSS=NO"
82 + fi
83 + emake $CONF
84 +}
85 +
86 +src_install() {
87 + emake $CONF DESTDIR="${D}/usr" install
88 + dodoc AUTHORS ChangeLog README
89 +}