mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
29f8ae5a59
PR: 234320 Submitted by: wenheping2000@hotmail.com Exp-run by: antoine@
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= scipy
|
|
PORTVERSION= 1.2.0
|
|
CATEGORIES= science python
|
|
MASTER_SITES= https://docs.scipy.org/doc/scipy/:doc \
|
|
CHEESESHOP:source \
|
|
SF:source
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \
|
|
scipy-ref-${PORTVERSION}.pdf:doc
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= Scientific tools for Python
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
BUILD_DEPENDS= ${PYNUMPY}
|
|
RUN_DEPENDS= ${PYNUMPY}
|
|
|
|
USES= fortran python
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
LDFLAGS+= -shared
|
|
PYDISTUTILS_BUILDARGS= --fcompiler=gnu95
|
|
PYDISTUTILS_CONFIGUREARGS= --fcompiler=gnu95
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PORTDOCS= scipy-ref-${PORTVERSION}.pdf
|
|
|
|
post-patch:
|
|
# Syntax error with GCC 5
|
|
@${REINPLACE_CMD} -e "s|) IF(| .AND. |" ${WRKSRC}/scipy/odr/odrpack/d_lpkbls.f
|
|
# This line help fix the plist error because autoplist list it as a file but it is a directory
|
|
@${TOUCH} ${WRKSRC}/scipy/stats/tests/data/tmp
|
|
|
|
post-install:
|
|
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${DISTDIR}/scipy-ref-${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|