diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-12-25 18:24:51 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-12-25 18:24:51 +0000 |
| commit | bc578394ba4c1b3769658c36b92b57735f4abcd1 (patch) | |
| tree | 6c14eb76d182c6c7090429c865ad92473833511c /dev-python/python-rtmidi | |
| parent | 52a7cd31ed4febefa561c464334fa209e531d2a6 (diff) | |
| download | baldeagleos-repo-bc578394ba4c1b3769658c36b92b57735f4abcd1.tar.gz baldeagleos-repo-bc578394ba4c1b3769658c36b92b57735f4abcd1.tar.xz baldeagleos-repo-bc578394ba4c1b3769658c36b92b57735f4abcd1.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.8.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/python-rtmidi/Manifest b/dev-python/python-rtmidi/Manifest index c7567cc691a6..dc8e66326168 100644 --- a/dev-python/python-rtmidi/Manifest +++ b/dev-python/python-rtmidi/Manifest @@ -1 +1,2 @@ DIST python_rtmidi-1.5.7.tar.gz 368514 BLAKE2B 32028dff34928b1794cc178b22821fe8e01bff36d18b17b8673c763b21ca7ef85a6cb3ee62adcddbaf0b655079e7b8819ba5a28e58b8d5713015728cd6648246 SHA512 23c88cd307b5bc937920db9b39d0423043fb47878d679f4d721a025368a01e23b8e72749e1146da3277d37a20a9c5486e2c40c2a907c5efc5418567e97c3de91 +DIST python_rtmidi-1.5.8.tar.gz 368130 BLAKE2B 99fecb8cd003431b5fca31f436a77f27a50076a02ea7f92019800d0816c968f032bd31d236a13d67b2ee9ebdc341d16955675867a8dd345e76282131b781ef13 SHA512 0f2b949a2a53f813a891bc391ce0369fbbec0d6e898a9ace2925adc5714d791ce1f4df133edf34c87b3336cb3ab4ad70851a42124241ec1707f32f66a778dc18 diff --git a/dev-python/python-rtmidi/python-rtmidi-1.5.8.ebuild b/dev-python/python-rtmidi/python-rtmidi-1.5.8.ebuild new file mode 100644 index 000000000000..1d3e1e0170e9 --- /dev/null +++ b/dev-python/python-rtmidi/python-rtmidi-1.5.8.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,12} ) +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[${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 +} |
