aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-08-08 01:50:57 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-08-08 02:04:03 +0000
commit5748d1f611f815e38acc09d99a778dbda8921341 (patch)
treeaeb752c7821737f1ee4bc1235599f2d9ae076fd5
parentb49814d5bc950595337b0bcb6e04df07f48f2847 (diff)
devel/json-fortran: New port: Modern Fortran JSON API
-rw-r--r--devel/Makefile1
-rw-r--r--devel/json-fortran/Makefile22
-rw-r--r--devel/json-fortran/distinfo3
-rw-r--r--devel/json-fortran/pkg-descr2
-rw-r--r--devel/json-fortran/pkg-plist15
5 files changed, 43 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index a31fc4ce2abd..fa883f1ae4a8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1051,6 +1051,7 @@
SUBDIR += jsmin
SUBDIR += json-c
SUBDIR += json-dto
+ SUBDIR += json-fortran
SUBDIR += json-glib
SUBDIR += jsoncpp
SUBDIR += jsonnet
diff --git a/devel/json-fortran/Makefile b/devel/json-fortran/Makefile
new file mode 100644
index 000000000000..ece3f6e774d5
--- /dev/null
+++ b/devel/json-fortran/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= json-fortran
+DISTVERSION= 8.3.0-8
+DISTVERSIONSUFFIX= -gd296de8a4
+CATEGORIES= devel
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Modern Fortran JSON API
+WWW= https://github.com/jacobwilliams/json-fortran/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cmake:testing fortran
+
+USE_GITHUB= yes
+GH_ACCOUNT= jacobwilliams
+
+CMAKE_ON= USE_GNU_INSTALL_CONVENTION
+
+# all tests fail, see https://github.com/jacobwilliams/json-fortran/issues/539
+
+.include <bsd.port.mk>
diff --git a/devel/json-fortran/distinfo b/devel/json-fortran/distinfo
new file mode 100644
index 000000000000..e221c42d33e2
--- /dev/null
+++ b/devel/json-fortran/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1691458462
+SHA256 (jacobwilliams-json-fortran-8.3.0-8-gd296de8a4_GH0.tar.gz) = 0fdd3031394ae476a18352a60329227df586f50fa081c24db0e70df83b8561a2
+SIZE (jacobwilliams-json-fortran-8.3.0-8-gd296de8a4_GH0.tar.gz) = 1806162
diff --git a/devel/json-fortran/pkg-descr b/devel/json-fortran/pkg-descr
new file mode 100644
index 000000000000..c895c6046422
--- /dev/null
+++ b/devel/json-fortran/pkg-descr
@@ -0,0 +1,2 @@
+JSON-Fortran is a user-friendly, thread-safe, and object-oriented API for
+reading and writing JSON files, written in modern Fortran.
diff --git a/devel/json-fortran/pkg-plist b/devel/json-fortran/pkg-plist
new file mode 100644
index 000000000000..54020b516877
--- /dev/null
+++ b/devel/json-fortran/pkg-plist
@@ -0,0 +1,15 @@
+include/json_file_module.mod
+include/json_kinds.mod
+include/json_module.mod
+include/json_parameters.mod
+include/json_string_utilities.mod
+include/json_value_module.mod
+lib/cmake/jsonfortran-gnu-8.3.0/jsonfortran-gnu-config-version.cmake
+lib/cmake/jsonfortran-gnu-8.3.0/jsonfortran-gnu-config.cmake
+lib/cmake/jsonfortran-gnu-8.3.0/jsonfortran-gnu-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/jsonfortran-gnu-8.3.0/jsonfortran-gnu-targets.cmake
+lib/libjsonfortran.a
+lib/libjsonfortran.so
+lib/libjsonfortran.so.8.3
+lib/libjsonfortran.so.8.3.0
+libdata/pkgconfig/json-fortran.pc