git: e120825a5e5a - main - science/silo: fix plist when FORTRAN=ON; update WWW; fix fs_violation

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 04 Oct 2026 22:02:45 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e120825a5e5acd6767bab32f9034069a0660d2ea

commit e120825a5e5acd6767bab32f9034069a0660d2ea
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-04 20:29:32 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-04 22:02:41 +0000

    science/silo: fix plist when FORTRAN=ON; update WWW; fix fs_violation
---
 science/silo/Makefile                   |  4 +++-
 science/silo/files/patch-CMakeLists.txt | 22 ++++++++++++++++++++++
 science/silo/pkg-plist                  |  1 +
 3 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/science/silo/Makefile b/science/silo/Makefile
index 34e91e287342..ec9b39e22d4b 100644
--- a/science/silo/Makefile
+++ b/science/silo/Makefile
@@ -1,10 +1,12 @@
 PORTNAME=	silo
 DISTVERSION=	4.12.1
+PORTREVISION=	1
 CATEGORIES=	science
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Mesh and field I/O library and scientific database
-WWW=		https://wci.llnl.gov/simulation/computer-codes/silo
+WWW=		https://software.llnl.gov/Silo/ \
+		https://github.com/LLNL/Silo
 
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
diff --git a/science/silo/files/patch-CMakeLists.txt b/science/silo/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..0b0972fb34ab
--- /dev/null
+++ b/science/silo/files/patch-CMakeLists.txt
@@ -0,0 +1,22 @@
+-- Fix path to symlink to have STAGEDIR/DESTDIR.
+-- Upstreamed: https://github.com/llnl/Silo/pull/581
+
+--- CMakeLists.txt.orig	2026-07-28 07:31:59 UTC
++++ CMakeLists.txt
+@@ -725,8 +725,14 @@ if(SILO_ENABLE_FORTRAN AND CMAKE_Fortran_COMPILER)
+ 
+ # Symlink old style silo_f77.inc
+ if(SILO_ENABLE_FORTRAN AND CMAKE_Fortran_COMPILER)
+-    install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink silo.inc silo_f77.inc
+-        WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR})")
++    install(CODE "
++        set(FINAL_DIR \"\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}\")
++        if(NOT \"\$ENV{DESTDIR}\" STREQUAL \"\")
++            set(FINAL_DIR \"\$ENV{DESTDIR}\${FINAL_DIR}\")
++        endif()
++        execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink silo.inc silo_f77.inc
++            WORKING_DIRECTORY \"\${FINAL_DIR}\")
++    ")
+ endif()
+ 
+ if(SILO_ENABLE_HDF5 AND HDF5_FOUND)
diff --git a/science/silo/pkg-plist b/science/silo/pkg-plist
index e663ae044141..5828c5311f5a 100644
--- a/science/silo/pkg-plist
+++ b/science/silo/pkg-plist
@@ -10,6 +10,7 @@ include/silo.h
 %%FORTRAN%%include/silo.inc
 %%FORTRAN%%include/silo_FC.h
 include/silo_exports.h
+%%FORTRAN%%include/silo_f77.inc
 %%FORTRAN%%include/silo_f9x.inc
 %%PYTHON%%lib/Silo.so
 lib/cmake/Silo/SiloConfig.cmake