2012-09-12 01:04:15 +02:00
|
|
|
# $NetBSD: Makefile,v 1.5 2012/09/11 23:04:31 asau Exp $
|
2010-08-10 19:59:00 +02:00
|
|
|
#
|
|
|
|
|
2012-06-02 15:52:06 +02:00
|
|
|
DISTNAME= gmpy-1.15
|
2010-08-10 19:59:00 +02:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= http://gmpy.googlecode.com/files/
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
MAINTAINER= kamel.derouiche@gmail.com
|
|
|
|
HOMEPAGE= http://code.google.com/p/gmpy
|
|
|
|
COMMENT= Library for arbitrary precision arithmetic wirtten by Python
|
|
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
|
2011-12-03 01:02:14 +01:00
|
|
|
PYTHON_VERSIONS_INCLUDE_3X= yes
|
|
|
|
|
2010-08-10 19:59:00 +02:00
|
|
|
USE_LANGUAGES= c
|
|
|
|
BUILD_TARGET= gmpy.so
|
|
|
|
|
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
|
|
|
|
|
|
|
TEST_ENV+= PYTHONPATH=${WRKSRC}/test
|
|
|
|
do-test:
|
|
|
|
${ECHO} "Testing py-gmpy:"
|
|
|
|
${RUN} cd ${WRKSRC}/test; \
|
|
|
|
${SETENV} ${TEST_ENV} ${PYTHONBIN} gmpy_test.py
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= share/doc/py-gmpy${PYVERSSUFFIX}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/gmpydoc.txt \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/py-gmpy${PYVERSSUFFIX}
|
|
|
|
|
|
|
|
BUILDLINK_API_DEPENDS.gmp+= gmp>=4.2.1
|
|
|
|
.include "../../devel/gmp/buildlink3.mk"
|
2012-06-02 15:52:06 +02:00
|
|
|
.include "../../lang/python/distutils.mk"
|
2010-08-10 19:59:00 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|