mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
science/py-spglib: Remove workaround for the _version_ symbol; Add missing dependency
This commit is contained in:
parent
f8cf8eebd1
commit
5001da995c
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user