Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/qsynth: ChangeLog qsynth-0.3.5.ebuild
Date: Tue, 27 Apr 2010 19:07:16
Message-Id: 20100427190714.49D3E2C04C@corvid.gentoo.org
1 aballier 10/04/27 19:07:14
2
3 Modified: ChangeLog
4 Added: qsynth-0.3.5.ebuild
5 Log:
6 version bump
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.49 media-sound/qsynth/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/ChangeLog?rev=1.49&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/ChangeLog?rev=1.49&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/ChangeLog?r1=1.48&r2=1.49
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/qsynth/ChangeLog,v
19 retrieving revision 1.48
20 retrieving revision 1.49
21 diff -u -r1.48 -r1.49
22 --- ChangeLog 6 Oct 2009 17:12:34 -0000 1.48
23 +++ ChangeLog 27 Apr 2010 19:07:14 -0000 1.49
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-sound/qsynth
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/qsynth/ChangeLog,v 1.48 2009/10/06 17:12:34 ayoy Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/qsynth/ChangeLog,v 1.49 2010/04/27 19:07:14 aballier Exp $
30 +
31 +*qsynth-0.3.5 (27 Apr 2010)
32 +
33 + 27 Apr 2010; Alexis Ballier <aballier@g.o> +qsynth-0.3.5.ebuild:
34 + version bump
35
36 06 Oct 2009; Dominik Kapusta <ayoy@g.o> qsynth-0.3.4.ebuild:
37 Removed alternative dependency on Qt metapackage
38
39
40
41 1.1 media-sound/qsynth/qsynth-0.3.5.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/qsynth-0.3.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/qsynth-0.3.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: qsynth-0.3.5.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-sound/qsynth/qsynth-0.3.5.ebuild,v 1.1 2010/04/27 19:07:14 aballier Exp $
51
52 EAPI=2
53
54 inherit qt4 eutils flag-o-matic
55
56 DESCRIPTION="A Qt application to control FluidSynth"
57 HOMEPAGE="http://qsynth.sourceforge.net/"
58 SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz"
59 LICENSE="GPL-2"
60
61 SLOT="0"
62 IUSE="debug jack alsa pulseaudio"
63 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
64
65 DEPEND="x11-libs/qt-core:4
66 x11-libs/qt-gui:4
67 >=media-sound/fluidsynth-1.0.7a[jack?,alsa?,pulseaudio?]
68 !pulseaudio? ( !jack? ( !alsa? ( >=media-sound/fluidsynth-1.0.7a[oss] ) ) )"
69 RDEPEND="${DEPEND}"
70
71 src_configure() {
72 # Stupidly, qsynth's configure does *not* use pkg-config to
73 # discover the presence of Qt4, but uses fixed paths; as they
74 # don't really work that well for our case, let's just use this
75 # nasty hack and be done with it. *NOTE*: this hinders
76 # cross-compile.
77 append-flags -I/usr/include/qt4
78 append-ldflags -L/usr/$(get_libdir)/qt4
79
80 econf \
81 $(use_enable debug) \
82 || die "econf failed"
83 eqmake4 "${PN}.pro" -o "${PN}.mak"
84 }
85
86 src_compile() {
87 lupdate "${PN}.pro" || die
88 emake || die
89 }
90
91 src_install () {
92 emake DESTDIR="${D}" install || die "make install failed"
93 dodoc AUTHORS ChangeLog README TODO
94
95 # The desktop file is invalid, and we also change the command
96 # depending on useflags
97 rm -rf "${D}/usr/share/applications/qsynth.desktop"
98
99 local cmd
100 if use jack; then
101 cmd="qsynth"
102 elif use pulseaudio; then
103 cmd="qsynth -a pulseaudio"
104 elif use alsa; then
105 cmd="qsynth -a alsa"
106 else
107 cmd="qsynth -a oss"
108 fi
109
110 make_desktop_entry "${cmd}" Qsynth qsynth
111 }