Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/fmit/
Date: Sun, 04 Sep 2016 18:58:31
Message-Id: 1473015491.a1c40f3d38a6cbdeee0e7ff9775b0e516e6eb984.soap@gentoo
1 commit: a1c40f3d38a6cbdeee0e7ff9775b0e516e6eb984
2 Author: Brendan Horan <brendanhoran <AT> basstech <DOT> net>
3 AuthorDate: Wed Aug 31 14:17:23 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 4 18:58:11 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1c40f3d
7
8 media-sound/fmit: Fixed RDEPEND, bump to -r1
9
10 * Removed media-libs/freeglut from RDEPEND,
11 upstream no longer need
12 * Added dev-qt/linguist-tools to RDEPEND
13 * Slotted sci-libs/fftw, should rebuild on (sub)-slot changes
14
15 Package-Manager: portage-2.2.28
16 Closes: https://github.com/gentoo/gentoo/pull/2176
17
18 Signed-off-by: David Seifert <soap <AT> gentoo.org>
19
20 media-sound/fmit/fmit-1.0.15-r1.ebuild | 56 ++++++++++++++++++++++++++++++++++
21 1 file changed, 56 insertions(+)
22
23 diff --git a/media-sound/fmit/fmit-1.0.15-r1.ebuild b/media-sound/fmit/fmit-1.0.15-r1.ebuild
24 new file mode 100644
25 index 00000000..646c5bd
26 --- /dev/null
27 +++ b/media-sound/fmit/fmit-1.0.15-r1.ebuild
28 @@ -0,0 +1,56 @@
29 +# Copyright 1999-2016 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +# $Id$
32 +
33 +EAPI=6
34 +
35 +inherit qmake-utils
36 +
37 +DESCRIPTION="Free Music Instrument Tuner"
38 +HOMEPAGE="https://gillesdegottex.github.io/fmit"
39 +SRC_URI="https://github.com/gillesdegottex/fmit/archive/v${PV}.tar.gz \
40 + -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2+ LGPL-2.1"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="alsa jack oss portaudio"
46 +
47 +RDEPEND=">=sci-libs/fftw-3.3.4:3.0=
48 + dev-qt/qtmultimedia:5
49 + dev-qt/qtopengl:5
50 + dev-qt/qtsvg:5
51 + dev-qt/qtcore:5
52 + dev-qt/qtgui:5[-gles2]
53 + alsa? ( media-libs/alsa-lib )
54 + jack? ( media-sound/jack-audio-connection-kit )
55 + portaudio? ( media-libs/portaudio )"
56 +
57 +DEPEND="${RDEPEND}
58 + dev-qt/linguist-tools"
59 +
60 +src_prepare() {
61 + # Fix the path to readme file to prevent errors on start up
62 + sed -i "/QFile readmefile/c\QFile readmefile \
63 + (\"/usr/share/doc/${PF}/README.txt\");" \
64 + src/main.cpp || die "README sed failed"
65 + # Fix the PREFIX location, insert real path.
66 + sed -i "/QString fmitprefix/c\QString fmitprefix(STR(/usr));" \
67 + src/main.cpp || die "PREFIX fix sed failed"
68 + # Fix the PREFIX location, insert real path.
69 + sed -i "/QString fmitprefix/c\QString fmitprefix(STR(/usr));" \
70 + src/modules/MicrotonalView.cpp || die "PREFIX fix sed failed"
71 + default
72 +}
73 +
74 +src_configure() {
75 + local config flag
76 + for flag in alsa jack portaudio oss; do
77 + use ${flag} && config+=" acs_${flag}"
78 + done
79 +
80 + "$(qt5_get_bindir)"/lrelease fmit.pro || die "Running lrelease failed"
81 +
82 + eqmake5 CONFIG+="${config}" fmit.pro PREFIX="${D}"/usr \
83 + PREFIXSHORTCUT="${D}"/usr DISTDIR=/usr
84 +}