pkgsrc/math/py-gmpy/Makefile
obache 06d16c1bda Update py-gmpy to 1.15.
Based on PR 46507 by Wen Heping.
* let to register egg-info.
* all files in distfile are not DOS style EOL oter than Windows related files,
  so remove extract option for ZIP.

GMPY 1.15 is a bug fix release. The following bugs were fixed:
* Reference counting leak in divmod(x,0).
* Fatal crash in remove(x,1).
* Discontinue use of custom memory allocator. (Fixes compatibility with Sage.)
* Allow up to base-62 integer conversion.
2012-06-02 13:52:06 +00:00

39 lines
1,002 B
Makefile

# $NetBSD: Makefile,v 1.4 2012/06/02 13:52:06 obache Exp $
#
DISTNAME= gmpy-1.15
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
PKG_DESTDIR_SUPPORT= user-destdir
PYTHON_VERSIONS_INCLUDE_3X= yes
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"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"