summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Horan <brendan@horan.hk>2016-06-21 09:04:58 -0400
committerGöktürk Yüksek <gokturk@gentoo.org>2016-06-21 10:00:11 -0400
commit11775bd71064f465aac6822dd358a5a9e5fb4f9d (patch)
treed218d7da519dfb6585d3c459b40d511e48ed335a /media-sound/fmit
parentdev-util/lttng-tools: version bump 2.7.3, 2.8.0 (diff)
downloadgentoo-11775bd71064f465aac6822dd358a5a9e5fb4f9d.tar.gz
gentoo-11775bd71064f465aac6822dd358a5a9e5fb4f9d.tar.bz2
gentoo-11775bd71064f465aac6822dd358a5a9e5fb4f9d.zip
media-sound/fmit: initial commit with version 1.0.15
FMIT is a graphical utility for tuning musical instruments, with error and volume history and advanced features. Package-Manager: portage-2.2.28
Diffstat (limited to 'media-sound/fmit')
-rw-r--r--media-sound/fmit/Manifest1
-rw-r--r--media-sound/fmit/fmit-1.0.15.ebuild64
-rw-r--r--media-sound/fmit/metadata.xml12
3 files changed, 77 insertions, 0 deletions
diff --git a/media-sound/fmit/Manifest b/media-sound/fmit/Manifest
new file mode 100644
index 000000000000..4ee8ddf7ce33
--- /dev/null
+++ b/media-sound/fmit/Manifest
@@ -0,0 +1 @@
+DIST fmit-1.0.15.tar.gz 295365 SHA256 3c819e0f0e4e04acdb8b856feff893b000cd47ccb39fb6362ca1a721b19f3fb6 SHA512 44537669391f5043efe35b53d9693f8ab6a151918583d35439c1b29feca4a707225038512c9a2de734ada9e9acb3b4b191b866038edaed9fe8d1fee09c540aac WHIRLPOOL cbb3d76ebfce83b3b9354621e02a645d391782e44c1e469c83a9aa3b615f8fd89ea4f45ce3336c424156735bfc133a07f06ff65fd103568cca7779dc25754d9f
diff --git a/media-sound/fmit/fmit-1.0.15.ebuild b/media-sound/fmit/fmit-1.0.15.ebuild
new file mode 100644
index 000000000000..d59902f89f61
--- /dev/null
+++ b/media-sound/fmit/fmit-1.0.15.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit qmake-utils
+
+MY_PN="v${PV}"
+
+DESCRIPTION="Free Music Instrument Tuner"
+HOMEPAGE="https://gillesdegottex.github.io/fmit"
+SRC_URI="https://github.com/gillesdegottex/fmit/archive/${MY_PN}.tar.gz \
+ -> ${P}.tar.gz"
+
+LICENSE="GPL-2+ LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa jack oss portaudio"
+
+RDEPEND=">=sci-libs/fftw-3.3.4
+ media-libs/freeglut
+ dev-qt/qtmultimedia:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsvg:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ alsa? ( media-libs/alsa-lib )
+ jack? ( media-sound/jack-audio-connection-kit )
+ portaudio? ( media-libs/portaudio )"
+
+DEPEND="${RDEPEND}"
+
+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
+ 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
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ insinto /usr/share/doc/"${PF}"/
+ doins README.txt
+ docompress -x /usr/share/doc/"${PF}"/
+}
diff --git a/media-sound/fmit/metadata.xml b/media-sound/fmit/metadata.xml
new file mode 100644
index 000000000000..06aa47c465ca
--- /dev/null
+++ b/media-sound/fmit/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>brendan@horan.hk</email>
+ <name>Brendan Horan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>