diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-09-28 18:18:46 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-09-28 18:18:46 +0000 |
| commit | 07c821c2d8e7a33d4cc4b2ae53720cf3eccea8d1 (patch) | |
| tree | 39241caf13dbe4cc524a762dcfb73e76afd4c575 /dev-python/python-rtmidi | |
| parent | e5f6e321d3b4be52d5cc017942ec8e8fab26189d (diff) | |
| download | baldeagleos-repo-07c821c2d8e7a33d4cc4b2ae53720cf3eccea8d1.tar.gz baldeagleos-repo-07c821c2d8e7a33d4cc4b2ae53720cf3eccea8d1.tar.xz baldeagleos-repo-07c821c2d8e7a33d4cc4b2ae53720cf3eccea8d1.zip | |
Adding metadata
Diffstat (limited to 'dev-python/python-rtmidi')
| -rw-r--r-- | dev-python/python-rtmidi/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/python-rtmidi/python-rtmidi-1.5.5.ebuild | 1 | ||||
| -rw-r--r-- | dev-python/python-rtmidi/python-rtmidi-1.5.6.ebuild | 60 |
3 files changed, 62 insertions, 0 deletions
diff --git a/dev-python/python-rtmidi/Manifest b/dev-python/python-rtmidi/Manifest index f3447b256880..54e29be324dc 100644 --- a/dev-python/python-rtmidi/Manifest +++ b/dev-python/python-rtmidi/Manifest @@ -1 +1,2 @@ DIST python_rtmidi-1.5.5.tar.gz 357562 BLAKE2B db854be574c857d0fe90b6a0f7b23de6d868850cef00b327eb6013a12cbf464d0280584c86b09a232f94b5109bc941de1a5a74727c668b3bd4a7ebb77fef25fb SHA512 6ae8f77d74ee9b0fdfb141ed0924dab6eda8c87f483e7315dbca898d8aee6aa7cc883085a396f6d8e292ccd83e1d6e9f99f19667a24d8ca34463e91332f85538 +DIST python_rtmidi-1.5.6.tar.gz 367355 BLAKE2B c544669f51e12e82fe38b68e83078ac01463fcff54941c52fad80a1dd3d55985352dea259bad5ba2f70a895a80d5ad55c0249f9ef6fe4e7b81b84582a5855ef8 SHA512 e834159b07fb0b2d05a511ccd2d5b2a86d25f7b0d3a2b92ebe73edf28cd2a035a7aea0460adc6cf6836535da2815ccc0f986731bc9a23bbb19bc7d559d0ef955 diff --git a/dev-python/python-rtmidi/python-rtmidi-1.5.5.ebuild b/dev-python/python-rtmidi/python-rtmidi-1.5.5.ebuild index f65a3021c628..e969eaf660a5 100644 --- a/dev-python/python-rtmidi/python-rtmidi-1.5.5.ebuild +++ b/dev-python/python-rtmidi/python-rtmidi-1.5.5.ebuild @@ -32,6 +32,7 @@ RESTRICT="test" DEPEND="media-libs/rtmidi[alsa?,jack?]" RDEPEND="${DEPEND}" BDEPEND="<dev-python/cython-2.99[${PYTHON_USEDEP}] + <dev-python/meson-python-0.14.0[${PYTHON_USEDEP}] virtual/pkgconfig" PATCHES=( diff --git a/dev-python/python-rtmidi/python-rtmidi-1.5.6.ebuild b/dev-python/python-rtmidi/python-rtmidi-1.5.6.ebuild new file mode 100644 index 000000000000..f65a3021c628 --- /dev/null +++ b/dev-python/python-rtmidi/python-rtmidi-1.5.6.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11} ) +DOCS_BUILDER="sphinx" +DOCS_DEPEND="dev-python/myst-parser" +DOCS_DIR="docs" +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=meson-python + +inherit distutils-r1 docs pypi + +DESCRIPTION="Python bindings for media-libs/rtmidi implemented using Cython" +HOMEPAGE=" + https://pypi.org/project/python-rtmidi/ + https://spotlightkid.github.io/python-rtmidi/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+alsa jack" + +# Most of these tests do not play nicely with the sandbox, some only +# work with exactly the same version of rtmidi as the bundled one, and +# several fail even with disabled sandbox unless there are actual MIDI +# I/O devices present. +RESTRICT="test" + +DEPEND="media-libs/rtmidi[alsa?,jack?]" +RDEPEND="${DEPEND}" +BDEPEND="<dev-python/cython-2.99[${PYTHON_USEDEP}] + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-1.5.1-unbundle_rtmidi.patch +) + +distutils_enable_tests unittest + +src_prepare() { + distutils-r1_src_prepare + + # Just in case + rm -r src/rtmidi || die + rm src/_rtmidi.cpp || die + + # Needed by USE=doc because documentation generation happens in ${S} + # but the version.py generated by Meson end up in respective ${BUILD_DIR}s. + # The version put in ${S} should be ignored by everything except Sphinx but + # just in case, be consistent and generate it unconditionally. + sed -e "s|@VERSION@|${PV}|" < rtmidi/version.py.in > rtmidi/version.py || die +} + +python_test() { + cd "${T}" || die + eunittest "${S}"/tests +} |
