git: 2766091ae929 - main - science/py-pyscf: Update 2.1.0 -> 2.1.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Dec 2022 09:51:07 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2766091ae929d8b73171cd3a0907be8fb4d8eb83
commit 2766091ae929d8b73171cd3a0907be8fb4d8eb83
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-10 08:49:57 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-10 09:51:02 +0000
science/py-pyscf: Update 2.1.0 -> 2.1.1
Also add workaround for build failure on armv7.
---
science/py-pyscf/Makefile | 5 ++---
science/py-pyscf/distinfo | 6 +++---
science/py-pyscf/files/patch-pyscf_lib_gto_ft__ao.c | 13 +++++++++++++
3 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/science/py-pyscf/Makefile b/science/py-pyscf/Makefile
index eeeaf1421b7c..15b617347fe5 100644
--- a/science/py-pyscf/Makefile
+++ b/science/py-pyscf/Makefile
@@ -1,7 +1,6 @@
PORTNAME= pyscf
DISTVERSIONPREFIX= v
-DISTVERSION= 2.1.0
-PORTREVISION= 2
+DISTVERSION= 2.1.1
CATEGORIES= science python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -24,7 +23,7 @@ LIB_DEPENDS= libcint.so:science/libcint \
RUN_DEPENDS= ${PY_DEPENDS}
USES= fortran blaslapack:openblas compiler:c++11-lang python
-USE_PYTHON= distutils autoplist pytest
+USE_PYTHON= distutils autoplist pytest # 3818 warnings, 57 errors in tests, see https://github.com/pyscf/pyscf/issues/1536
USE_GITHUB= yes
POST_PLIST= fix-plist
diff --git a/science/py-pyscf/distinfo b/science/py-pyscf/distinfo
index 567ada652865..5bff06f258b2 100644
--- a/science/py-pyscf/distinfo
+++ b/science/py-pyscf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1662267235
-SHA256 (pyscf-pyscf-v2.1.0_GH0.tar.gz) = 820da1564047de3097ec2f964a4c2168535a8048c084f211b8db1feb0c1665af
-SIZE (pyscf-pyscf-v2.1.0_GH0.tar.gz) = 10896918
+TIMESTAMP = 1670658450
+SHA256 (pyscf-pyscf-v2.1.1_GH0.tar.gz) = 814240aa73f57ba96aee8264e3914c09f96ebdce1e42784da4b5e9a474ecb280
+SIZE (pyscf-pyscf-v2.1.1_GH0.tar.gz) = 10896271
diff --git a/science/py-pyscf/files/patch-pyscf_lib_gto_ft__ao.c b/science/py-pyscf/files/patch-pyscf_lib_gto_ft__ao.c
new file mode 100644
index 000000000000..1d2f9c022ac4
--- /dev/null
+++ b/science/py-pyscf/files/patch-pyscf_lib_gto_ft__ao.c
@@ -0,0 +1,13 @@
+- wprkaropund for compilation failure on armv7
+- #include <stdint.h> for int8_t, see https://github.com/pyscf/pyscf/issues/1535
+
+--- pyscf/lib/gto/ft_ao.c.orig 2022-12-10 07:40:03 UTC
++++ pyscf/lib/gto/ft_ao.c
+@@ -44,6 +44,7 @@
+
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <stdint.h>
+ #include <math.h>
+ #include <assert.h>
+ #include <complex.h>