Gentoo Archives: gentoo-commits

From: "Thomas Beierlein (tomjbe)" <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-radio/unixcw: ChangeLog unixcw-3.3.0.ebuild
Date: Wed, 25 Dec 2013 13:26:30
Message-Id: 20131225132627.801782004C@flycatcher.gentoo.org
1 tomjbe 13/12/25 13:26:27
2
3 Modified: ChangeLog
4 Added: unixcw-3.3.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x762053D5)
9
10 Revision Changes Path
11 1.12 media-radio/unixcw/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/unixcw/ChangeLog?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/unixcw/ChangeLog?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/unixcw/ChangeLog?r1=1.11&r2=1.12
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-radio/unixcw/ChangeLog,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- ChangeLog 2 Mar 2013 21:52:16 -0000 1.11
24 +++ ChangeLog 25 Dec 2013 13:26:27 -0000 1.12
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-radio/unixcw
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-radio/unixcw/ChangeLog,v 1.11 2013/03/02 21:52:16 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-radio/unixcw/ChangeLog,v 1.12 2013/12/25 13:26:27 tomjbe Exp $
30 +
31 +*unixcw-3.3.0 (25 Dec 2013)
32 +
33 + 25 Dec 2013; Thomas Beierlein <tomjbe@g.o> +unixcw-3.3.0.ebuild:
34 + Version bump
35
36 02 Mar 2013; Markos Chandras <hwoarang@g.o> unixcw-2.3-r6.ebuild,
37 unixcw-3.0.2.ebuild, unixcw-3.1.1.ebuild, unixcw-3.2.0.ebuild:
38
39
40
41 1.1 media-radio/unixcw/unixcw-3.3.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/unixcw/unixcw-3.3.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/unixcw/unixcw-3.3.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: unixcw-3.3.0.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-radio/unixcw/unixcw-3.3.0.ebuild,v 1.1 2013/12/25 13:26:27 tomjbe Exp $
51
52 EAPI=4
53
54 inherit autotools eutils flag-o-matic multilib
55
56 DESCRIPTION="A package of programs that fit together to form a morse code tutor program."
57 HOMEPAGE="http://unixcw.sourceforge.net"
58 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
63 IUSE="alsa ncurses pulseaudio suid qt4"
64
65 RDEPEND="ncurses? ( sys-libs/ncurses )
66 qt4? ( dev-qt/qtgui:4[qt3support] )
67 alsa? ( media-libs/alsa-lib )
68 pulseaudio? ( media-sound/pulseaudio )"
69 DEPEND="${RDEPEND}
70 virtual/pkgconfig
71 sys-devel/libtool
72 !<=app-misc/cw-1.0.16-r1"
73
74 src_prepare() {
75 append-cflags -std=gnu99
76 # add path to qt4 libs
77 sed -i -e "s#LDADD = -L#LDADD = -L/usr/$(get_libdir)/qt4 -L#g" \
78 src/xcwcp/Makefile.am
79 eautoreconf
80 }
81
82 src_configure() {
83 econf --libdir=/usr/$(get_libdir) \
84 $(use_enable pulseaudio ) \
85 $(use_enable alsa ) \
86 $(use_enable ncurses cwcp ) \
87 $(use_enable qt4 xcwcp )
88 }
89
90 src_install() {
91 emake DESTDIR="${D}" install
92 prune_libtool_files
93 dodoc ChangeLog NEWS README
94 if ! use suid ; then
95 fperms 711 /usr/bin/cw
96 if use ncurses ; then
97 fperms 711 /usr/bin/cwcp
98 fi
99 if use qt4 ; then
100 fperms 711 /usr/bin/xcwcp
101 fi
102 fi
103 }
104
105 pkg_postinst() {
106 if use suid ; then
107 ewarn "You have choosen to install 'cw', 'cwcp' and 'xcwcp' setuid"
108 ewarn "by setting USE=suid."
109 ewarn "Be aware that this is a security risk and not recommended."
110 ewarn ""
111 ewarn "These files do only need root access if you want to use the"
112 ewarn "PC speaker for morse sidetone output. You can alternativly"
113 ewarn "drop USE=suid and use sudo."
114 else
115 elog "Be aware that 'cw', 'cwcp' and 'xcwcp' needs root access if"
116 elog "you want to use the PC speaker for morse sidetone output."
117 elog "You can call the programs via sudo for that (see 'man sudo')."
118 fi
119 }