Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/qsynth: ChangeLog qsynth-0.3.1-r1.ebuild
Date: Sun, 21 Oct 2007 12:39:30
Message-Id: E1IjZv8-00080K-SM@stork.gentoo.org
1 flameeyes 07/10/21 12:28:42
2
3 Modified: ChangeLog
4 Added: qsynth-0.3.1-r1.ebuild
5 Log:
6 Add a new ebuild with jack and alsa USE flags, so that at least the desktop file can be updated to run Qsynth without jack out of the box when not using it.
7 (Portage version: 2.1.3.15)
8
9 Revision Changes Path
10 1.24 media-sound/qsynth/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/ChangeLog?rev=1.24&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/ChangeLog?rev=1.24&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/ChangeLog?r1=1.23&r2=1.24
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/qsynth/ChangeLog,v
19 retrieving revision 1.23
20 retrieving revision 1.24
21 diff -u -r1.23 -r1.24
22 --- ChangeLog 19 Oct 2007 20:48:42 -0000 1.23
23 +++ ChangeLog 21 Oct 2007 12:28:42 -0000 1.24
24 @@ -1,6 +1,14 @@
25 # ChangeLog for media-sound/qsynth
26 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/qsynth/ChangeLog,v 1.23 2007/10/19 20:48:42 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/qsynth/ChangeLog,v 1.24 2007/10/21 12:28:42 flameeyes Exp $
29 +
30 +*qsynth-0.3.1-r1 (21 Oct 2007)
31 +
32 + 21 Oct 2007; Diego Pettenò <flameeyes@g.o>
33 + +qsynth-0.3.1-r1.ebuild:
34 + Add a new ebuild with jack and alsa USE flags, so that at least the desktop
35 + file can be updated to run Qsynth without jack out of the box when not using
36 + it.
37
38 *qsynth-0.3.1 (19 Oct 2007)
39
40
41
42
43 1.1 media-sound/qsynth/qsynth-0.3.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/qsynth-0.3.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qsynth/qsynth-0.3.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: qsynth-0.3.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-sound/qsynth/qsynth-0.3.1-r1.ebuild,v 1.1 2007/10/21 12:28:42 flameeyes Exp $
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"
63 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
64
65 DEPEND="$(qt4_min_version 4.2)
66 media-sound/fluidsynth"
67
68 pkg_setup() {
69 if use jack; then
70 if ! built_with_use media-sound/fluidsynth jack; then
71 eerror "To use Qsynth with JACK, you need to build media-sound/fluidsynth"
72 eerror "with the jack USE flag enabled."
73 die "Missing jack USE flag on media-sound/fluidsynth"
74 fi
75 einfo "Enabling default JACK output."
76 elif use alsa; then
77 if ! built_with_use media-sound/fluidsynth alsa; then
78 eerror "To use Qsynth with ALSA, you need to build media-sound/fluidsynth"
79 eerror "with the alsa USE flag enabled."
80 die "Missing alsa USE flag on media-sound/fluidsynth"
81 fi
82 einfo "Enabling non-default ALSA output."
83 else
84 if ! built_with_use media-sound/fluidsynth oss; then
85 eerror "If you don't want to use either JACK or ALSA on Qsynth"
86 eerror "you need to enable the oss USE flag on media-sound/fluidsynth"
87 die "Missing oss USE flag on media-sound/fluidsynth"
88 fi
89 einfo "Enabling non-default OSS output."
90 fi
91 }
92
93 src_compile() {
94 # Stupidly, qsynth's configure does *not* use pkg-config to
95 # discover the presence of Qt4, but uses fixed paths; as they
96 # don't really work that well for our case, let's just use this
97 # nasty hack and be done with it. *NOTE*: this hinders
98 # cross-compile.
99 append-flags -I/usr/include/qt4
100 append-ldflags -L/usr/$(get_libdir)/qt4
101
102 econf \
103 $(use_enable debug) \
104 || die "econf failed"
105 emake || die "emake failed"
106 }
107
108 src_install () {
109 make DESTDIR="${D}" install || die "make install failed"
110 dodoc AUTHORS ChangeLog README TODO
111
112 # The desktop file is invalid, and we also change the command
113 # depending on useflags
114 rm -rf "${D}/usr/share/applications/qsynth.desktop"
115
116 local cmd
117 if use jack; then
118 cmd="qsynth"
119 elif use alsa; then
120 cmd="qsynth -a alsa"
121 else
122 cmd="qsynth -a oss"
123 fi
124
125 make_desktop_entry "${cmd}" Qsynth qsynth
126 }
127
128
129
130 --
131 gentoo-commits@g.o mailing list