+++ /dev/null
---- portmidi/pm_python/setup.py
-+++ portmidi/pm_python/setup.py
-@@ -15,12 +15,10 @@
-
-
- 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
-@@ -173,7 +171,8 @@
- 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"]
- )
- ]
-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:
+diff -Naur portmidi-a/pm_python/setup.py portmidi-b/pm_python/setup.py
+--- portmidi-a/pm_python/setup.py 2010-09-26 15:32:44.000000000 -0400
++++ portmidi-b/pm_python/setup.py 2020-03-19 12:34:34.398365103 -0400
+@@ -15,12 +15,10 @@
DESCRIPTION = open('README_PYTHON.txt').read()
#import sys
#if "checkdocs" in sys.argv:
# print long_description
-@@ -142,7 +140,7 @@ PACKAGEDATA.update(EXTRAS)
+@@ -142,7 +140,7 @@
if sys.platform == 'win32':
EXTENSION = dict(
ext_modules=[
Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")],
-@@ -154,7 +152,7 @@ if sys.platform == 'win32':
+@@ -154,7 +152,7 @@
]
)
elif sys.platform == 'darwin':
library_dirs = ["/usr/local/lib"]
include_dirs = ["/usr/local/include"]
EXTENSION = dict(
-@@ -169,11 +167,12 @@ elif sys.platform == 'darwin':
+@@ -169,11 +167,11 @@
]
)
else:
ext_modules=[
Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")],
- library_dirs=["./linux"],
-+ library_dirs=["../../portmidi*build"],
+ include_dirs=["../pm_common", "../porttime"],
libraries = ["portmidi", "asound", "pthread"]
)
DISTUTILS_OPTIONAL=1
# ninja: error: build.ninja:521: multiple rules generate pm_java/pmdefaults.jar [-w dupbuild=err]
CMAKE_MAKEFILE_GENERATOR="emake"
-inherit cmake desktop xdg distutils-r1 java-pkg-opt-2
+inherit cmake desktop xdg distutils-r1 java-pkg-opt-2 flag-o-matic
DESCRIPTION="Library for real time MIDI input and output"
HOMEPAGE="http://portmedia.sourceforge.net/"
"${FILESDIR}"/${P}-cmake.patch
# add include directories and remove references to missing files
- "${FILESDIR}"/${PF}-python.patch
+ "${FILESDIR}"/${P}-r4-python.patch
)
pkg_setup() {
if use python ; then
sed -i -e "/library_dirs=.*linux/s#./linux#${CMAKE_BUILD_DIR}#" pm_python/setup.py || die
pushd pm_python > /dev/null
+ append-ldflags -L"${BUILD_DIR}"
distutils-r1_src_compile
popd > /dev/null
fi