From cf24cf940f502bfac93ce2322c86ee0dafa54bef Mon Sep 17 00:00:00 2001
From: =?utf8?q?Miroslav=20=C5=A0ulc?= <fordfrog@gentoo.org>
Date: Fri, 3 Apr 2020 17:00:26 +0200
Subject: [PATCH] media-sound/qtractor: bump to 0.9.13
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Miroslav Å ulc <fordfrog@gentoo.org>
---
 media-sound/qtractor/Manifest                 |  1 +
 ...ractor-0.9.13-dont-compress-manpages.patch | 12 ++++
 media-sound/qtractor/qtractor-0.9.13.ebuild   | 67 +++++++++++++++++++
 3 files changed, 80 insertions(+)
 create mode 100644 media-sound/qtractor/files/qtractor-0.9.13-dont-compress-manpages.patch
 create mode 100644 media-sound/qtractor/qtractor-0.9.13.ebuild

diff --git a/media-sound/qtractor/Manifest b/media-sound/qtractor/Manifest
index e6a246e22545..3af614ec837b 100644
--- a/media-sound/qtractor/Manifest
+++ b/media-sound/qtractor/Manifest
@@ -1 +1,2 @@
 DIST qtractor-0.9.12.tar.gz 1893356 BLAKE2B 221062e1557fbfa209a3a55b3eaa8c80a5026886d33bb1c27de2fa410f0ab301bf3323cb7b451e2b326d26c9de9904e19578c02f602aed681fa9100b6124842e SHA512 cdd7414e2b287272164e3876603f4b051f22399e14aeb61c0e8d30a159a146d0028d36463400a239630cb31ba66bcd96302fb522fd8304342e533fd9d420cb2d
+DIST qtractor-0.9.13.tar.gz 1923166 BLAKE2B 2c380c169eb34d7acfd7e4d2594dcaae51fc268fd1ce4a0112752333852b1fd633161a089f451347d14ff1fb06a9971cbc6d9f9f00437a88c4673befe1e11bd3 SHA512 9344a992d315e024aaf4d1e7277665e26085667077835cad0f75682bf2a474877808dbe244680e7fe3a2dd81184c8962d22a58d84ac24402afada2dabcd2b8d4
diff --git a/media-sound/qtractor/files/qtractor-0.9.13-dont-compress-manpages.patch b/media-sound/qtractor/files/qtractor-0.9.13-dont-compress-manpages.patch
new file mode 100644
index 000000000000..4520a6b8df9f
--- /dev/null
+++ b/media-sound/qtractor/files/qtractor-0.9.13-dont-compress-manpages.patch
@@ -0,0 +1,12 @@
+diff --git a/Makefile.in b/Makefile.in
+index c2fa808..d72bbe2 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -345,7 +345,6 @@ install:	$(target) translations_lrelease $(name).1
+ 	@install -d -v -m 0755 $(DESTDIR)$(mandir)/man1
+ 	@install -v -m 0644 $(translations_targets) $(DESTDIR)$(translations_dir)
+ 	@install -v -m 0644 $(name)*.1 $(DESTDIR)$(mandir)/man1
+-	@gzip -nvf $(DESTDIR)$(mandir)/man1/$(name)*.1
+ 
+ uninstall:	$(DESTDIR)$(prefix)/bin/$(name)
+ 	@$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak uninstall
diff --git a/media-sound/qtractor/qtractor-0.9.13.ebuild b/media-sound/qtractor/qtractor-0.9.13.ebuild
new file mode 100644
index 000000000000..310a995f4898
--- /dev/null
+++ b/media-sound/qtractor/qtractor-0.9.13.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic qmake-utils xdg
+
+DESCRIPTION="Audio/MIDI multi-track sequencer written in C++ with the Qt framework"
+HOMEPAGE="https://qtractor.sourceforge.io"
+SRC_URI="mirror://sourceforge/qtractor/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="aubio cpu_flags_x86_sse debug dssi libsamplerate mad osc rubberband vorbis zlib"
+
+BDEPEND="
+	dev-qt/linguist-tools:5
+	virtual/pkgconfig
+"
+DEPEND="
+	dev-qt/qtcore:5
+	dev-qt/qtgui:5
+	dev-qt/qtwidgets:5
+	dev-qt/qtxml:5
+	dev-qt/qtx11extras:5
+	media-libs/alsa-lib
+	media-libs/ladspa-sdk
+	media-libs/libsndfile
+	>=media-libs/lilv-0.16.0
+	media-libs/lv2
+	media-libs/suil
+	virtual/jack
+	aubio? ( media-libs/aubio )
+	dssi? ( media-libs/dssi )
+	libsamplerate? ( media-libs/libsamplerate )
+	mad? ( media-libs/libmad )
+	osc? ( media-libs/liblo )
+	rubberband? ( media-libs/rubberband )
+	vorbis? ( media-libs/libvorbis )
+	zlib? ( sys-libs/zlib )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+	"${FILESDIR}/${P}-dont-compress-manpages.patch"
+)
+
+src_configure() {
+	append-cxxflags -std=c++11
+	econf \
+		--enable-ladspa \
+		--enable-lilv \
+		$(use_enable debug) \
+		$(use_enable aubio libaubio) \
+		$(use_enable dssi) \
+		$(use_enable libsamplerate) \
+		$(use_enable mad libmad) \
+		$(use_enable osc liblo) \
+		$(use_enable rubberband librubberband) \
+		$(use_enable cpu_flags_x86_sse sse) \
+		$(use_enable vorbis libvorbis) \
+		$(use_enable zlib libz)
+
+	eqmake5 ${PN}.pro -o ${PN}.mak
+}
-- 
2.26.2