[gentoo-commits] repo/gentoo:master commit in: dev-python/mido/

2023-12-30 Thread Michał Górny
commit: bfc248452cd2b1edc09a67d75d7d3e121f854551
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Dec 30 18:29:12 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Dec 30 18:29:12 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfc24845

dev-python/mido: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/mido/Manifest  |  2 --
 dev-python/mido/mido-1.3.0.ebuild | 30 -
 dev-python/mido/mido-1.3.1.ebuild | 40 ---
 3 files changed, 72 deletions(-)

diff --git a/dev-python/mido/Manifest b/dev-python/mido/Manifest
index f2ed50fa4159..5aa1724421c4 100644
--- a/dev-python/mido/Manifest
+++ b/dev-python/mido/Manifest
@@ -1,3 +1 @@
-DIST mido-1.3.0.tar.gz 121330 BLAKE2B 
bf6a20e12b609dc89600fa3b93ccf857fe9aad47ea71564773280c5cf0069b59deec3f8f7263d9949ccf0848b2b73e3e904057c3645069097a85469c8d78a391
 SHA512 
7e91daa704e72204af30af9c16a2e712a60794f8180c49d78de870381d50aac31029c01ae23fbb7c00947e299c1feba89622ea2648d54bd8786f497cf0a1bd20
-DIST mido-1.3.1.tar.gz 124019 BLAKE2B 
0d132d3f993b0f6d663b0347c7286e5d0d6bf32fe164bc1ccdd980ebce0edb83e00e37ab1f62759111b6e3b5b32edd6b822abbec208c93abe14d884de3cf490a
 SHA512 
a40cc8a140cbf1db815cad9b03c7f91e32292cf25aaea2b45613cbb4f1ee573847de3c8ad8bc24a8ef3cf68c01ce166881fe7156dd445b150c6f2a14e655d968
 DIST mido-1.3.2.tar.gz 124216 BLAKE2B 
f6eb230ad8ec02a9a2f0e5e1b332a70334433a1decddb341b1c315b878bdc2e7aefed3527c408a3da9264e7344439a69bf28bd2b4d810c29e4f4278aee8303b9
 SHA512 
5f31057a972f8ecdadcd135f2ffd68f70388bb8777f6bc7fa14c84aa8c57988a4f7443283dd093930352989d8a097177c6543a38440184c705cfaf82e3aaff83

diff --git a/dev-python/mido/mido-1.3.0.ebuild 
b/dev-python/mido/mido-1.3.0.ebuild
deleted file mode 100644
index a1a52e0f5cdd..
--- a/dev-python/mido/mido-1.3.0.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-DISTUTILS_USE_PEP517=setuptools
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="MIDI Objects, a library for working with MIDI messages and ports"
-HOMEPAGE="
-   https://pypi.org/project/mido/
-   https://github.com/mido/mido
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="+portmidi rtmidi"
-
-RDEPEND="
-   >=dev-python/packaging-23.1[${PYTHON_USEDEP}]
-   portmidi? ( media-libs/portmidi )
-   rtmidi? ( dev-python/python-rtmidi[${PYTHON_USEDEP}] )
-"
-
-distutils_enable_sphinx docs \
-   dev-python/sphinx-rtd-theme
-distutils_enable_tests pytest

diff --git a/dev-python/mido/mido-1.3.1.ebuild 
b/dev-python/mido/mido-1.3.1.ebuild
deleted file mode 100644
index fc7fb16de40f..
--- a/dev-python/mido/mido-1.3.1.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-DISTUTILS_USE_PEP517=setuptools
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="MIDI Objects, a library for working with MIDI messages and ports"
-HOMEPAGE="
-   https://pypi.org/project/mido/
-   https://github.com/mido/mido
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="+portmidi rtmidi"
-
-RDEPEND="
-   >=dev-python/packaging-23.1[${PYTHON_USEDEP}]
-   portmidi? ( media-libs/portmidi )
-   rtmidi? ( dev-python/python-rtmidi[${PYTHON_USEDEP}] )
-"
-
-distutils_enable_sphinx docs \
-   dev-python/sphinx-rtd-theme
-distutils_enable_tests pytest
-
-python_test() {
-   local EPYTEST_DESELECT=(
-   # performance test
-   tests/midifiles/test_tracks.py::test_merge_large_midifile
-   )
-
-   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-   epytest
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/mido/

2023-12-15 Thread Michał Górny
commit: 653e4f1a3f178f7f66edaadd9b9eeeb72dc47836
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Dec 16 03:12:35 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Dec 16 04:01:53 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=653e4f1a

dev-python/mido: Bump to 1.3.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/mido/Manifest  |  1 +
 dev-python/mido/mido-1.3.2.ebuild | 40 +++
 2 files changed, 41 insertions(+)

diff --git a/dev-python/mido/Manifest b/dev-python/mido/Manifest
index b1b39338d4c6..f2ed50fa4159 100644
--- a/dev-python/mido/Manifest
+++ b/dev-python/mido/Manifest
@@ -1,2 +1,3 @@
 DIST mido-1.3.0.tar.gz 121330 BLAKE2B 
bf6a20e12b609dc89600fa3b93ccf857fe9aad47ea71564773280c5cf0069b59deec3f8f7263d9949ccf0848b2b73e3e904057c3645069097a85469c8d78a391
 SHA512 
7e91daa704e72204af30af9c16a2e712a60794f8180c49d78de870381d50aac31029c01ae23fbb7c00947e299c1feba89622ea2648d54bd8786f497cf0a1bd20
 DIST mido-1.3.1.tar.gz 124019 BLAKE2B 
0d132d3f993b0f6d663b0347c7286e5d0d6bf32fe164bc1ccdd980ebce0edb83e00e37ab1f62759111b6e3b5b32edd6b822abbec208c93abe14d884de3cf490a
 SHA512 
a40cc8a140cbf1db815cad9b03c7f91e32292cf25aaea2b45613cbb4f1ee573847de3c8ad8bc24a8ef3cf68c01ce166881fe7156dd445b150c6f2a14e655d968
+DIST mido-1.3.2.tar.gz 124216 BLAKE2B 
f6eb230ad8ec02a9a2f0e5e1b332a70334433a1decddb341b1c315b878bdc2e7aefed3527c408a3da9264e7344439a69bf28bd2b4d810c29e4f4278aee8303b9
 SHA512 
5f31057a972f8ecdadcd135f2ffd68f70388bb8777f6bc7fa14c84aa8c57988a4f7443283dd093930352989d8a097177c6543a38440184c705cfaf82e3aaff83

diff --git a/dev-python/mido/mido-1.3.2.ebuild 
b/dev-python/mido/mido-1.3.2.ebuild
new file mode 100644
index ..fc7fb16de40f
--- /dev/null
+++ b/dev-python/mido/mido-1.3.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="MIDI Objects, a library for working with MIDI messages and ports"
+HOMEPAGE="
+   https://pypi.org/project/mido/
+   https://github.com/mido/mido
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+portmidi rtmidi"
+
+RDEPEND="
+   >=dev-python/packaging-23.1[${PYTHON_USEDEP}]
+   portmidi? ( media-libs/portmidi )
+   rtmidi? ( dev-python/python-rtmidi[${PYTHON_USEDEP}] )
+"
+
+distutils_enable_sphinx docs \
+   dev-python/sphinx-rtd-theme
+distutils_enable_tests pytest
+
+python_test() {
+   local EPYTEST_DESELECT=(
+   # performance test
+   tests/midifiles/test_tracks.py::test_merge_large_midifile
+   )
+
+   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+   epytest
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/mido/

2023-12-15 Thread Michał Górny
commit: 737f955030be620d890d71d66ee130a9b423afb7
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Dec 15 08:52:53 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Dec 15 08:59:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=737f9550

dev-python/mido: Bump to 1.3.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/mido/Manifest  |  1 +
 dev-python/mido/mido-1.3.1.ebuild | 40 +++
 2 files changed, 41 insertions(+)

diff --git a/dev-python/mido/Manifest b/dev-python/mido/Manifest
index c53baa6af83f..b1b39338d4c6 100644
--- a/dev-python/mido/Manifest
+++ b/dev-python/mido/Manifest
@@ -1 +1,2 @@
 DIST mido-1.3.0.tar.gz 121330 BLAKE2B 
bf6a20e12b609dc89600fa3b93ccf857fe9aad47ea71564773280c5cf0069b59deec3f8f7263d9949ccf0848b2b73e3e904057c3645069097a85469c8d78a391
 SHA512 
7e91daa704e72204af30af9c16a2e712a60794f8180c49d78de870381d50aac31029c01ae23fbb7c00947e299c1feba89622ea2648d54bd8786f497cf0a1bd20
+DIST mido-1.3.1.tar.gz 124019 BLAKE2B 
0d132d3f993b0f6d663b0347c7286e5d0d6bf32fe164bc1ccdd980ebce0edb83e00e37ab1f62759111b6e3b5b32edd6b822abbec208c93abe14d884de3cf490a
 SHA512 
a40cc8a140cbf1db815cad9b03c7f91e32292cf25aaea2b45613cbb4f1ee573847de3c8ad8bc24a8ef3cf68c01ce166881fe7156dd445b150c6f2a14e655d968

diff --git a/dev-python/mido/mido-1.3.1.ebuild 
b/dev-python/mido/mido-1.3.1.ebuild
new file mode 100644
index ..fc7fb16de40f
--- /dev/null
+++ b/dev-python/mido/mido-1.3.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="MIDI Objects, a library for working with MIDI messages and ports"
+HOMEPAGE="
+   https://pypi.org/project/mido/
+   https://github.com/mido/mido
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+portmidi rtmidi"
+
+RDEPEND="
+   >=dev-python/packaging-23.1[${PYTHON_USEDEP}]
+   portmidi? ( media-libs/portmidi )
+   rtmidi? ( dev-python/python-rtmidi[${PYTHON_USEDEP}] )
+"
+
+distutils_enable_sphinx docs \
+   dev-python/sphinx-rtd-theme
+distutils_enable_tests pytest
+
+python_test() {
+   local EPYTEST_DESELECT=(
+   # performance test
+   tests/midifiles/test_tracks.py::test_merge_large_midifile
+   )
+
+   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+   epytest
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/mido/

2023-07-24 Thread Michał Górny
commit: 56041acd89cc4f61469b7adea0b6dba4f4eb8cc5
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Jul 24 11:19:17 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Jul 24 11:32:10 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56041acd

dev-python/mido: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/mido/Manifest   |  1 -
 dev-python/mido/mido-1.2.10.ebuild | 26 --
 2 files changed, 27 deletions(-)

diff --git a/dev-python/mido/Manifest b/dev-python/mido/Manifest
index e417faf621d2..c53baa6af83f 100644
--- a/dev-python/mido/Manifest
+++ b/dev-python/mido/Manifest
@@ -1,2 +1 @@
-DIST mido-1.2.10.tar.gz 103070 BLAKE2B 
84e39cd7f52947f50dc31bac5abb7752e736c867817fbd711e768f1ef182990671633c24bb5726fb428f312f2497d15da560b307ddfeea3399d06330183e9668
 SHA512 
f21040acda9d084b7449ba52c3d036c637a172a84cdf6975adab999d78d24977be0cba3bd7287253e4a3b6de5044ef01a82de6d19316a22410bc96e9eca6128f
 DIST mido-1.3.0.tar.gz 121330 BLAKE2B 
bf6a20e12b609dc89600fa3b93ccf857fe9aad47ea71564773280c5cf0069b59deec3f8f7263d9949ccf0848b2b73e3e904057c3645069097a85469c8d78a391
 SHA512 
7e91daa704e72204af30af9c16a2e712a60794f8180c49d78de870381d50aac31029c01ae23fbb7c00947e299c1feba89622ea2648d54bd8786f497cf0a1bd20

diff --git a/dev-python/mido/mido-1.2.10.ebuild 
b/dev-python/mido/mido-1.2.10.ebuild
deleted file mode 100644
index 4be10b4cd23d..
--- a/dev-python/mido/mido-1.2.10.ebuild
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} )
-DISTUTILS_USE_PEP517=setuptools
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="MIDI Objects, a library for working with MIDI messages and ports"
-HOMEPAGE="
-   https://pypi.org/project/mido/
-   https://github.com/mido/mido
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="+portmidi rtmidi"
-
-RDEPEND="portmidi? ( media-libs/portmidi )
-   rtmidi? ( dev-python/python-rtmidi[${PYTHON_USEDEP}] )"
-
-distutils_enable_sphinx docs
-distutils_enable_tests pytest



[gentoo-commits] repo/gentoo:master commit in: dev-python/mido/

2023-07-22 Thread Michał Górny
commit: b9a205c8a9b24bb12efbe407d98853563fe6abd4
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Jul 22 07:29:59 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Jul 22 13:01:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9a205c8

dev-python/mido: Add doc-dep on dev-python/sphinx-rtd-theme

Closes: https://bugs.gentoo.org/910670
Signed-off-by: Michał Górny  gentoo.org>

 dev-python/mido/mido-1.3.0.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-python/mido/mido-1.3.0.ebuild 
b/dev-python/mido/mido-1.3.0.ebuild
index 8f490c5ce52b..a1a52e0f5cdd 100644
--- a/dev-python/mido/mido-1.3.0.ebuild
+++ b/dev-python/mido/mido-1.3.0.ebuild
@@ -25,5 +25,6 @@ RDEPEND="
rtmidi? ( dev-python/python-rtmidi[${PYTHON_USEDEP}] )
 "
 
-distutils_enable_sphinx docs
+distutils_enable_sphinx docs \
+   dev-python/sphinx-rtd-theme
 distutils_enable_tests pytest



[gentoo-commits] repo/gentoo:master commit in: dev-python/mido/

2023-07-21 Thread Michał Górny
commit: b339cd569e224a3591275d237eb1f0656373df1b
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Jul 22 05:01:33 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Jul 22 05:01:33 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b339cd56

dev-python/mido: Bump to 1.3.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/mido/Manifest  |  1 +
 dev-python/mido/mido-1.3.0.ebuild | 29 +
 2 files changed, 30 insertions(+)

diff --git a/dev-python/mido/Manifest b/dev-python/mido/Manifest
index 49be2c8dad04..e417faf621d2 100644
--- a/dev-python/mido/Manifest
+++ b/dev-python/mido/Manifest
@@ -1 +1,2 @@
 DIST mido-1.2.10.tar.gz 103070 BLAKE2B 
84e39cd7f52947f50dc31bac5abb7752e736c867817fbd711e768f1ef182990671633c24bb5726fb428f312f2497d15da560b307ddfeea3399d06330183e9668
 SHA512 
f21040acda9d084b7449ba52c3d036c637a172a84cdf6975adab999d78d24977be0cba3bd7287253e4a3b6de5044ef01a82de6d19316a22410bc96e9eca6128f
+DIST mido-1.3.0.tar.gz 121330 BLAKE2B 
bf6a20e12b609dc89600fa3b93ccf857fe9aad47ea71564773280c5cf0069b59deec3f8f7263d9949ccf0848b2b73e3e904057c3645069097a85469c8d78a391
 SHA512 
7e91daa704e72204af30af9c16a2e712a60794f8180c49d78de870381d50aac31029c01ae23fbb7c00947e299c1feba89622ea2648d54bd8786f497cf0a1bd20

diff --git a/dev-python/mido/mido-1.3.0.ebuild 
b/dev-python/mido/mido-1.3.0.ebuild
new file mode 100644
index ..8f490c5ce52b
--- /dev/null
+++ b/dev-python/mido/mido-1.3.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="MIDI Objects, a library for working with MIDI messages and ports"
+HOMEPAGE="
+   https://pypi.org/project/mido/
+   https://github.com/mido/mido
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+portmidi rtmidi"
+
+RDEPEND="
+   >=dev-python/packaging-23.1[${PYTHON_USEDEP}]
+   portmidi? ( media-libs/portmidi )
+   rtmidi? ( dev-python/python-rtmidi[${PYTHON_USEDEP}] )
+"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest



[gentoo-commits] repo/gentoo:master commit in: dev-python/mido/files/

2022-09-28 Thread Marek Szuba
commit: 645cb4f8e13fab06313ed93fe834a1072a5fe1f6
Author: Marek Szuba  gentoo  org>
AuthorDate: Thu Sep 29 00:41:05 2022 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Thu Sep 29 00:41:05 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=645cb4f8

dev-python/mido: remove stray patch

Signed-off-by: Marek Szuba  gentoo.org>

 .../python-rtmidi-1.4.9-unbundle_rtmidi.patch  | 60 --
 1 file changed, 60 deletions(-)

diff --git a/dev-python/mido/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch 
b/dev-python/mido/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch
deleted file mode 100644
index ecd9f53b108c..
--- a/dev-python/mido/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch
+++ /dev/null
@@ -1,60 +0,0 @@
 a/setup.py
-+++ b/setup.py
-@@ -102,7 +102,7 @@
- 
- # Set up options for compiling the _rtmidi Extension
- if cythonize:
--sources = [join(SRC_DIR, "_rtmidi.pyx"), join(SRC_DIR, "rtmidi", 
"RtMidi.cpp")]
-+sources = [join(SRC_DIR, "_rtmidi.pyx")]
- elif exists(join(SRC_DIR, "_rtmidi.cpp")):
- cythonize = lambda x: x  # noqa
- sources = [join(SRC_DIR, "_rtmidi.cpp"), join(SRC_DIR, "rtmidi", 
"RtMidi.cpp")]
-@@ -145,18 +145,18 @@
- 
- 
- if sys.platform.startswith('linux'):
--if alsa and find_library('asound'):
--define_macros.append(("__LINUX_ALSA__", None))
--libraries.append('asound')
--
--if jack:
--check_for_jack(define_macros, libraries)
--
- if not find_library('pthread'):
- sys.exit("The 'pthread' library is required to build python-rtmidi on"
-  "Linux. Please install the libc6 development package.")
-+if not find_library('rtmidi'):
-+sys.exit("Failed to find librtmidi")
- 
- libraries.append("pthread")
-+
-+res = subprocess.check_output(['pkg-config', '--variable', 'includedir', 
'rtmidi'])
-+rtmidi_include_dir = res.decode().strip()
-+include_dirs.append(rtmidi_include_dir)
-+libraries.append('rtmidi')
- elif sys.platform.startswith('darwin'):
- if jack:
- check_for_jack(define_macros, libraries)
-@@ -197,7 +197,7 @@
- # Finally, set up our distribution
- setup(
- packages=['rtmidi'],
--ext_modules=cythonize(extensions),
-+ext_modules=cythonize(extensions, include_path=[ rtmidi_include_dir ]),
- tests_require=[],  # Test dependencies are handled by tox
- # On systems without a RTC (e.g. Raspberry Pi), system time will be the
- # Unix epoch when booted without network connection, which makes zip fail,
 a/tests/test_rtmidi.py
-+++ b/tests/test_rtmidi.py
-@@ -54,11 +54,6 @@
- else:
- self.assertEqual(res, rtmidi.API_UNSPECIFIED)
- 
--def test_get_rtmidi_version(self):
--version = rtmidi.get_rtmidi_version()
--self.assertTrue(isinstance(version, string_types))
--self.assertEqual(version, '4.0.0')
--
- 
- class BaseTests:
- NOTE_ON = [0x90, 48, 100]



[gentoo-commits] repo/gentoo:master commit in: dev-python/mido/, dev-python/mido/files/

2022-09-28 Thread Marek Szuba
commit: 33ffa7fb1ba486448a52409fd1104ddc206a4eda
Author: Marek Szuba  gentoo  org>
AuthorDate: Thu Sep 29 00:38:34 2022 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Thu Sep 29 00:39:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33ffa7fb

dev-python/mido: new package, add 1.2.10

Signed-off-by: Marek Szuba  gentoo.org>

 dev-python/mido/Manifest   |  1 +
 .../python-rtmidi-1.4.9-unbundle_rtmidi.patch  | 60 ++
 dev-python/mido/metadata.xml   | 16 ++
 dev-python/mido/mido-1.2.10.ebuild | 27 ++
 4 files changed, 104 insertions(+)

diff --git a/dev-python/mido/Manifest b/dev-python/mido/Manifest
new file mode 100644
index ..49be2c8dad04
--- /dev/null
+++ b/dev-python/mido/Manifest
@@ -0,0 +1 @@
+DIST mido-1.2.10.tar.gz 103070 BLAKE2B 
84e39cd7f52947f50dc31bac5abb7752e736c867817fbd711e768f1ef182990671633c24bb5726fb428f312f2497d15da560b307ddfeea3399d06330183e9668
 SHA512 
f21040acda9d084b7449ba52c3d036c637a172a84cdf6975adab999d78d24977be0cba3bd7287253e4a3b6de5044ef01a82de6d19316a22410bc96e9eca6128f

diff --git a/dev-python/mido/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch 
b/dev-python/mido/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch
new file mode 100644
index ..ecd9f53b108c
--- /dev/null
+++ b/dev-python/mido/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch
@@ -0,0 +1,60 @@
+--- a/setup.py
 b/setup.py
+@@ -102,7 +102,7 @@
+ 
+ # Set up options for compiling the _rtmidi Extension
+ if cythonize:
+-sources = [join(SRC_DIR, "_rtmidi.pyx"), join(SRC_DIR, "rtmidi", 
"RtMidi.cpp")]
++sources = [join(SRC_DIR, "_rtmidi.pyx")]
+ elif exists(join(SRC_DIR, "_rtmidi.cpp")):
+ cythonize = lambda x: x  # noqa
+ sources = [join(SRC_DIR, "_rtmidi.cpp"), join(SRC_DIR, "rtmidi", 
"RtMidi.cpp")]
+@@ -145,18 +145,18 @@
+ 
+ 
+ if sys.platform.startswith('linux'):
+-if alsa and find_library('asound'):
+-define_macros.append(("__LINUX_ALSA__", None))
+-libraries.append('asound')
+-
+-if jack:
+-check_for_jack(define_macros, libraries)
+-
+ if not find_library('pthread'):
+ sys.exit("The 'pthread' library is required to build python-rtmidi on"
+  "Linux. Please install the libc6 development package.")
++if not find_library('rtmidi'):
++sys.exit("Failed to find librtmidi")
+ 
+ libraries.append("pthread")
++
++res = subprocess.check_output(['pkg-config', '--variable', 'includedir', 
'rtmidi'])
++rtmidi_include_dir = res.decode().strip()
++include_dirs.append(rtmidi_include_dir)
++libraries.append('rtmidi')
+ elif sys.platform.startswith('darwin'):
+ if jack:
+ check_for_jack(define_macros, libraries)
+@@ -197,7 +197,7 @@
+ # Finally, set up our distribution
+ setup(
+ packages=['rtmidi'],
+-ext_modules=cythonize(extensions),
++ext_modules=cythonize(extensions, include_path=[ rtmidi_include_dir ]),
+ tests_require=[],  # Test dependencies are handled by tox
+ # On systems without a RTC (e.g. Raspberry Pi), system time will be the
+ # Unix epoch when booted without network connection, which makes zip fail,
+--- a/tests/test_rtmidi.py
 b/tests/test_rtmidi.py
+@@ -54,11 +54,6 @@
+ else:
+ self.assertEqual(res, rtmidi.API_UNSPECIFIED)
+ 
+-def test_get_rtmidi_version(self):
+-version = rtmidi.get_rtmidi_version()
+-self.assertTrue(isinstance(version, string_types))
+-self.assertEqual(version, '4.0.0')
+-
+ 
+ class BaseTests:
+ NOTE_ON = [0x90, 48, 100]

diff --git a/dev-python/mido/metadata.xml b/dev-python/mido/metadata.xml
new file mode 100644
index ..0751ee0b29fc
--- /dev/null
+++ b/dev-python/mido/metadata.xml
@@ -0,0 +1,16 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   mare...@gentoo.org
+   Marek Szuba
+   
+   
+   mido
+   mido/mido
+   
+   
+   Support using 
media-libs/portmidi as MIDI back-end
+   Support using media-libs/rtmidi 
as MIDI back-end
+   
+

diff --git a/dev-python/mido/mido-1.2.10.ebuild 
b/dev-python/mido/mido-1.2.10.ebuild
new file mode 100644
index ..3288fa2bd953
--- /dev/null
+++ b/dev-python/mido/mido-1.2.10.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1
+
+DESCRIPTION="MIDI Objects, a library for working with MIDI messages and ports"
+HOMEPAGE="
+   https://pypi.org/project/mido/
+   https://github.com/mido/mido
+"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+portmidi rtmidi"
+
+RDEPEND="portmidi? ( media-libs/portmidi )
+   rtmidi? (