diff options
Diffstat (limited to 'dev-python/python-rtmidi/files')
| -rw-r--r-- | dev-python/python-rtmidi/files/python-rtmidi-1.5.1-build_backend.patch | 33 | ||||
| -rw-r--r-- | dev-python/python-rtmidi/files/python-rtmidi-1.5.1-unbundle_rtmidi.patch | 55 |
2 files changed, 88 insertions, 0 deletions
diff --git a/dev-python/python-rtmidi/files/python-rtmidi-1.5.1-build_backend.patch b/dev-python/python-rtmidi/files/python-rtmidi-1.5.1-build_backend.patch new file mode 100644 index 000000000000..fdb2a14b7c7d --- /dev/null +++ b/dev-python/python-rtmidi/files/python-rtmidi-1.5.1-build_backend.patch @@ -0,0 +1,33 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,14 +1,14 @@ + [build-system] +-# https://thiblahute.gitlab.io/mesonpep517/ +-build-backend = "mesonpep517.buildapi" ++build-backend = "mesonpy" + requires = [ + "cython", + "wheel", +- "mesonpep517 @ git+https://gitlab.com/SpotlightKid/mesonpep517.git@rtmidi", ++ "meson-python", + "ninja" + ] + + [project] ++name = "python-rtmidi" + description = "A Python binding for the RtMidi C++ library implemented using Cython." + authors = [ + { name="Christopher Arndt", email="info@chrisarndt.de" }, +@@ -41,12 +41,6 @@ + "music", + "rtmidi", + ] +-meson-python-option-name = "python" +-meson-options = [ +- "-Dwheel=true", +- "-Dverbose=true", +- "--buildtype=plain" +-] + + [project.license] + file = "LICENSE.md" diff --git a/dev-python/python-rtmidi/files/python-rtmidi-1.5.1-unbundle_rtmidi.patch b/dev-python/python-rtmidi/files/python-rtmidi-1.5.1-unbundle_rtmidi.patch new file mode 100644 index 000000000000..1501a46738d4 --- /dev/null +++ b/dev-python/python-rtmidi/files/python-rtmidi-1.5.1-unbundle_rtmidi.patch @@ -0,0 +1,55 @@ +--- a/meson.build ++++ b/meson.build +@@ -11,6 +11,8 @@ + + cpp = meson.get_compiler('cpp') + ++rtmidi_dep = dependency('rtmidi') ++ + # Jack API (portable) + jack2_dep = dependency('jack', version: '>=1.9.11', required: false) + jack1_dep = dependency('jack', version: ['>=0.125.0', '<1.0'], required: false) +--- a/rtmidi/meson.build ++++ b/rtmidi/meson.build +@@ -1,7 +1,7 @@ + # https://mesonbuild.com/Python-module.html + + defines = [] +-dependencies = [python.dependency()] ++dependencies = [python.dependency(), rtmidi_dep] + link_args = [] + + if host_machine.system() == 'darwin' and coremidi_dep.found() and get_option('coremidi') +@@ -47,11 +47,10 @@ + # Build and install the extension module + module = python.extension_module( + '_rtmidi', +- [rtmidi_cython, rtmidi_sources], ++ [rtmidi_cython], + dependencies: dependencies, + cpp_args: defines, + link_args: link_args, +- include_directories: rtmidi_inc, + install: true, + subdir: 'rtmidi', + ) +--- a/src/meson.build ++++ b/src/meson.build +@@ -1,9 +1,5 @@ + fs = import('fs') + +-rtmidi_sources = files([ +- 'rtmidi/RtMidi.cpp', +-]) +-rtmidi_inc = include_directories('.', 'rtmidi') + rtmidi_mod_pyx = '_rtmidi.pyx' + rtmidi_mod_cpp = '_rtmidi.cpp' + +@@ -16,7 +12,6 @@ + 'rtmidi_cython', + output: rtmidi_mod_cpp, + input: rtmidi_mod_pyx, +- depend_files: [rtmidi_sources], + command: [cython, '-3', '--cplus', '-o', '@OUTPUT@', '@INPUT@'], + ) + else |
