Line
Link Here
|
0 |
-- qsynth-0.3.6.ebuild |
0 |
++ qsynth-0.3.6.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 |
|
28 |
src_prepare() { |
29 |
local lang use_langs |
30 |
for lang in ${LANGS} ; do |
31 |
if use linguas_${lang} ; then |
32 |
use_langs="${use_langs} src/translations/${PN}_${lang}.qm" |
33 |
fi |
34 |
done |
35 |
|
36 |
sed -e "s|\$(translations_targets)|${use_langs}|" -i Makefile.in \ |
37 |
|| die "sed translations failed" |
38 |
|
39 |
sed -e 's/@make/@\$(MAKE)/' -i Makefile.in || die "sed Makefile failed" |
40 |
|
41 |
qt4-r2_src_prepare |
42 |
} |
43 |
|
25 |
src_configure() { |
44 |
src_configure() { |
26 |
# Stupidly, qsynth's configure does *not* use pkg-config to |
45 |
# Stupidly, qsynth's configure does *not* use pkg-config to |
27 |
# discover the presence of Qt4, but uses fixed paths; as they |
46 |
# discover the presence of Qt4, but uses fixed paths; as they |
Lines 32-50
Link Here
|
32 |
append-ldflags -L/usr/$(get_libdir)/qt4 |
51 |
append-ldflags -L/usr/$(get_libdir)/qt4 |
33 |
|
52 |
|
34 |
econf \ |
53 |
econf \ |
35 |
$(use_enable debug) \ |
54 |
$(use_enable debug) |
36 |
|| die "econf failed" |
|
|
37 |
eqmake4 "${PN}.pro" -o "${PN}.mak" |
55 |
eqmake4 "${PN}.pro" -o "${PN}.mak" |
38 |
} |
56 |
} |
39 |
|
57 |
|
40 |
src_compile() { |
58 |
src_compile() { |
41 |
lupdate "${PN}.pro" || die |
59 |
lupdate "${PN}.pro" || die "lupdate failed" |
42 |
emake || die |
60 |
qt4-r2_src_compile |
43 |
} |
61 |
} |
44 |
|
62 |
|
45 |
src_install () { |
63 |
src_install () { |
46 |
emake DESTDIR="${D}" install || die "make install failed" |
64 |
qt4-r2_src_install |
47 |
dodoc AUTHORS ChangeLog README TODO |
|
|
48 |
|
65 |
|
49 |
# The desktop file is invalid, and we also change the command |
66 |
# The desktop file is invalid, and we also change the command |
50 |
# depending on useflags |
67 |
# depending on useflags |