blob: 5ca73642751a33222e7ca173052e8312ff422b2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qmake-utils
DESCRIPTION="Free Music Instrument Tuner"
HOMEPAGE="https://gillesdegottex.github.io/fmit"
SRC_URI="https://github.com/gillesdegottex/fmit/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+ LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="alsa jack oss portaudio"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5[-gles2-only]
dev-qt/qtmultimedia:5
dev-qt/qtopengl:5
dev-qt/qtsvg:5
dev-qt/qtwidgets:5
>=sci-libs/fftw-3.3.4:3.0=
virtual/opengl
alsa? ( media-libs/alsa-lib )
jack? ( virtual/jack )
portaudio? ( media-libs/portaudio )
"
DEPEND="${RDEPEND}"
BDEPEND="dev-qt/linguist-tools:5"
src_prepare() {
# Fix the path to readme file to prevent errors on start up
sed -i "/QFile readmefile/c\QFile readmefile \
(\"/usr/share/doc/${PF}/README.txt\");" \
src/main.cpp || die
# Fix the PREFIX location, insert real path.
sed -i "/QString fmitprefix/c\QString fmitprefix(STR(/usr));" \
src/main.cpp || die
# Fix the PREFIX location, insert real path.
sed -i "/QString fmitprefix/c\QString fmitprefix(STR(/usr));" \
src/modules/MicrotonalView.cpp || die
default
}
src_configure() {
local config flag
for flag in alsa jack portaudio oss; do
use ${flag} && config+=" acs_${flag}"
done
"$(qt5_get_bindir)"/lrelease fmit.pro || die
eqmake5 CONFIG+="${config}" PREFIX=/usr fmit.pro
}
src_install() {
emake install INSTALL_ROOT="${D}"
}
|