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/a2jmidid/
Date: Thu, 01 Jul 2021 05:02:54
Message-Id: 1625115635.5f5c7b85b427f0a26cf6fed2d29fe8a7e8da33d0.fordfrog@gentoo
1 commit: 5f5c7b85b427f0a26cf6fed2d29fe8a7e8da33d0
2 Author: Nikita Zlobin <nick87720z <AT> gmail <DOT> com>
3 AuthorDate: Wed Jun 30 19:02:19 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 1 05:00:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f5c7b85
7
8 media-sound/a2jmidid: python support is back
9
10 Bug: https://bugs.gentoo.org/798411
11 Signed-off-by: Nikita Zlobin <nick87720z <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/21418
13 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
14
15 media-sound/a2jmidid/a2jmidid-9.ebuild | 21 ++++++++++++++++++---
16 media-sound/a2jmidid/a2jmidid-9999.ebuild | 21 ++++++++++++++++++---
17 2 files changed, 36 insertions(+), 6 deletions(-)
18
19 diff --git a/media-sound/a2jmidid/a2jmidid-9.ebuild b/media-sound/a2jmidid/a2jmidid-9.ebuild
20 index 62228ef8c0d..1d5c181d312 100644
21 --- a/media-sound/a2jmidid/a2jmidid-9.ebuild
22 +++ b/media-sound/a2jmidid/a2jmidid-9.ebuild
23 @@ -1,9 +1,12 @@
24 -# Copyright 1999-2020 Gentoo Authors
25 +# Copyright 1999-2021 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=7
29
30 -inherit meson
31 +PYTHON_COMPAT=( python3_{6..10} )
32 +PYTHON_REQ_USE="threads(+)"
33 +
34 +inherit meson python-single-r1
35
36 DESCRIPTION="Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system"
37 HOMEPAGE="https://github.com/linuxaudio/a2jmidid"
38 @@ -12,7 +15,8 @@ SRC_URI="https://github.com/linuxaudio/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
39 LICENSE="GPL-2"
40 SLOT="0"
41 KEYWORDS="amd64 ~arm x86"
42 -IUSE="dbus"
43 +IUSE="dbus python"
44 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
45
46 BDEPEND="
47 virtual/pkgconfig
48 @@ -21,6 +25,7 @@ CDEPEND="
49 media-libs/alsa-lib
50 virtual/jack
51 dbus? ( sys-apps/dbus )
52 + python? ( ${PYTHON_DEPS} )
53 "
54 RDEPEND="${CDEPEND}"
55 DEPEND="${RDEPEND}"
56 @@ -34,3 +39,13 @@ src_configure() {
57
58 meson_src_configure
59 }
60 +
61 +src_install() {
62 + meson_src_install
63 +
64 + if use python; then
65 + python_fix_shebang "${ED}"
66 + else
67 + rm "${ED}/usr/bin/a2j_control" || die
68 + fi
69 +}
70
71 diff --git a/media-sound/a2jmidid/a2jmidid-9999.ebuild b/media-sound/a2jmidid/a2jmidid-9999.ebuild
72 index 7609deb0eba..eeb15605c52 100644
73 --- a/media-sound/a2jmidid/a2jmidid-9999.ebuild
74 +++ b/media-sound/a2jmidid/a2jmidid-9999.ebuild
75 @@ -1,9 +1,12 @@
76 -# Copyright 1999-2019 Gentoo Authors
77 +# Copyright 1999-2021 Gentoo Authors
78 # Distributed under the terms of the GNU General Public License v2
79
80 EAPI=7
81
82 -inherit meson git-r3
83 +PYTHON_COMPAT=( python3_{6..10} )
84 +PYTHON_REQ_USE="threads(+)"
85 +
86 +inherit meson python-single-r1 git-r3
87
88 DESCRIPTION="Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system"
89 HOMEPAGE="https://github.com/linuxaudio/a2jmidid"
90 @@ -12,7 +15,8 @@ EGIT_REPO_URI="https://github.com/linuxaudio/a2jmidid.git"
91 LICENSE="GPL-2"
92 SLOT="0"
93 KEYWORDS=""
94 -IUSE="dbus"
95 +IUSE="dbus python"
96 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
97
98 BDEPEND="
99 virtual/pkgconfig
100 @@ -21,6 +25,7 @@ CDEPEND="
101 media-libs/alsa-lib
102 virtual/jack
103 dbus? ( sys-apps/dbus )
104 + python? ( ${PYTHON_DEPS} )
105 "
106 RDEPEND="${CDEPEND}"
107 DEPEND="${RDEPEND}"
108 @@ -34,3 +39,13 @@ src_configure() {
109
110 meson_src_configure
111 }
112 +
113 +src_install() {
114 + meson_src_install
115 +
116 + if use python; then
117 + python_fix_shebang "${ED}"
118 + else
119 + rm "${ED}/usr/bin/a2j_control" || die
120 + fi
121 +}