blob: 9c38c18ecc86db87be00ff577e7fa8472fb473fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.13 2017/01/19 18:52:18 agc Exp $
DISTNAME= mpmath-0.19
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_PYPI:=m/mpmath/}
MASTER_SITES+= http://mpmath.org/files/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mpmath.org/
COMMENT= Python library for arbitrary-precision FP arithmetic
LICENSE= modified-bsd
USE_LANGUAGES= # none
PYDISTUTILSPKG= yes
TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
SUBST_CLASSES+= python
SUBST_STAGE.python= post-patch
SUBST_FILES.python+= mpmath/matrices/eigen.py mpmath/matrices/eigen_symmetric.py
SUBST_FILES.python+= mpmath/tests/test_eigen.py mpmath/tests/test_eigen_symmetric.py
SUBST_FILES.python+= mpmath/tests/test_levin.py
SUBST_MESSAGE.python= Fixing path to Python interpreter.
SUBST_SED.python= -e "s,/usr/bin/python,${PYTHONBIN},g"
SUBST_CLASSES+= python2
SUBST_STAGE.python2= post-patch
SUBST_FILES.python2+= mpmath/tests/runtests.py
SUBST_MESSAGE.python2= Fixing path to Python interpreter.
SUBST_SED.python2= -e "s,/usr/bin/env python,${PYTHONBIN},g"
do-test:
${RUN} cd ${WRKSRC}/build/lib/mpmath/tests; \
${SETENV} ${TEST_ENV} ${PYTHONBIN} runtests.py
.include "../../lang/python/extension.mk"
# optional speedup
#.include "../../math/py-gmpy/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|