<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7527e04620a7c26405a61732f4448dc71d70fd2b">https://github.com/macports/macports-ports/commit/7527e04620a7c26405a61732f4448dc71d70fd2b</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 7527e04620a yajl-fort: new port in fortran
</span>7527e04620a is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7527e04620a7c26405a61732f4448dc71d70fd2b
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Wed May 3 19:08:19 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> yajl-fort: new port in fortran
</span>---
fortran/yajl-fort/Portfile | 35 +++++++++++++++++++++++
fortran/yajl-fort/files/patch-fix-CMakeLists.diff | 19 ++++++++++++
2 files changed, 54 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/fortran/yajl-fort/Portfile b/fortran/yajl-fort/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1bc0e2bf115
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/fortran/yajl-fort/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,35 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compilers 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup nncarlson yajl-fort 1.3 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Modern Fortran interface to the YAJL library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description The YAJL-Fort package provides a modern object-oriented Fortran interface to the YAJL C library, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ which is an event-driven parser for JSON data streams.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 be6f0da4b8dfe6f4698cd55ed52b4465cd7ca18a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 276f4d0a329b02f30e52dfb5a94ea10714dd0098d2749a68cf8edde4878f6111 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 32800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:yajl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fix building dynamic lib; install .mod files into a sane directory.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-fix-CMakeLists.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compilers.setup require_fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {*gcc-[34].*} {clang < 421}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_TESTS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_HTML=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.args-append DYLD_LIBRARY_PATH=${cmake.build_dir}/src
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/fortran/yajl-fort/files/patch-fix-CMakeLists.diff b/fortran/yajl-fort/files/patch-fix-CMakeLists.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c9599f881e4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/fortran/yajl-fort/files/patch-fix-CMakeLists.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/CMakeLists.txt.orig 2018-03-25 07:41:28.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/CMakeLists.txt 2023-05-03 20:04:06.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3,7 +3,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(LIB_MOD_DIR ${CMAKE_CURRENT_BINARY_DIR}/mod_files/)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-add_library(yajl_fort ${SRC})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++add_library(yajl_fort SHARED ${SRC})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set_target_properties(yajl_fort PROPERTIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Fortran_MODULE_DIRECTORY ${LIB_MOD_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,6 +20,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install(TARGETS yajl_fort
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EXPORT yajl_fort
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBRARY DESTINATION lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ARCHIVE DESTINATION lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install(DIRECTORY ${LIB_MOD_DIR} DESTINATION lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++install(DIRECTORY ${LIB_MOD_DIR} DESTINATION include/yajl_fort)
</span></pre><pre style='margin:0'>
</pre>