diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-05-22 16:07:16 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-05-22 17:41:22 +0200 |
commit | f0c4c8ce8f40c4655183b7da2ae7195a0a1ba68c (patch) | |
tree | 0df8abf959451fc3a91b7abb991cce72e3227ea5 /media-sound | |
parent | media-libs/lilv: Drop 0.24.4 (r0) (diff) | |
download | gentoo-f0c4c8ce8f40c4655183b7da2ae7195a0a1ba68c.tar.gz gentoo-f0c4c8ce8f40c4655183b7da2ae7195a0a1ba68c.tar.bz2 gentoo-f0c4c8ce8f40c4655183b7da2ae7195a0a1ba68c.zip |
media-sound/fmit: EAPI-7 bump, virtual/jack, missing DEPENDs
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/fmit/fmit-1.0.15-r2.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/media-sound/fmit/fmit-1.0.15-r2.ebuild b/media-sound/fmit/fmit-1.0.15-r2.ebuild new file mode 100644 index 000000000000..163fafa5f86d --- /dev/null +++ b/media-sound/fmit/fmit-1.0.15-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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] + 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} + 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 "README sed failed" + # Fix the PREFIX location, insert real path. + sed -i "/QString fmitprefix/c\QString fmitprefix(STR(/usr));" \ + src/main.cpp || die "PREFIX fix sed failed" + # Fix the PREFIX location, insert real path. + sed -i "/QString fmitprefix/c\QString fmitprefix(STR(/usr));" \ + src/modules/MicrotonalView.cpp || die "PREFIX fix sed failed" + 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 "Running lrelease failed" + + eqmake5 CONFIG+="${config}" fmit.pro PREFIX="${D}"/usr \ + PREFIXSHORTCUT="${D}"/usr DISTDIR=/usr +} |