Line
Link Here
|
0 |
-- qsynth-0.3.6.ebuild |
0 |
++ qsynth-0.3.6-r1.ebuild |
Lines 2-10
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/qsynth/qsynth-0.3.6.ebuild,v 1.5 2012/03/06 14:33:12 ranger Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/qsynth/qsynth-0.3.6.ebuild,v 1.5 2012/03/06 14:33:12 ranger Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=4 |
|
|
6 |
LANGS="cs de es ru" |
6 |
|
7 |
|
7 |
inherit qt4 eutils flag-o-matic |
8 |
inherit qt4-r2 eutils flag-o-matic |
8 |
|
9 |
|
9 |
DESCRIPTION="A Qt application to control FluidSynth" |
10 |
DESCRIPTION="A Qt application to control FluidSynth" |
10 |
HOMEPAGE="http://qsynth.sourceforge.net/" |
11 |
HOMEPAGE="http://qsynth.sourceforge.net/" |
Lines 13-19
Link Here
|
13 |
|
14 |
|
14 |
SLOT="0" |
15 |
SLOT="0" |
15 |
IUSE="debug jack alsa pulseaudio" |
16 |
IUSE="debug jack alsa pulseaudio" |
16 |
KEYWORDS="amd64 ppc x86" |
17 |
KEYWORDS="~amd64 ~ppc ~x86" |
17 |
|
18 |
|
18 |
DEPEND=">=x11-libs/qt-core-4.2:4 |
19 |
DEPEND=">=x11-libs/qt-core-4.2:4 |
19 |
>=x11-libs/qt-gui-4.2:4 |
20 |
>=x11-libs/qt-gui-4.2:4 |
Lines 22-27
Link Here
|
22 |
!pulseaudio? ( !jack? ( !alsa? ( >=media-sound/fluidsynth-1.0.7a[oss] ) ) )" |
23 |
!pulseaudio? ( !jack? ( !alsa? ( >=media-sound/fluidsynth-1.0.7a[oss] ) ) )" |
23 |
RDEPEND="${DEPEND}" |
24 |
RDEPEND="${DEPEND}" |
24 |
|
25 |
|
|
|
26 |
DOCS="AUTHORS ChangeLog README TODO TRANSLATORS" |
27 |
|
25 |
src_configure() { |
28 |
src_configure() { |
26 |
# Stupidly, qsynth's configure does *not* use pkg-config to |
29 |
# Stupidly, qsynth's configure does *not* use pkg-config to |
27 |
# discover the presence of Qt4, but uses fixed paths; as they |
30 |
# discover the presence of Qt4, but uses fixed paths; as they |
Lines 32-55
Link Here
|
32 |
append-ldflags -L/usr/$(get_libdir)/qt4 |
35 |
append-ldflags -L/usr/$(get_libdir)/qt4 |
33 |
|
36 |
|
34 |
econf \ |
37 |
econf \ |
35 |
$(use_enable debug) \ |
38 |
$(use_enable debug) |
36 |
|| die "econf failed" |
|
|
37 |
eqmake4 "${PN}.pro" -o "${PN}.mak" |
39 |
eqmake4 "${PN}.pro" -o "${PN}.mak" |
38 |
} |
40 |
} |
39 |
|
41 |
|
40 |
src_compile() { |
42 |
src_compile() { |
41 |
lupdate "${PN}.pro" || die |
43 |
lupdate "${PN}.pro" || die "lupdate failed" |
42 |
emake || die |
44 |
qt4-r2_src_compile |
43 |
} |
45 |
} |
44 |
|
46 |
|
45 |
src_install () { |
47 |
src_install () { |
46 |
emake DESTDIR="${D}" install || die "make install failed" |
48 |
qt4-r2_src_install |
47 |
dodoc AUTHORS ChangeLog README TODO |
|
|
48 |
|
49 |
|
49 |
# The desktop file is invalid, and we also change the command |
50 |
# The desktop file is invalid, and we also change the command |
50 |
# depending on useflags |
51 |
# depending on useflags |
51 |
rm -rf "${D}/usr/share/applications/qsynth.desktop" |
52 |
rm -rf "${D}/usr/share/applications/qsynth.desktop" |
52 |
|
53 |
|
|
|
54 |
local lang |
55 |
for lang in ${LANGS} ; do |
56 |
if ! use linguas_${lang} ; then |
57 |
rm -r "${D}"/usr/share/locale/${PN}_${lang}.qm |
58 |
fi |
59 |
done |
60 |
|
53 |
local cmd |
61 |
local cmd |
54 |
if use jack; then |
62 |
if use jack; then |
55 |
cmd="qsynth" |
63 |
cmd="qsynth" |