openbsd-ports/geo/py-proj/Makefile
landry c2dc4ca609 Update to 2.4.2.post1, remove python2 FLAVOR, migrate to python3 by
default.

ok benoit@ (MAINTAINER) sthen@ kmos@
2020-02-25 10:04:27 +00:00

39 lines
804 B
Makefile

# $OpenBSD: Makefile,v 1.25 2020/02/25 10:04:27 landry Exp $
COMMENT = Pyrex generated python interface to PROJ.4 library
MODPY_EGG_VERSION = 2.4.2.post1
DISTNAME = pyproj-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME:S/py/py-/:S/.post/pl/}
CATEGORIES = geo
HOMEPAGE = https://github.com/jswhit/pyproj
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# MIT
PERMIT_PACKAGE = Yes
WANTLIB += ${MODPY_WANTLIB} proj pthread
MODULES = lang/python
MODPY_PI = Yes
MODPY_PYTEST = Yes
MODPY_TEST_DIR = ${WRKSRC}/test
FLAVORS = python3
FLAVOR = python3
MODPY_SETUPTOOLS = Yes
BUILD_DEPENDS += ${RUN_DEPENDS}
TEST_DEPENDS = ${BUILD_PKGPATH} \
devel/py-mock${MODPY_FLAVOR}
RUN_DEPENDS += devel/proj>=6.0 \
lang/cython${MODPY_FLAVOR} \
math/py-numpy${MODPY_FLAVOR}
.include <bsd.port.mk>