Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
$NetBSD: patch-aa,v 1.10 2012/04/17 17:17:03 drochner Exp $
|
||||
|
||||
--- setupext.py.orig 2011-10-06 14:50:23.000000000 +0000
|
||||
+++ setupext.py
|
||||
@@ -221,12 +221,7 @@ sysconfig.customize_compiler = my_custom
|
||||
|
||||
|
||||
def run_child_process(cmd):
|
||||
- p = subprocess.Popen(cmd, shell=True,
|
||||
- stdin=subprocess.PIPE,
|
||||
- stdout=subprocess.PIPE,
|
||||
- stderr=subprocess.STDOUT,
|
||||
- close_fds=(sys.platform != 'win32'))
|
||||
- return p.stdin, p.stdout
|
||||
+ return None, os.popen(cmd + " 2>&1")
|
||||
|
||||
class CleanUpFile:
|
||||
"""CleanUpFile deletes the specified filename when self is destroyed."""
|
||||
@@ -364,11 +359,8 @@ def check_for_libpng():
|
||||
return True
|
||||
|
||||
def add_base_flags(module):
|
||||
- incdirs = filter(os.path.exists,
|
||||
- [os.path.join(p, 'include') for p in basedirlist ])
|
||||
- libdirs = filter(os.path.exists,
|
||||
- [os.path.join(p, 'lib') for p in basedirlist ]+
|
||||
- [os.path.join(p, 'lib64') for p in basedirlist ] )
|
||||
+ incdirs = [os.path.join(os.environ['LOCALBASE'], 'include')]
|
||||
+ libdirs = [os.path.join(os.environ['LOCALBASE'], 'lib')]
|
||||
|
||||
module.include_dirs.extend(incdirs)
|
||||
module.include_dirs.append('.')
|
||||
@@ -0,0 +1,23 @@
|
||||
$NetBSD: patch-ab,v 1.7 2014/01/21 21:14:06 drochner Exp $
|
||||
|
||||
--- setup.py.orig 2013-10-10 12:42:48.000000000 +0000
|
||||
+++ setup.py
|
||||
@@ -88,12 +88,12 @@ mpl_packages = [
|
||||
# work will be selected as the default backend.
|
||||
setupext.BackendMacOSX(),
|
||||
setupext.BackendQt4(),
|
||||
- setupext.BackendGtk3Agg(),
|
||||
- setupext.BackendGtk3Cairo(),
|
||||
- setupext.BackendGtkAgg(),
|
||||
- setupext.BackendTkAgg(),
|
||||
- setupext.BackendWxAgg(),
|
||||
- setupext.BackendGtk(),
|
||||
+# setupext.BackendGtk3Agg(),
|
||||
+# setupext.BackendGtk3Cairo(),
|
||||
+# setupext.BackendGtkAgg(),
|
||||
+# setupext.BackendTkAgg(),
|
||||
+# setupext.BackendWxAgg(),
|
||||
+# setupext.BackendGtk(),
|
||||
setupext.BackendAgg(),
|
||||
setupext.BackendCairo(),
|
||||
setupext.Windowing(),
|
||||
@@ -0,0 +1,24 @@
|
||||
$NetBSD: patch-lib_matplotlib_tri___tri.cpp,v 1.1 2014/02/26 10:36:58 wiedi Exp $
|
||||
|
||||
Rename C++ variables to avoid use of reserved identifiers
|
||||
See: https://github.com/matplotlib/matplotlib/issues/2463
|
||||
--- lib/matplotlib/tri/_tri.cpp.orig 2013-10-10 12:42:48.000000000 +0000
|
||||
+++ lib/matplotlib/tri/_tri.cpp
|
||||
@@ -2177,14 +2177,14 @@ TrapezoidMapTriFinder::Trapezoid::set_up
|
||||
|
||||
|
||||
RandomNumberGenerator::RandomNumberGenerator(unsigned long seed)
|
||||
- : _M(21870), _A(1291), _C(4621), _seed(seed % _M)
|
||||
+ : _m(21870), _a(1291), _c(4621), _seed(seed % _m)
|
||||
{}
|
||||
|
||||
unsigned long
|
||||
RandomNumberGenerator::operator()(unsigned long max_value)
|
||||
{
|
||||
- _seed = (_seed*_A + _C) % _M;
|
||||
- return (_seed*max_value) / _M;
|
||||
+ _seed = (_seed*_a + _c) % _m;
|
||||
+ return (_seed*max_value) / _m;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
$NetBSD: patch-lib_matplotlib_tri___tri.h,v 1.1 2014/02/26 10:36:58 wiedi Exp $
|
||||
|
||||
Rename C++ variables to avoid use of reserved identifiers
|
||||
See: https://github.com/matplotlib/matplotlib/issues/2463
|
||||
--- lib/matplotlib/tri/_tri.h.orig 2013-10-10 12:42:48.000000000 +0000
|
||||
+++ lib/matplotlib/tri/_tri.h
|
||||
@@ -818,7 +818,7 @@ public:
|
||||
unsigned long operator()(unsigned long max_value);
|
||||
|
||||
private:
|
||||
- const unsigned long _M, _A, _C;
|
||||
+ const unsigned long _m, _a, _c;
|
||||
unsigned long _seed;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user