summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2012-04-19 20:56:11 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2012-04-19 20:56:11 +0000
commit4e02884c89f6914bb498876c54171190167b5f50 (patch)
tree50edd6a457a42f0e1fd4bc917ff9a26db182ebc2 /dev-python/cvxopt/files
parentMarking gtk-builder-convert-2.24.10 ppc64 for bug 410611 (diff)
downloadgentoo-2-4e02884c89f6914bb498876c54171190167b5f50.tar.gz
gentoo-2-4e02884c89f6914bb498876c54171190167b5f50.tar.bz2
gentoo-2-4e02884c89f6914bb498876c54171190167b5f50.zip
Version bump
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/cvxopt/files')
-rw-r--r--dev-python/cvxopt/files/cvxopt-1.1.5-setup.patch171
1 files changed, 171 insertions, 0 deletions
diff --git a/dev-python/cvxopt/files/cvxopt-1.1.5-setup.patch b/dev-python/cvxopt/files/cvxopt-1.1.5-setup.patch
new file mode 100644
index 000000000000..bc902716f981
--- /dev/null
+++ b/dev-python/cvxopt/files/cvxopt-1.1.5-setup.patch
@@ -0,0 +1,171 @@
+--- setup.py.orig 2012-04-04 17:18:51.000000000 +0100
++++ setup.py 2012-04-19 00:02:14.000000000 +0100
+@@ -2,7 +2,7 @@
+ from glob import glob
+
+ # Modifiy this if BLAS and LAPACK libraries are not in /usr/lib.
+-BLAS_LIB_DIR = '/usr/lib'
++BLAS_LIB_DIR = ''
+
+ # Default names of BLAS and LAPACK libraries
+ BLAS_LIB = ['blas']
+@@ -18,37 +18,37 @@
+ BUILD_GSL = 0
+
+ # Directory containing libgsl (used only when BUILD_GSL = 1).
+-GSL_LIB_DIR = '/usr/lib'
++GSL_LIB_DIR = ''
+
+ # Directory containing the GSL header files (used only when BUILD_GSL = 1).
+-GSL_INC_DIR = '/usr/include/gsl'
++GSL_INC_DIR = ''
+
+ # Set to 1 if you are installing the fftw module.
+ BUILD_FFTW = 0
+
+ # Directory containing libfftw3 (used only when BUILD_FFTW = 1).
+-FFTW_LIB_DIR = '/usr/lib'
++FFTW_LIB_DIR = ''
+
+ # Directory containing fftw.h (used only when BUILD_FFTW = 1).
+-FFTW_INC_DIR = '/usr/include'
++FFTW_INC_DIR = ''
+
+ # Set to 1 if you are installing the glpk module.
+ BUILD_GLPK = 0
+
+ # Directory containing libglpk (used only when BUILD_GLPK = 1).
+-GLPK_LIB_DIR = '/usr/lib'
++GLPK_LIB_DIR = ''
+
+ # Directory containing glpk.h (used only when BUILD_GLPK = 1).
+-GLPK_INC_DIR = '/usr/include'
++GLPK_INC_DIR = ''
+
+ # Set to 1 if you are installing the DSDP module.
+ BUILD_DSDP = 0
+
+ # Directory containing libdsdp (used only when BUILD_DSDP = 1).
+-DSDP_LIB_DIR = '/usr/lib'
++DSDP_LIB_DIR = ''
+
+ # Directory containing dsdp5.h (used only when BUILD_DSDP = 1).
+-DSDP_INC_DIR = '/usr/include/dsdp'
++DSDP_INC_DIR = ''
+
+ # No modifications should be needed below this line.
+
+@@ -61,39 +61,32 @@
+ # optional modules
+
+ if BUILD_GSL:
+- gsl = Extension('gsl', libraries = ['m', 'gsl'] + BLAS_LIB,
+- include_dirs = [ GSL_INC_DIR ],
+- library_dirs = [ GSL_LIB_DIR, BLAS_LIB_DIR ],
+- extra_link_args = BLAS_EXTRA_LINK_ARGS,
++ gsl = Extension('gsl', libraries = ['gsl'],
++ library_dirs = [ GSL_LIB_DIR ],
+ sources = ['C/gsl.c'] )
+ extmods += [gsl];
+
+ if BUILD_FFTW:
+- fftw = Extension('fftw', libraries = ['fftw3'] + BLAS_LIB,
+- include_dirs = [ FFTW_INC_DIR ],
+- library_dirs = [ FFTW_LIB_DIR, BLAS_LIB_DIR ],
+- extra_link_args = BLAS_EXTRA_LINK_ARGS,
++ fftw = Extension('fftw', libraries = ['fftw3'],
++ library_dirs = [ FFTW_LIB_DIR ],
+ sources = ['C/fftw.c'] )
+ extmods += [fftw];
+
+ if BUILD_GLPK:
+ glpk = Extension('glpk', libraries = ['glpk'],
+- include_dirs = [ GLPK_INC_DIR ],
+ library_dirs = [ GLPK_LIB_DIR ],
+ sources = ['C/glpk.c'] )
+ extmods += [glpk];
+
+ if BUILD_DSDP:
+- dsdp = Extension('dsdp', libraries = ['dsdp'] + LAPACK_LIB + BLAS_LIB,
+- include_dirs = [ DSDP_INC_DIR ],
+- library_dirs = [ DSDP_LIB_DIR, BLAS_LIB_DIR ],
+- extra_link_args = BLAS_EXTRA_LINK_ARGS,
++ dsdp = Extension('dsdp', libraries = ['dsdp'],
++ library_dirs = [ DSDP_LIB_DIR ],
+ sources = ['C/dsdp.c'] )
+ extmods += [dsdp];
+
+ # Required modules
+
+-base = Extension('base', libraries = ['m'] + LAPACK_LIB + BLAS_LIB,
++base = Extension('base', libraries = LAPACK_LIB,
+ library_dirs = [ BLAS_LIB_DIR ],
+ define_macros = MACROS,
+ extra_link_args = BLAS_EXTRA_LINK_ARGS,
+@@ -105,55 +98,36 @@
+ extra_link_args = BLAS_EXTRA_LINK_ARGS,
+ sources = ['C/blas.c'] )
+
+-lapack = Extension('lapack', libraries = LAPACK_LIB + BLAS_LIB,
++lapack = Extension('lapack', libraries = LAPACK_LIB ,
+ library_dirs = [ BLAS_LIB_DIR ],
+ define_macros = MACROS,
+ extra_link_args = BLAS_EXTRA_LINK_ARGS,
+ sources = ['C/lapack.c'] )
+
+ umfpack = Extension('umfpack',
+- include_dirs = [ 'C/SuiteSparse/UMFPACK/Include',
+- 'C/SuiteSparse/AMD/Include', 'C/SuiteSparse/AMD/Source',
+- 'C/SuiteSparse/UFconfig' ],
+ library_dirs = [ BLAS_LIB_DIR ],
+ define_macros = MACROS,
+- libraries = LAPACK_LIB + BLAS_LIB,
+- extra_link_args = BLAS_EXTRA_LINK_ARGS,
+- sources = [ 'C/umfpack.c',
+- 'C/SuiteSparse/UMFPACK/Source/umfpack_global.c',
+- 'C/SuiteSparse/UMFPACK/Source/umfpack_tictoc.c' ] +
+- glob('C/SuiteSparse_cvxopt_extra/umfpack/*'))
++ libraries = [ 'umfpack' ],
++ sources = [ 'C/umfpack.c' ])
++
+
+ # Build for int or long?
+ import sys
+ if sys.maxsize > 2**31: MACROS += [('DLONG','')]
+
+ cholmod = Extension('cholmod',
+- library_dirs = [ BLAS_LIB_DIR ],
+- libraries = LAPACK_LIB + BLAS_LIB,
+- include_dirs = [ 'C/SuiteSparse/CHOLMOD/Include',
+- 'C/SuiteSparse/COLAMD', 'C/SuiteSparse/AMD/Include',
+- 'C/SuiteSparse/UFconfig', 'C/SuiteSparse/COLAMD/Include' ],
+- define_macros = MACROS + [('NPARTITION', '1')],
+- extra_link_args = BLAS_EXTRA_LINK_ARGS,
+- sources = [ 'C/cholmod.c' ] +
+- ['C/SuiteSparse/AMD/Source/' + s for s in ['amd_global.c',
+- 'amd_postorder.c', 'amd_post_tree.c', 'amd_2.c']] +
+- ['C/SuiteSparse/COLAMD/Source/' + s for s in ['colamd.c',
+- 'colamd_global.c']] +
+- glob('C/SuiteSparse/CHOLMOD/Core/c*.c') +
+- glob('C/SuiteSparse/CHOLMOD/Cholesky/c*.c') +
+- ['C/SuiteSparse/CHOLMOD/Check/cholmod_check.c'] +
+- glob('C/SuiteSparse/CHOLMOD/Supernodal/c*.c') )
++ libraries = ['cholmod'],
++ define_macros = MACROS + [('NPARTITION', '1')],
++ sources = [ 'C/cholmod.c' ])
++
+
+ amd = Extension('amd',
+- include_dirs = [ 'C/SuiteSparse/AMD/Include',
+- 'C/SuiteSparse/UFconfig' ],
+ define_macros = MACROS,
+- sources = [ 'C/amd.c' ] + glob('C/SuiteSparse/AMD/Source/*.c') )
++ libraries = ['amd'],
++ sources = [ 'C/amd.c' ])
+
+ misc_solvers = Extension('misc_solvers',
+- libraries = LAPACK_LIB + BLAS_LIB,
++ libraries = LAPACK_LIB,
+ library_dirs = [ BLAS_LIB_DIR ],
+ define_macros = MACROS,
+ extra_link_args = BLAS_EXTRA_LINK_ARGS,