diff options
author | 2019-12-17 22:05:50 +0100 | |
---|---|---|
committer | 2019-12-17 22:06:24 +0100 | |
commit | 641331e41b136dfb1d8506a159c2ea45fbd33fc8 (patch) | |
tree | 3ff4ed1a11c153b4c87d4e59e112268a699581bc /media-libs/portmidi/files | |
parent | media-sound/din: 43.0.1 - added missing brackets (diff) | |
download | gentoo-641331e41b136dfb1d8506a159c2ea45fbd33fc8.tar.gz gentoo-641331e41b136dfb1d8506a159c2ea45fbd33fc8.tar.bz2 gentoo-641331e41b136dfb1d8506a159c2ea45fbd33fc8.zip |
media-libs/portmidi: -r3 python3
1) eapi7
2) dropped python2, added python3
3) organized deps, lifted min java up to 1.8
Closes: https://bugs.gentoo.org/550820
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-libs/portmidi/files')
-rw-r--r-- | media-libs/portmidi/files/portmidi-217-r3-python.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/media-libs/portmidi/files/portmidi-217-r3-python.patch b/media-libs/portmidi/files/portmidi-217-r3-python.patch new file mode 100644 index 000000000000..cfc6b24e9487 --- /dev/null +++ b/media-libs/portmidi/files/portmidi-217-r3-python.patch @@ -0,0 +1,50 @@ +diff --git a/pm_python/setup.py b/pm_python/setup.py +index 14ab1c7..5b1e7c0 100644 +--- a/pm_python/setup.py ++++ b/pm_python/setup.py +@@ -15,12 +15,10 @@ except ImportError: + + + DESCRIPTION = open('README_PYTHON.txt').read() +-CHANGES = open('CHANGES.txt').read() +-TODO = open('TODO.txt').read() + + EXTRAS = {} + +-long_description = DESCRIPTION + CHANGES + TODO ++long_description = DESCRIPTION + #import sys + #if "checkdocs" in sys.argv: + # print long_description +@@ -142,7 +140,7 @@ PACKAGEDATA.update(EXTRAS) + + + if sys.platform == 'win32': +- print "Found Win32 platform" ++ print("Found Win32 platform") + EXTENSION = dict( + ext_modules=[ + Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")], +@@ -154,7 +152,7 @@ if sys.platform == 'win32': + ] + ) + elif sys.platform == 'darwin': +- print "Found darwin (OS X) platform" ++ print("Found darwin (OS X) platform") + library_dirs = ["/usr/local/lib"] + include_dirs = ["/usr/local/include"] + EXTENSION = dict( +@@ -169,11 +167,12 @@ elif sys.platform == 'darwin': + ] + ) + else: +- print "Assuming Linux platform" ++ print("Assuming Linux platform") + EXTENSION = dict( + ext_modules=[ + Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")], + library_dirs=["./linux"], ++ include_dirs=["../pm_common", "../porttime"], + libraries = ["portmidi", "asound", "pthread"] + ) + ] |