git: 148a7e88a090 - main - math/py-libpoly: Simplify Makefile; Do not require install for tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 06 Aug 2022 21:43:05 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=148a7e88a0909408bde6c07e90c9ee3d4e9cf0ce

commit 148a7e88a0909408bde6c07e90c9ee3d4e9cf0ce
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-06 21:23:15 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-06 21:23:15 +0000

    math/py-libpoly: Simplify Makefile; Do not require install for tests
---
 math/py-libpoly/Makefile | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/math/py-libpoly/Makefile b/math/py-libpoly/Makefile
index 1b508cff38e8..88b3a1f1877d 100644
--- a/math/py-libpoly/Makefile
+++ b/math/py-libpoly/Makefile
@@ -23,17 +23,14 @@ LDFLAGS+=	-lpoly
 
 BUILD_WRKSRC=	${WRKSRC}/python
 INSTALL_WRKSRC=	${WRKSRC}/python
+TEST_WRKSRC=	${WRKSRC}/test/python
+
+TEST_ENV=      ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/polypy*.so
 
-do-build:
-	@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_BUILD_TARGET} ${PYDISTUTILS_BUILDARGS}
-
-do-install:
-	@cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_INSTALL_TARGET} ${PYDISTUTILS_INSTALLARGS}
-
-do-test: install
-	@cd ${WRKSRC}/test/python && ${PYTHON_CMD} ${WRKSRC}/test/python/check.py
+do-test:
+	@cd ${WRKSRC}/test/python && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ./check.py
 
 .include <bsd.port.mk>