public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/a2jmidid/
Date: Thu,  1 Jul 2021 05:02:50 +0000 (UTC)	[thread overview]
Message-ID: <1625115635.5f5c7b85b427f0a26cf6fed2d29fe8a7e8da33d0.fordfrog@gentoo> (raw)

commit:     5f5c7b85b427f0a26cf6fed2d29fe8a7e8da33d0
Author:     Nikita Zlobin <nick87720z <AT> gmail <DOT> com>
AuthorDate: Wed Jun 30 19:02:19 2021 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Thu Jul  1 05:00:35 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f5c7b85

media-sound/a2jmidid: python support is back

Bug: https://bugs.gentoo.org/798411
Signed-off-by: Nikita Zlobin <nick87720z <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/21418
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-sound/a2jmidid/a2jmidid-9.ebuild    | 21 ++++++++++++++++++---
 media-sound/a2jmidid/a2jmidid-9999.ebuild | 21 ++++++++++++++++++---
 2 files changed, 36 insertions(+), 6 deletions(-)

diff --git a/media-sound/a2jmidid/a2jmidid-9.ebuild b/media-sound/a2jmidid/a2jmidid-9.ebuild
index 62228ef8c0d..1d5c181d312 100644
--- a/media-sound/a2jmidid/a2jmidid-9.ebuild
+++ b/media-sound/a2jmidid/a2jmidid-9.ebuild
@@ -1,9 +1,12 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit meson
+PYTHON_COMPAT=( python3_{6..10} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit meson python-single-r1
 
 DESCRIPTION="Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system"
 HOMEPAGE="https://github.com/linuxaudio/a2jmidid"
@@ -12,7 +15,8 @@ SRC_URI="https://github.com/linuxaudio/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ~arm x86"
-IUSE="dbus"
+IUSE="dbus python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 BDEPEND="
 	virtual/pkgconfig
@@ -21,6 +25,7 @@ CDEPEND="
 	media-libs/alsa-lib
 	virtual/jack
 	dbus? ( sys-apps/dbus )
+	python? ( ${PYTHON_DEPS} )
 "
 RDEPEND="${CDEPEND}"
 DEPEND="${RDEPEND}"
@@ -34,3 +39,13 @@ src_configure() {
 
 	meson_src_configure
 }
+
+src_install() {
+	meson_src_install
+
+	if use python; then
+		python_fix_shebang "${ED}"
+	else
+		rm "${ED}/usr/bin/a2j_control" || die
+	fi
+}

diff --git a/media-sound/a2jmidid/a2jmidid-9999.ebuild b/media-sound/a2jmidid/a2jmidid-9999.ebuild
index 7609deb0eba..eeb15605c52 100644
--- a/media-sound/a2jmidid/a2jmidid-9999.ebuild
+++ b/media-sound/a2jmidid/a2jmidid-9999.ebuild
@@ -1,9 +1,12 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit meson git-r3
+PYTHON_COMPAT=( python3_{6..10} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit meson python-single-r1 git-r3
 
 DESCRIPTION="Daemon for exposing legacy ALSA sequencer applications in JACK MIDI system"
 HOMEPAGE="https://github.com/linuxaudio/a2jmidid"
@@ -12,7 +15,8 @@ EGIT_REPO_URI="https://github.com/linuxaudio/a2jmidid.git"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="dbus"
+IUSE="dbus python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 BDEPEND="
 	virtual/pkgconfig
@@ -21,6 +25,7 @@ CDEPEND="
 	media-libs/alsa-lib
 	virtual/jack
 	dbus? ( sys-apps/dbus )
+	python? ( ${PYTHON_DEPS} )
 "
 RDEPEND="${CDEPEND}"
 DEPEND="${RDEPEND}"
@@ -34,3 +39,13 @@ src_configure() {
 
 	meson_src_configure
 }
+
+src_install() {
+	meson_src_install
+
+	if use python; then
+		python_fix_shebang "${ED}"
+	else
+		rm "${ED}/usr/bin/a2j_control" || die
+	fi
+}


             reply	other threads:[~2021-07-01  5:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-01  5:02 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-10 17:51 [gentoo-commits] repo/gentoo:master commit in: media-sound/a2jmidid/ Miroslav Šulc
2024-02-03  6:56 Sam James
2024-01-11 18:20 Miroslav Šulc
2024-01-11 18:20 Miroslav Šulc
2024-01-10  8:51 Miroslav Šulc
2023-06-19  6:47 Miroslav Šulc
2023-05-04  6:59 Miroslav Šulc
2020-07-04 20:35 Michał Górny
2019-12-15 14:16 Miroslav Šulc
2019-12-15 13:43 Agostino Sarubbo
2019-12-13 14:37 Agostino Sarubbo
2019-12-13 10:01 Miroslav Šulc
2019-11-13  9:52 Miroslav Šulc
2019-09-25 13:31 Joonas Niilola
2018-04-04 17:05 Jonas Stein
2017-05-09  7:26 Alexis Ballier
2017-04-23 11:29 David Seifert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1625115635.5f5c7b85b427f0a26cf6fed2d29fe8a7e8da33d0.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox