biology/py-PySCeS: Update 1.0.2 -> 1.0.3

Reported by:	portscout
This commit is contained in:
Yuri Victorovich 2022-09-26 01:17:38 -07:00
parent ba6fef6fee
commit fdebc5b7b2
3 changed files with 13 additions and 26 deletions

View file

@ -1,5 +1,5 @@
PORTNAME= PySCeS
DISTVERSION= 1.0.2
DISTVERSION= 1.0.3
CATEGORIES= biology python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -13,25 +13,27 @@ LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENCE.txt
PY_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}ipython>0:devel/ipython@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}python-libsbml>0:biology/py-python-libsbml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
PY_EXTRA= ${PYTHON_PKGNAMEPREFIX}python-libsbml>0:biology/py-python-libsbml@${PY_FLAVOR}
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \
cmake:devel/cmake-core \
${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS} ${PY_EXTRA}
USES= fortran python
USE_PYTHON= distutils autoplist
LDFLAGS+= -lpython${PYTHON_VER} -shared # see https://github.com/PySCeS/pysces/issues/29
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${STRIP_CMD} \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pysces/pitcon/pitcon.cpython-${PYTHON_SUFFIX}.so \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pysces/nleq2/nleq2.cpython-${PYTHON_SUFFIX}.so
do-test: install # from section 2.1 Loading PySCeS in http://pysces.sourceforge.net/pdf/userguide.pdf
@${PYTHON_CMD} -c "import pysces; pysces.test();"
do-test: # from section 2.1 Loading PySCeS in http://pysces.sourceforge.net/pdf/userguide.pdf
@${SETENV} ${TEST_ENV} ${PYTHON_CMD} -c "import pysces; pysces.test();"
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1653078460
SHA256 (pysces-1.0.2.tar.gz) = da49a292c50152890c8359a0e0b3b6e8204f161fc45960318dbee9798436562f
SIZE (pysces-1.0.2.tar.gz) = 1606306
TIMESTAMP = 1664176747
SHA256 (pysces-1.0.3.tar.gz) = 19bb2da5a02b9e5b3e4ef77924d4eaa62505e6ac8c4373f9f3704f2118db0059
SIZE (pysces-1.0.3.tar.gz) = 1014531

View file

@ -1,15 +0,0 @@
--- setup.py.orig 2021-09-14 08:51:28 UTC
+++ setup.py
@@ -284,9 +284,9 @@ mydata_files.append((os.path.join('pysces'), [os.path.
mydata_files.append(('', [os.path.join('pysces', 'pysces.pth')]))
# JR 2021-08 userguide.pdf included as a symlink to built docs in submodule
-mydata_files.append(
- (os.path.join("pysces", "docs"), [os.path.join("pysces", "docs", "userguide.pdf")])
-)
+#mydata_files.append(
+# (os.path.join("pysces", "docs"), [os.path.join("pysces", "docs", "userguide.pdf")])
+#)
mydata_files.append(
(
os.path.join('pysces', 'examples'),