Lines 1-52
Link Here
|
1 |
# Created by: ijliao |
1 |
# Created by: ijliao |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= scipy |
4 |
PORTNAME= scipy |
5 |
PORTVERSION= 1.2.2 |
5 |
PORTVERSION= 1.5.4 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= science python |
6 |
CATEGORIES= science python |
8 |
MASTER_SITES= https://docs.scipy.org/doc/scipy-${PORTVERSION:R}.1/:doc \ |
7 |
MASTER_SITES= https://docs.scipy.org/doc/scipy-${PORTVERSION}/:doc \ |
9 |
CHEESESHOP:source \ |
8 |
CHEESESHOP:source \ |
10 |
SF:source |
9 |
SF:source |
11 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
10 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
12 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \ |
11 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \ |
13 |
scipy-ref-${PORTVERSION:R}.1.pdf:doc |
12 |
scipy-ref-${PORTVERSION}.pdf:doc |
14 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
13 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
15 |
|
14 |
|
16 |
MAINTAINER= python@FreeBSD.org |
15 |
MAINTAINER= python@FreeBSD.org |
17 |
COMMENT= Scientific tools for Python |
16 |
COMMENT= Scientific tools for Python |
18 |
|
17 |
|
19 |
LICENSE= BSD3CLAUSE |
18 |
LICENSE= BSD3CLAUSE |
20 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
19 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
21 |
|
20 |
|
22 |
BUILD_DEPENDS= ${PYNUMPY} |
21 |
BUILD_DEPENDS= ${PYNUMPY} \ |
23 |
RUN_DEPENDS= ${PYNUMPY} |
22 |
${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} |
|
|
23 |
RUN_DEPENDS= ${PYNUMPY} \ |
24 |
${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} |
25 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} |
24 |
|
26 |
|
25 |
USES= fortran python shebangfix |
27 |
USES= fortran python shebangfix |
26 |
USE_PYTHON= autoplist concurrent distutils |
28 |
USE_PYTHON= autoplist concurrent distutils |
27 |
|
29 |
|
28 |
FFLAGS+= -std=legacy |
30 |
FFLAGS+= -std=legacy |
29 |
LDFLAGS+= -shared |
31 |
LDFLAGS+= -shared |
30 |
PYDISTUTILS_BUILDARGS= --fcompiler=gnu95 |
32 |
PYDISTUTILS_BUILDARGS= --fcompiler=gnu95 |
31 |
PYDISTUTILS_CONFIGUREARGS= --fcompiler=gnu95 |
33 |
PYDISTUTILS_CONFIGUREARGS= --fcompiler=gnu95 |
32 |
|
34 |
|
33 |
PORTDOCS= scipy-ref-${PORTVERSION:R}.1.pdf |
35 |
PORTDOCS= scipy-ref-${PORTVERSION}.pdf |
34 |
|
36 |
|
35 |
SHEBANG_FILES= scipy/sparse/linalg/isolve/tests/test_gcrotmk.py |
37 |
SHEBANG_FILES= scipy/sparse/linalg/isolve/tests/test_gcrotmk.py \ |
|
|
38 |
runtests.py |
36 |
|
39 |
|
37 |
OPTIONS_DEFINE= DOCS |
40 |
OPTIONS_DEFINE= DOCS |
38 |
|
41 |
|
39 |
post-patch: |
42 |
post-patch: |
40 |
# Syntax error with GCC 5 |
|
|
41 |
@${REINPLACE_CMD} -e "s|) IF(| .AND. |" ${WRKSRC}/scipy/odr/odrpack/d_lpkbls.f |
42 |
# This line help fix the plist error because autoplist list it as a file but it is a directory |
43 |
# This line help fix the plist error because autoplist list it as a file but it is a directory |
43 |
@${TOUCH} ${WRKSRC}/scipy/stats/tests/data/tmp |
44 |
@${TOUCH} ${WRKSRC}/scipy/stats/tests/data/tmp |
44 |
|
45 |
|
45 |
post-install: |
46 |
post-install: |
46 |
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD} |
47 |
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD} |
47 |
|
48 |
|
48 |
post-install-DOCS-on: |
49 |
post-install-DOCS-on: |
49 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
50 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
50 |
${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
51 |
${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
51 |
|
52 |
|
|
|
53 |
do-test: |
54 |
@cd ${WRKSRC} && ${PYTHON_CMD} runtests.py |
55 |
|
52 |
.include <bsd.port.mk> |
56 |
.include <bsd.port.mk> |