summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/mwlib-ext/files')
-rw-r--r--dev-python/mwlib-ext/files/0.12.4-unbundle-reportlab.patch36
-rw-r--r--dev-python/mwlib-ext/files/0.13.2-unbundle-reportlab.patch35
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/mwlib-ext/files/0.12.4-unbundle-reportlab.patch b/dev-python/mwlib-ext/files/0.12.4-unbundle-reportlab.patch
new file mode 100644
index 000000000000..b630ae122c66
--- /dev/null
+++ b/dev-python/mwlib-ext/files/0.12.4-unbundle-reportlab.patch
@@ -0,0 +1,36 @@
+diff --git a/setup.py b/setup.py
+index 9886715..b47b79b 100755
+--- a/setup.py
++++ b/setup.py
+@@ -7,30 +7,16 @@ except ImportError:
+ ez_setup.use_setuptools()
+ from setuptools import setup, Extension, find_packages
+
+-from distutils import sysconfig
+-if sysconfig.get_config_var("LIBM") == "-lm":
+- libraries = ["m"]
+-else:
+- libraries = []
+-
+ install_requires = []
+ execfile('mwlib/_extversion.py') # adds 'version' to local namespace
+
+-ext_modules = []
+-ext_modules.append(Extension("mwlib.ext._rl_accel",
+- ['upstream-src/src/rl_addons/rl_accel/_rl_accel.c'],
+- libraries=libraries))
+-
+-packages = ["mwlib.ext." + x for x in find_packages("upstream-src/src")] + find_packages(".")
++packages = find_packages(".")
+
+ setup(
+ name="mwlib.ext",
+ version=str(version),
+ install_requires=install_requires,
+ packages=packages,
+- package_dir={"mwlib.ext.reportlab": "upstream-src/src/reportlab",
+- "mwlib.ext.rl_addons": "upstream-src/src/rl_addons"},
+- ext_modules=ext_modules,
+ namespace_packages=['mwlib'],
+ include_package_data=True,
+ zip_safe=False,
diff --git a/dev-python/mwlib-ext/files/0.13.2-unbundle-reportlab.patch b/dev-python/mwlib-ext/files/0.13.2-unbundle-reportlab.patch
new file mode 100644
index 000000000000..12156a796a5a
--- /dev/null
+++ b/dev-python/mwlib-ext/files/0.13.2-unbundle-reportlab.patch
@@ -0,0 +1,35 @@
+diff -ur mwlib.ext-0.13.2.orig/setup.py mwlib.ext-0.13.2/setup.py
+--- setup.py 2013-07-02 09:53:32.000000000 +0800
++++ setup.py 2013-07-27 13:24:48.169128958 +0800
+@@ -1,30 +1,16 @@
+ #! /usr/bin/env python
+
+ from setuptools import setup, Extension, find_packages
+-from distutils import sysconfig
+-if sysconfig.get_config_var("LIBM") == "-lm":
+- libraries = ["m"]
+-else:
+- libraries = []
+-
+ install_requires = []
+ execfile('mwlib/_extversion.py') # adds 'version' to local namespace
+
+-ext_modules = []
+-ext_modules.append(Extension("mwlib.ext._rl_accel",
+- ['upstream-src/src/rl_addons/rl_accel/_rl_accel.c'],
+- libraries=libraries))
+-
+-packages = ["mwlib.ext." + x for x in find_packages("upstream-src/src")] + find_packages(".")
++packages = find_packages(".")
+
+ setup(
+ name="mwlib.ext",
+ version=str(version),
+ install_requires=install_requires,
+ packages=packages,
+- package_dir={"mwlib.ext.reportlab": "upstream-src/src/reportlab",
+- "mwlib.ext.rl_addons": "upstream-src/src/rl_addons"},
+- ext_modules=ext_modules,
+ namespace_packages=['mwlib'],
+ include_package_data=True,
+ zip_safe=False,