either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary.
34 lines
918 B
Makefile
34 lines
918 B
Makefile
# $NetBSD: Makefile,v 1.7 2014/01/25 10:30:13 wiz 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= Python library for arbitrary precision arithmetic
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
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"
|