Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2014/01/25 09:06:42 wiz Exp $
# $NetBSD: Makefile,v 1.20 2015/01/27 05:05:30 dbj Exp $
DISTNAME= numarray-1.5.2
PKGNAME= ${PYPKGPREFIX}-numarray-1.5.2
@@ -11,12 +11,11 @@ HOMEPAGE= http://www.numpy.org/old_array_packages.html
COMMENT= Array manipulation
PLIST_VARS+= blas
.if exists(/System/Library/Frameworks/vecLib.framework/Headers)
BUILDLINK_PASSTHRU_DIRS+= /System/Library/Frameworks/vecLib.framework/Headers
.if exists(/System/Library/Frameworks/Accelerate.framework)
PLIST.blas= yes
.endif
PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 1.5.2; use py-numpy
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 1.5.2; use py-numpy
do-test:
(cd ${WRKSRC}/Lib && ${PYTHONBIN} testall.py)

View File

@@ -1,6 +1,9 @@
$NetBSD: distinfo,v 1.8 2006/10/17 14:25:43 drochner Exp $
$NetBSD: distinfo,v 1.9 2015/01/27 05:05:30 dbj Exp $
SHA1 (numarray-1.5.2.tar.gz) = 17f6c4bb5f0d97e93923b8ca4f55fccc1ee985e9
RMD160 (numarray-1.5.2.tar.gz) = 51cc7681958cada32c515872e8def6fc0ff296ca
Size (numarray-1.5.2.tar.gz) = 1196014 bytes
SHA1 (patch-Include_numarray_arraybase.h) = 4ea0b49b50a7cb0e9c9cb539eab5e750584795f7
SHA1 (patch-Src___dotblas.c) = fcb6109d0c73ad50e0c33c79d6655a1b4cfeca0d
SHA1 (patch-aa) = 6edaab221c6d52a47e5a52b3039e37b8fef814b1
SHA1 (patch-cfg__packages.py) = 6ded69dabce1942624daa588fe3c64ef67758e34

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-Include_numarray_arraybase.h,v 1.1 2015/01/27 05:05:30 dbj Exp $
--- Include/numarray/arraybase.h.orig 2006-01-23 11:45:03.000000000 +0000
+++ Include/numarray/arraybase.h
@@ -42,7 +42,12 @@ typedef struct { Float64 r, i; } Complex
#if LP64
typedef long int Int64;
+#ifdef __APPLE__
+/* match the definition in MacTypes.h */
+typedef unsigned long long UInt64;
+#else
typedef unsigned long int UInt64;
+#endif
typedef Int64 Long;
#else /* 32-bit platforms */
typedef Int32 Long;

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-Src___dotblas.c,v 1.1 2015/01/27 05:05:30 dbj Exp $
--- Src/_dotblas.c.orig 2006-07-24 20:11:35.000000000 +0000
+++ Src/_dotblas.c
@@ -12,7 +12,11 @@ static char module_doc[] =
#include "Python.h"
#include "libnumarray.h"
#include "arrayobject.h"
+#ifdef __APPLE__
+#include <Accelerate/Accelerate.h>
+#else
#include <cblas.h>
+#endif
#include <stdio.h>

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-cfg__packages.py,v 1.1 2015/01/27 05:05:30 dbj Exp $
The vecLib framework has been obsolete since at least osx 10.3
use the Accelerate framework instead
--- cfg_packages.py.orig 2005-07-21 13:57:10.000000000 +0000
+++ cfg_packages.py
@@ -28,13 +28,12 @@ if USE_LAPACK:
lapack_link_args = []
lapack_include_dirs = ["Packages/LinearAlgebra2/Src"]
- if os.path.exists('/System/Library/Frameworks/vecLib.framework'):
+ if os.path.exists('/System/Library/Frameworks/Accelerate.framework'):
# use Apple's optimized BLAS implementation
lapack_libs = []
- lapack_link_args = ['-framework', 'vecLib']
- lapack_compile_args = ['-framework', 'vecLib']
+ lapack_link_args = ['-framework', 'Accelerate']
+ lapack_compile_args = ['-framework', 'Accelerate']
lapack_dirs = []
- lapack_include_dirs += ['/System/Library/Frameworks/vecLib.framework/Headers']
elif USE_ABSOFT: # Absoft Fortran
lapack_dirs = ['/usr/local/lib/atlas', '/opt/absoft/lib']
lapack_libs = ['lapack', 'f77blas', 'cblas', 'atlas',