Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/patchage/files/, media-sound/patchage/
Date: Sat, 09 Jan 2021 10:32:57
Message-Id: 1610188364.5d6ba19feda98dceae4dd9a351c70daa20e733c8.fordfrog@gentoo
1 commit: 5d6ba19feda98dceae4dd9a351c70daa20e733c8
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 9 10:32:28 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 9 10:32:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d6ba19f
7
8 media-sound/patchage: bump to 1.0.4
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-sound/patchage/Manifest | 1 +
14 .../files/patchage-1.0.4-fix-compilation.patch | 48 ++++++++++++++++++++++
15 media-sound/patchage/patchage-1.0.4.ebuild | 48 ++++++++++++++++++++++
16 3 files changed, 97 insertions(+)
17
18 diff --git a/media-sound/patchage/Manifest b/media-sound/patchage/Manifest
19 index 30b106a213b..36496ca31be 100644
20 --- a/media-sound/patchage/Manifest
21 +++ b/media-sound/patchage/Manifest
22 @@ -1 +1,2 @@
23 DIST patchage-1.0.2.tar.bz2 586298 BLAKE2B db52e267dc6ecc246ca5a30d88976c426b607c47c10cf041fe3bb0ab2d6b22d7b3c55a704be0d2fb6b87b3d23d26f15dd49b3d151d3d1dc084f290f4e7ccb01d SHA512 8d59bf4a71c2b41a1c9d8f72da30046568573c6cedaca69815b279fd1c24d44267da6846e219449d47f43157663abc331ef89f241d94dd16e666e06da9f81e12
24 +DIST patchage-1.0.4.tar.bz2 661824 BLAKE2B 3e56b7513e19e0acb1ef524ba7d7754699abdb6a968547f7a545c8651f23a33c209b9728dae01d839022ec380185a1673ff58733c1553007a6a3b7c889aa7f03 SHA512 665d81ca16c1052f71c3037d2ad8f9a6120b09a323999468484dda1b4c4b567c36728ebe38c54152406b63a4107f04764d0dede52302bc7a7b124e82132749fb
25
26 diff --git a/media-sound/patchage/files/patchage-1.0.4-fix-compilation.patch b/media-sound/patchage/files/patchage-1.0.4-fix-compilation.patch
27 new file mode 100644
28 index 00000000000..aace519e630
29 --- /dev/null
30 +++ b/media-sound/patchage/files/patchage-1.0.4-fix-compilation.patch
31 @@ -0,0 +1,48 @@
32 +diff --git a/src/JackDbusDriver.cpp b/src/JackDbusDriver.cpp
33 +index 23c12f2..f49a522 100644
34 +--- a/src/JackDbusDriver.cpp
35 ++++ b/src/JackDbusDriver.cpp
36 +@@ -24,6 +24,7 @@
37 + #include "SignalDirection.hpp"
38 + #include "make_jack_driver.hpp"
39 + #include "warnings.hpp"
40 ++#include "AudioDriver.hpp"
41 +
42 + PATCHAGE_DISABLE_FMT_WARNINGS
43 + #include <fmt/core.h>
44 +@@ -61,7 +62,7 @@ namespace {
45 + class JackDriver : public AudioDriver
46 + {
47 + public:
48 +- explicit JackDriver(ILog& log, EventSink emit_event);
49 ++ explicit JackDriver(ILog& log, Driver::EventSink emit_event);
50 +
51 + JackDriver(const JackDriver&) = delete;
52 + JackDriver& operator=(const JackDriver&) = delete;
53 +@@ -75,7 +76,7 @@ public:
54 + void attach(bool launch_daemon) override;
55 + void detach() override;
56 + bool is_attached() const override;
57 +- void refresh(const EventSink& sink) override;
58 ++ void refresh(const Driver::EventSink& sink) override;
59 + bool connect(const PortID& tail_id, const PortID& head_id) override;
60 + bool disconnect(const PortID& tail_id, const PortID& head_id) override;
61 +
62 +@@ -129,7 +130,7 @@ private:
63 + dbus_uint64_t _graph_version;
64 + };
65 +
66 +-JackDriver::JackDriver(ILog& log, EventSink emit_event)
67 ++JackDriver::JackDriver(ILog& log, Driver::EventSink emit_event)
68 + : AudioDriver{std::move(emit_event)}
69 + , _log(log)
70 + , _dbus_error()
71 +@@ -584,7 +585,7 @@ JackDriver::is_attached() const
72 + }
73 +
74 + void
75 +-JackDriver::refresh(const EventSink& sink)
76 ++JackDriver::refresh(const Driver::EventSink& sink)
77 + {
78 + DBusMessage* reply_ptr = nullptr;
79 + DBusMessageIter iter = {};
80
81 diff --git a/media-sound/patchage/patchage-1.0.4.ebuild b/media-sound/patchage/patchage-1.0.4.ebuild
82 new file mode 100644
83 index 00000000000..24bbd1ab010
84 --- /dev/null
85 +++ b/media-sound/patchage/patchage-1.0.4.ebuild
86 @@ -0,0 +1,48 @@
87 +# Copyright 1999-2021 Gentoo Authors
88 +# Distributed under the terms of the GNU General Public License v2
89 +
90 +EAPI=7
91 +PYTHON_COMPAT=( python3_{7,8,9} )
92 +PYTHON_REQ_USE='threads(+)'
93 +inherit waf-utils python-any-r1 xdg
94 +
95 +DESCRIPTION="Modular patch bay for JACK-based audio and MIDI systems"
96 +HOMEPAGE="http://drobilla.net/software/patchage"
97 +SRC_URI="http://download.drobilla.net/${P}.tar.bz2"
98 +
99 +LICENSE="GPL-2"
100 +SLOT="0"
101 +KEYWORDS="~amd64 ~x86"
102 +IUSE="alsa debug jack-dbus session"
103 +
104 +BDEPEND="
105 + ${PYTHON_DEPS}
106 + dev-libs/boost
107 + virtual/pkgconfig
108 +"
109 +RDEPEND="dev-cpp/glibmm:2
110 + dev-cpp/gtkmm:2.4
111 + dev-cpp/libglademm:2.4
112 + dev-cpp/libgnomecanvasmm:2.6
113 + media-libs/ganv
114 + virtual/jack
115 + alsa? ( media-libs/alsa-lib )
116 + jack-dbus? (
117 + dev-libs/dbus-glib
118 + sys-apps/dbus
119 + )"
120 +DEPEND="${RDEPEND}"
121 +
122 +DOCS=( AUTHORS NEWS README.md )
123 +
124 +PATCHES=(
125 + "${FILESDIR}/${P}-fix-compilation.patch"
126 +)
127 +
128 +src_configure() {
129 + waf-utils_src_configure \
130 + $(use debug && echo "--debug") \
131 + $(use alsa || echo "--no-alsa") \
132 + $(use jack-dbus && echo "--jack-dbus") \
133 + $(use session && echo "--jack-session-manage")
134 +}