summaryrefslogtreecommitdiff
path: root/science/py-spglib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/py-spglib/Makefile')
-rw-r--r--science/py-spglib/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/science/py-spglib/Makefile b/science/py-spglib/Makefile
index b9208a124902..044f6101b4ed 100644
--- a/science/py-spglib/Makefile
+++ b/science/py-spglib/Makefile
@@ -1,6 +1,7 @@
PORTNAME= spglib
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.1
+PORTREVISION= 1
CATEGORIES= science python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,18 +13,17 @@ LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scikit-build-core>0:devel/py-scikit-build-core@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyproject-metadata>0:devel/py-pyproject-metadata@${PY_FLAVOR} \
+ cmake:devel/cmake-core \
${PYNUMPY}
-LIB_DEPENDS= libsymspg.so:science/spglib
RUN_DEPENDS= ${PYNUMPY}
-USES= cmake python
-USE_PYTHON= flavors pytest # tests fail to run, see https://github.com/spglib/spglib/issues/192
+USES= python
+USE_PYTHON= pep517 autoplist pytest # tests fail to run, see https://github.com/spglib/spglib/issues/192
USE_GITHUB= yes
CMAKE_ARGS= -DPython3_EXECUTABLE=${PYTHON_CMD}
-WRKSRC_SUBDIR= python
-
MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION}
TEST_WRKSRC= ${WRKSRC}
@@ -33,10 +33,6 @@ 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}/spglib/__init__.py
- # patch in the correct symspg lib
- @${REINPLACE_CMD} -i '' \
- -e 's|, bundled_lib)|, "${LOCALBASE}/lib/libsymspg.so")|' \
- ${WRKSRC}/spglib/spglib.py
+ @${REINPLACE_CMD} -i '' -e 's|^from ._version import|#&|' ${WRKSRC}/python/spglib/__init__.py
.include <bsd.port.mk>