View | Details | Raw Unified | Return to bug 257400 | Differences between
and this patch

Collapse All | Expand All

(-)b/science/py-scipy/Makefile (-2 / +19 lines)
Lines 21-28 BUILD_DEPENDS= ${PYNUMPY} \ Link Here
21
		${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}pythran>=0:devel/py-pythran
23
		${PYTHON_PKGNAMEPREFIX}pythran>=0:devel/py-pythran
24
LIB_DEPENDS=	libblas.so:math/blas \
25
		libopenblas.so:math/openblas
26
RUN_DEPENDS=	${PYNUMPY}
24
RUN_DEPENDS=	${PYNUMPY}
27
25
28
USES=		compiler:c++14-lang cpe fortran python:3.7+ shebangfix
26
USES=		compiler:c++14-lang cpe fortran python:3.7+ shebangfix
Lines 38-48 PORTDOCS= scipy-ref-${PORTVERSION}.pdf Link Here
38
SHEBANG_FILES=	scipy/sparse/linalg/isolve/tests/test_gcrotmk.py
36
SHEBANG_FILES=	scipy/sparse/linalg/isolve/tests/test_gcrotmk.py
39
37
40
OPTIONS_DEFINE=	DOCS
38
OPTIONS_DEFINE=	DOCS
39
OPTIONS_DEFAULT= OPENBLAS
40
OPTIONS_SINGLE=		BLASLIB
41
OPTIONS_SINGLE_BLASLIB=	ATLAS OPENBLAS
42
ATLAS_USES=		blaslapack:atlas
43
ATLAS_VARS=		BLASLIBS="ptf77blas, ptcblas" BLASNAME=atlas LAPACKLIBS=alapack LIBRARIES=atlas_libs
44
OPENBLAS_LIB_DEPENDS=	libblas.so:math/blas \
45
			libopenblas.so:math/openblas
46
OPENBLAS_VARS=		BLASLIBS="openblas, blas" BLASNAME=openblas LAPACKLIBS="openblas, blas" LIBRARIES=libraries
47
# allow BLAS selection using same method math/py-numpy utilizes
48
GCCLIBDIR_CMDS=	${FC} -print-file-name=libgfortran.so | ${SED} -e s/libgfortran.so// 
41
49
42
post-patch:
50
post-patch:
43
# This line help fix the plist error because autoplist list it as a file but it is a directory
51
# This line help fix the plist error because autoplist list it as a file but it is a directory
44
	@${TOUCH} ${WRKSRC}/scipy/stats/tests/data/tmp
52
	@${TOUCH} ${WRKSRC}/scipy/stats/tests/data/tmp
45
53
54
pre-configure: 
55
# allow BLAS selection using same method math/py-numpy utilizes
56
	@${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg
57
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
58
		-e 's|%%BLASLIBS%%|${BLASLIBS}|; s|%%BLASNAME%%|${BLASNAME}|' \
59
		-e 's|%%LAPACKLIBS%%|${LAPACKLIBS}|; s|%%LIBRARIES%%|${LIBRARIES}|' \
60
			${WRKSRC}/site.cfg	
61
	@${REINPLACE_CMD} -e "s|%%GCCLIBDIR%%|$$(${GCCLIBDIR_CMDS})|" ${WRKSRC}/site.cfg
62
	
46
post-install:
63
post-install:
47
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
64
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
48
65
(-)b/science/py-scipy/files/site.cfg (+10 lines)
Added Link Here
1
[DEFAULT]
2
library_dirs = /usr/lib:%%LOCALBASE%%/lib:%%GCCLIBDIR%%
3
include_dirs = /usr/include:%%LOCALBASE%%/include
4
#src_dirs = %%LOCALBASE%%/src
5
# search static libraries (.a) in preference to shared ones (.so)
6
search_static_first = 0
7
8
[%%BLASNAME%%]
9
%%LIBRARIES%% = %%BLASLIBS%%
10
lapack_libs = %%LAPACKLIBS%%

Return to bug 257400