diff --git a/science/py-spglib/Makefile b/science/py-spglib/Makefile index 6a2950dea35d..14ad98f6aa4a 100644 --- a/science/py-spglib/Makefile +++ b/science/py-spglib/Makefile @@ -1,34 +1,35 @@ PORTNAME= spglib DISTVERSIONPREFIX= v DISTVERSION= 2.5.0 PORTREVISION= 1 CATEGORIES= science python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Library for finding and handling crystal symmetries (python binding) -WWW= https://spglib.readthedocs.io/en/stable/ +WWW= https://spglib.readthedocs.io/en/stable/ \ + https://github.com/spglib/spglib 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} \ ${PY_SETUPTOOLS} LIB_DEPENDS= libsymspg.so:science/spglib RUN_DEPENDS= ${PYNUMPY} 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} MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION} TEST_WRKSRC= ${WRKSRC} TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} .include diff --git a/science/py-spglib/files/patch-pyproject.toml b/science/py-spglib/files/patch-pyproject.toml index e4e8f702013c..38d350736f4d 100644 --- a/science/py-spglib/files/patch-pyproject.toml +++ b/science/py-spglib/files/patch-pyproject.toml @@ -1,11 +1,21 @@ ---- pyproject.toml.orig 2024-07-12 07:15:17 UTC +- removal of license-files is a workaround for https://github.com/spglib/spglib/issues/560 + +--- pyproject.toml.orig 2024-07-11 08:36:56 UTC +++ pyproject.toml @@ -1,7 +1,7 @@ [build-system] # Numpy build and runtime dependencies are linked to ABI compatibility # A new wheel rebuild is needed when changing these -requires = ["scikit-build-core", "numpy~=2.0"] +requires = ["scikit-build-core", "numpy"] build-backend = "scikit_build_core.build" [project] +@@ -9,7 +9,6 @@ license = { text = "BSD-3-Clause" } + requires-python = ">=3.9" + description = "This is the spglib module." + license = { text = "BSD-3-Clause" } +-license-files = { paths = ["COPYING"] } + readme = "python/README.rst" + dynamic = ["version"] + dependencies = [