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/unixcw/
Date: Mon, 21 Dec 2015 17:54:37
Message-Id: 1450720453.da0d78eb23ae9ae59725daf7dc5f1ddc0efbda02.tomjbe@gentoo
1 commit: da0d78eb23ae9ae59725daf7dc5f1ddc0efbda02
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 21 17:54:13 2015 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 21 17:54:13 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da0d78eb
7
8 media-radio/unixcw: Version bump
9
10 Package-Manager: portage-2.2.26
11
12 media-radio/unixcw/Manifest | 1 +
13 media-radio/unixcw/unixcw-3.5.0.ebuild | 70 ++++++++++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/media-radio/unixcw/Manifest b/media-radio/unixcw/Manifest
17 index 1268caa..b614d7b 100644
18 --- a/media-radio/unixcw/Manifest
19 +++ b/media-radio/unixcw/Manifest
20 @@ -1 +1,2 @@
21 DIST unixcw-3.4.2.tar.gz 730461 SHA256 ace7d16cfc8f84ffe041de6774baa0727ed0230657cf8a93cb4addf1cb4e8b2a SHA512 118e4f7fcca78713e5be5aa2faccec4e26979e95dcc300bf259534bb417eee7b21591ecb778467591b1a3b61c9ede18f229f88cd1bba2d6bc54f4d410096e0c9 WHIRLPOOL e8959ccb6eca32f4d468dbdb1add61dad6be30b453369385a1c857309ea89d052e4ef5577c4e17f101a79ee762f10ead3ec1fae72a394455ac473c4758fe0e3c
22 +DIST unixcw-3.5.0.tar.gz 739258 SHA256 82c455b67c6444165ec59f75bc29ad0665b79d70489bd09e3166fd1ccde718e6 SHA512 82128656dce56558f4a41be394afd1579f9de43f170c695e09e25e231b8416993b1cb94215325b39645391b2a43ede8119291efad284fecc35eb8a753669e8ec WHIRLPOOL 3c6dd3bcfa4d43f114938a1048e04f21a63199bb7c291e415e5b035dfe6c59031c60760ad65721cea84ee942ef6263f1938fa9093e6ab6c620875433b415c878
23
24 diff --git a/media-radio/unixcw/unixcw-3.5.0.ebuild b/media-radio/unixcw/unixcw-3.5.0.ebuild
25 new file mode 100644
26 index 0000000..8f624ad
27 --- /dev/null
28 +++ b/media-radio/unixcw/unixcw-3.5.0.ebuild
29 @@ -0,0 +1,70 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +inherit eutils flag-o-matic multilib
37 +
38 +DESCRIPTION="A package of programs that fit together to form a morse code tutor program"
39 +HOMEPAGE="http://unixcw.sourceforge.net"
40 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~ppc ~x86"
45 +IUSE="alsa ncurses pulseaudio suid qt5"
46 +
47 +RDEPEND="ncurses? ( sys-libs/ncurses:= )
48 + qt5? ( dev-qt/qtcore:5
49 + dev-qt/qtgui:5
50 + dev-qt/qtwidgets:5 )
51 + alsa? ( media-libs/alsa-lib )
52 + pulseaudio? ( media-sound/pulseaudio )"
53 +DEPEND="${RDEPEND}
54 + virtual/pkgconfig
55 + sys-devel/libtool
56 + !<=app-misc/cw-1.0.16-r1"
57 +
58 +src_prepare() {
59 + append-cflags -std=gnu99
60 +}
61 +
62 +src_configure() {
63 + econf --libdir=/usr/$(get_libdir) \
64 + $(use_enable pulseaudio ) \
65 + $(use_enable alsa ) \
66 + $(use_enable ncurses cwcp ) \
67 + $(use_enable qt5 xcwcp )
68 +}
69 +
70 +src_install() {
71 + emake DESTDIR="${D}" install
72 + prune_libtool_files
73 + dodoc ChangeLog NEWS README
74 + if ! use suid ; then
75 + fperms 711 /usr/bin/cw
76 + if use ncurses ; then
77 + fperms 711 /usr/bin/cwcp
78 + fi
79 + if use qt5 ; then
80 + fperms 711 /usr/bin/xcwcp
81 + fi
82 + fi
83 +}
84 +
85 +pkg_postinst() {
86 + if use suid ; then
87 + ewarn "You have choosen to install 'cw', 'cwcp' and 'xcwcp' setuid"
88 + ewarn "by setting USE=suid."
89 + ewarn "Be aware that this is a security risk and not recommended."
90 + ewarn ""
91 + ewarn "These files do only need root access if you want to use the"
92 + ewarn "PC speaker for morse sidetone output. You can alternativly"
93 + ewarn "drop USE=suid and use sudo."
94 + else
95 + elog "Be aware that 'cw', 'cwcp' and 'xcwcp' needs root access if"
96 + elog "you want to use the PC speaker for morse sidetone output."
97 + elog "You can call the programs via sudo for that (see 'man sudo')."
98 + fi
99 +}