Import of pkgsrc-2014Q1
This commit is contained in:
+18
-22
@@ -1,10 +1,9 @@
|
||||
# $NetBSD: Makefile,v 1.13 2012/12/02 12:33:23 wen Exp $
|
||||
#
|
||||
# $NetBSD: Makefile,v 1.14 2014/01/21 08:38:04 wiz Exp $
|
||||
|
||||
DISTNAME= sympy-0.7.2
|
||||
DISTNAME= sympy-0.7.4.1
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= http://sympy.googlecode.com/files/
|
||||
MASTER_SITES= https://github.com/sympy/sympy/releases/download/${DISTNAME}/
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= http://code.google.com/p/sympy/
|
||||
@@ -12,30 +11,27 @@ COMMENT= Python library for symbolic mathematics
|
||||
LICENSE= modified-bsd
|
||||
|
||||
USE_LANGUAGES= # none
|
||||
PYDISTUTILSPKG= yes
|
||||
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
||||
|
||||
SUBST_CLASSES+= python
|
||||
SUBST_STAGE.python= post-patch
|
||||
SUBST_MESSAGE.python= Fixing python path
|
||||
SUBST_FILES.python+= sympy/galgebra/GA.py
|
||||
SUBST_FILES.python+= sympy/galgebra/tests/test_GA.py
|
||||
SUBST_SED.python= -e "s,/usr/bin/python,${PYTHONBIN},"
|
||||
REPLACE_PYTHON+= sympy/mpmath/tests/runtests.py
|
||||
REPLACE_PYTHON+= sympy/utilities/tests/diagnose_imports.py
|
||||
|
||||
SUBST_CLASSES+= python2
|
||||
SUBST_STAGE.python2= post-patch
|
||||
SUBST_MESSAGE.python2= Fixing python path
|
||||
SUBST_FILES.python2+= sympy/mpmath/tests/runtests.py
|
||||
SUBST_SED.python2= -e "s,/usr/bin/env python,${PYTHONBIN},"
|
||||
|
||||
post-extract:
|
||||
${CP} ${WRKSRC}/bin/isympy ${WRKSRC}/bin/isympy${PYVERSSUFFIX}
|
||||
${CP} ${WRKSRC}/doc/man/isympy.1 \
|
||||
${WRKSRC}/doc/man/isympy${PYVERSSUFFIX}.1
|
||||
SUBST_CLASSES+= manpath
|
||||
SUBST_SED.manpath= -e 's,share/man,${PKGMANDIR},'
|
||||
SUBST_FILES.manpath+= setup.py
|
||||
SUBST_STAGE.manpath= pre-configure
|
||||
SUBST_MESSAGE.manpath= Fix man page installation path.
|
||||
|
||||
# advanced.pidigits is broken, don't worry if it fails
|
||||
do-test:
|
||||
(cd ${WRKSRC}/examples && ${PYTHONBIN} all.py)
|
||||
|
||||
.include "../../lang/python/extension.mk"
|
||||
post-install:
|
||||
cd ${DESTDIR}${PREFIX} && \
|
||||
mv bin/isympy bin/isympy${PYVERSSUFFIX} && \
|
||||
mv ${PKGMANDIR}/man1/isympy.1 \
|
||||
${PKGMANDIR}/man1/isympy${PYVERSSUFFIX}.1
|
||||
|
||||
.include "../../lang/python/application.mk"
|
||||
.include "../../lang/python/distutils.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
||||
Reference in New Issue
Block a user