git: 5001da995c78 - main - science/py-spglib: Remove workaround for the _version_ symbol; Add missing dependency
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Sep 2024 08:25:01 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5001da995c78da53f46c0aa764df43039f7a700b
commit 5001da995c78da53f46c0aa764df43039f7a700b
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-09-13 08:19:41 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-09-13 08:24:48 +0000
science/py-spglib: Remove workaround for the _version_ symbol; Add missing dependency
---
science/py-spglib/Makefile | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/science/py-spglib/Makefile b/science/py-spglib/Makefile
index 436d4b5d6165..6a2950dea35d 100644
--- a/science/py-spglib/Makefile
+++ b/science/py-spglib/Makefile
@@ -1,6 +1,7 @@
PORTNAME= spglib
DISTVERSIONPREFIX= v
DISTVERSION= 2.5.0
+PORTREVISION= 1
CATEGORIES= science python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,6 +17,7 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@$
cmake:devel/cmake-core \
${PYNUMPY} \
${PY_SETUPTOOLS}
+LIB_DEPENDS= libsymspg.so:science/spglib
RUN_DEPENDS= ${PYNUMPY}
USES= python
@@ -29,10 +31,4 @@ MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION}
TEST_WRKSRC= ${WRKSRC}
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
-post-patch:
- ##@cd ${WRKSRC} && ${RLN} ../test .
- #@cd ${WRKSRC} && ${CP} -r ../test .
- # workaround for https://github.com/spglib/spglib/issues/429
- @${REINPLACE_CMD} -i '' -e 's|^from ._version import|#&|' ${WRKSRC}/python/spglib/__init__.py
-
.include <bsd.port.mk>