Skip to content

Commit

Permalink
math/py-libpoly: Simplify Makefile; Do not require install for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Aug 6, 2022
1 parent eeaf3f8 commit 148a7e8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions math/py-libpoly/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 148a7e8

Please sign in to comment.