diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-24 14:55:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-24 14:55:44 +0100 |
commit | b83b16e0f6c963583f6323fe1bb12ecbd11d6f81 (patch) | |
tree | d67748047921162af2742c3e1255e3f1421f769b /dev-python/python-rtmidi | |
parent | 76617568771869151cb2a3f71939719c15dd47a2 (diff) |
gentoo auto-resync : 24:07:2023 - 14:55:44
Diffstat (limited to 'dev-python/python-rtmidi')
-rw-r--r-- | dev-python/python-rtmidi/Manifest | 3 | ||||
-rw-r--r-- | dev-python/python-rtmidi/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch | 59 | ||||
-rw-r--r-- | dev-python/python-rtmidi/python-rtmidi-1.4.9.ebuild | 52 |
3 files changed, 0 insertions, 114 deletions
diff --git a/dev-python/python-rtmidi/Manifest b/dev-python/python-rtmidi/Manifest index 68b061839f28..09cd4122a31e 100644 --- a/dev-python/python-rtmidi/Manifest +++ b/dev-python/python-rtmidi/Manifest @@ -1,7 +1,4 @@ -AUX python-rtmidi-1.4.9-unbundle_rtmidi.patch 2137 BLAKE2B b27c438fa93c00fd458fd8083302838ad0ca96c09c89f0993c6fdc09681f8eccddca53445925c1b437860faa488115d2bc33076a202a5dd730f44cef298c9831 SHA512 6d42f2fe1d533d85ae7ac32b903fc087d4932904905fd778e1979aaed3d4dd6e45db4a49ab87089d67a68ac24b724ef0c7e52eb815badb98d972d3de8cd70677 AUX python-rtmidi-1.5.1-unbundle_rtmidi.patch 1455 BLAKE2B 2cc76ace5758131a069194e9d30c8288ed93a261d41a2b4cf0294e2b4fc7ebee9e0c43b4377143ae8074a03dcc2abf13fd85fdebeebd321efce00e25e43057b1 SHA512 92c11d878018ded30dffa0d06006f8471054321af8d9f58268d4d899121dac66712ddc3a53285c19293fb2d52d4d054b0d803c559e9c01cb8c8f161ce5f2c734 -DIST python-rtmidi-1.4.9.tar.gz 251238 BLAKE2B dda4052e893839f88a6756306f8ff4e89ee66ad9716d374efbb7b92a8e9074e98c8d5df0cc82aa3c6e0c77a78fe9b997079623a5147c03eeea9128dfb7605215 SHA512 91c5a0f807549fbe9d87df6e40b8c3db0f9be753616ba51804900195d02120cd972e39c69dd99e60e4ea1b1d9831d0b956b64ce71b2fe03422efc57bccf5cb70 DIST python_rtmidi-1.5.4.tar.gz 327631 BLAKE2B c4bdbca7e011922eddb7995818cf471d0a3a5243c407b6ca82afad666af367beba4eec0a594ee26a2aca513b85f7964b81f9bd9d5ca095a03219382797402525 SHA512 2468ea12fcf6b741eefab7673a7d5d39322fccc853bd6e69ba77e90d6ee3e2681966d9886774386ddb395ee045fd266501c090707894bae5e47cf142c46fd0a4 -EBUILD python-rtmidi-1.4.9.ebuild 1147 BLAKE2B 7a49aced93d0a8aad757f57d91790f49fe61d78bafbd06685f96fcb76ad4b3499ebc4bf36188867a221f4e240d0212f89da47a6b23f498aa18085bec705ac819 SHA512 fb429d92746f974c6b23ac275389b00a331685e89ff4d76c85535f4e4967bf9b5752688b4cb7020197647bf43eb7d02d9c1796bb614b39a4ca6b96c72c7e817d EBUILD python-rtmidi-1.5.4.ebuild 1565 BLAKE2B bc0dde3ce0327ad6a30fda46af7373ade34ec01d2aff0e970b015fe0455915e5d47994b336e89d12f408e90b17f663d29ba6b6af876d9e68b2d2d02ce7a2f084 SHA512 f1617c148c3450782d4c355a572c621e7c8b40288fe55c615c9d4ea71127152979c7372ed0397643b577f097d1b177d557b91e1b0f50551dc18142291f5724a9 MISC metadata.xml 388 BLAKE2B b1bce0f609aae5a298c26c80c3dc3aa33eadf32c9de9da22f4a4f808d1cfd8c769b095d12f2264cf9dd04cdbec8a0fb7202b10c04bb43f9112146023aadd398d SHA512 012ad743d364b9266bef852d159235f27b172ec7fceff43737fe8a67478f991dc53532b021c02d8ffc2eea19cdc568046cf90e440afefb46dcdad275a33f71e3 diff --git a/dev-python/python-rtmidi/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch b/dev-python/python-rtmidi/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch deleted file mode 100644 index 45cece4b2eb9..000000000000 --- a/dev-python/python-rtmidi/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch +++ /dev/null @@ -1,59 +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,13 @@ - - - if sys.platform.startswith('linux'): -- if alsa and find_library('asound'): -- define_macros.append(("__LINUX_ALSA__", None)) -- libraries.append('asound') -+ if not find_library('rtmidi'): -+ sys.exit("Failed to find librtmidi") - -- 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.") -- -- 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 +192,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/python-rtmidi/python-rtmidi-1.4.9.ebuild b/dev-python/python-rtmidi/python-rtmidi-1.4.9.ebuild deleted file mode 100644 index 69f7947f93cd..000000000000 --- a/dev-python/python-rtmidi/python-rtmidi-1.4.9.ebuild +++ /dev/null @@ -1,52 +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 -PYPI_NO_NORMALIZE=1 - -inherit distutils-r1 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.4.9-unbundle_rtmidi.patch -) - -distutils_enable_sphinx docs -distutils_enable_tests unittest - -src_prepare() { - distutils-r1_src_prepare - - # Just in case - rm -r src/rtmidi || die - rm src/_rtmidi.cpp || die -} - -python_test() { - cd "${T}" || die - eunittest "${S}"/tests -} |