<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/cd4debd65074d0569eed2cc8bcba91d31e9573d5">https://github.com/macports/macports-ports/commit/cd4debd65074d0569eed2cc8bcba91d31e9573d5</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 cd4debd6507 systemc: new port in devel
</span>cd4debd6507 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit cd4debd65074d0569eed2cc8bcba91d31e9573d5
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Mon Jun 19 06:57:00 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> systemc: new port in devel
</span>---
devel/systemc/Portfile | 51 ++++++++++++++++++++++
devel/systemc/files/0001-Fix-macOS-PowerPC.patch | 44 +++++++++++++++++++
.../files/0002-run_test.cmake-fix-regex.patch | 26 +++++++++++
.../files/0003-Fix-include-for-QT-package.patch | 25 +++++++++++
.../files/0004-patch-sc_thread_process.patch | 13 ++++++
5 files changed, 159 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/systemc/Portfile b/devel/systemc/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3a1941b11a5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/systemc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,51 @@
</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 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 accellera-official systemc 2.3.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description SystemC Reference Implementation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description SystemC addresses the need for a system design and verification language \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ that spans hardware and software. It is a language built as an ANSI C++ class library \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ created for design and verification. Users worldwide are applying SystemC \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to system-level modeling, abstract analog/mixed-signal modeling, architectural exploration, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ performance modeling, software development, functional verification and high-level synthesis.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2
</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;'>+homepage https://systemc.org/overview/systemc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 c1b8c85bad7a7550aa3889570f3b4c76d611863e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 129ace3f685b00b22ff53888f7b0b89ccc7ddcf42df8bcd25339f06fd7055ca9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 2684456
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/accellera-official/systemc/pull/33
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/accellera-official/systemc/pull/51
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/accellera-official/systemc/pull/53
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/accellera-official/systemc/pull/55
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append 0001-Fix-macOS-PowerPC.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0002-run_test.cmake-fix-regex.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0003-Fix-include-for-QT-package.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0004-patch-sc_thread_process.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
</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 < 400}
</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_SHARED_LIBS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_SOURCE_DOCUMENTATION=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_ASSERTIONS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_LEGACY_MEM_MGMT=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_PTHREADS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# We probably need this on old Intel too:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_PTHREADS=OFF -DENABLE_PTHREADS=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target check
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/systemc/files/0001-Fix-macOS-PowerPC.patch b/devel/systemc/files/0001-Fix-macOS-PowerPC.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..be777c5aff1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/systemc/files/0001-Fix-macOS-PowerPC.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,44 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 4ab7eff932faea22c99622b5b0e27ec9ca210a7f Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Mon, 19 Jun 2023 06:22:17 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1/3] Fix macOS PowerPC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CMakeLists.txt | 7 +++++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 5 insertions(+), 2 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git CMakeLists.txt CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 91a90173..1090b891 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -373,6 +373,7 @@ if (NOT APPLE OR (APPLE AND (N_OSX_ARCHITECTURES LESS 2)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ unset (HAS__i386_DEFINED CACHE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ unset (HAS__x86_64__DEFINED CACHE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ unset (HAS__ppc__DEFINED CACHE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ unset (HAS__ppc64__DEFINED CACHE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif (APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include (CheckSymbolExists)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_symbol_exists (__LP64__ "" HAS__LP64__DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -383,6 +384,7 @@ if (NOT APPLE OR (APPLE AND (N_OSX_ARCHITECTURES LESS 2)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_symbol_exists (__i386 "" HAS__i386_DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_symbol_exists (__aarch64__ "" HAS__aarch64__DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_symbol_exists (__ppc__ "" HAS__ppc__DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ check_symbol_exists (__ppc64__ "" HAS__ppc64__DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_symbol_exists (__powerpc "" HAS__powerpc_DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif (NOT APPLE OR (APPLE AND (N_OSX_ARCHITECTURES LESS 2)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -504,8 +506,9 @@ elseif (HAS__i386_DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (QT_ARCH "i386")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ elseif (HAS__aarch64__DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (QT_ARCH "aarch64")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-elseif (HAS__ppc__DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set (QT_ARCH "powerpc_mach")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# While it builds, tests are largely broken. Rather disable and have 100% tests pass.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# elseif (HAS__ppc__DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# set (QT_ARCH "powerpc_mach")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ elseif (HAS__powerpc__DEFINED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (QT_ARCH "powerpc_sys5")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else (ENABLE_PTHREADS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.40.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/systemc/files/0002-run_test.cmake-fix-regex.patch b/devel/systemc/files/0002-run_test.cmake-fix-regex.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..70f57e54b95
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/systemc/files/0002-run_test.cmake-fix-regex.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From f2349fbfd8f33128a1acc4125aac772290ed312f Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Mon, 19 Jun 2023 05:03:38 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2/3] run_test.cmake: fix regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fixes: https://github.com/accellera-official/systemc/issues/52
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/run_test.cmake | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git cmake/run_test.cmake cmake/run_test.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 061d85e7..22065d5c 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cmake/run_test.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cmake/run_test.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -101,7 +101,7 @@ else ("${TEST_FILTER}" STREQUAL "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file (STRINGS ${TEST_DIR}/run.log RUN_FILTERED_LOG REGEX "^.*${TEST_FILTER}.*$" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(REPLACE ";" "\n" RUN_LOG "${RUN_FILTERED_LOG}\n")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif ("${TEST_FILTER}" STREQUAL "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-string(REGEX REPLACE "^.*stopped by user.*$" "" RUN_TRIMMED_LOG ${RUN_LOG})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++string(REGEX REPLACE "^.*stopped by user.*$" "" RUN_TRIMMED_LOG "${RUN_LOG}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file(WRITE ${TEST_DIR}/run_trimmed.log "${RUN_TRIMMED_LOG}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file(READ ${TEST_GOLDEN} EXPECTED_LOG)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.40.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/systemc/files/0003-Fix-include-for-QT-package.patch b/devel/systemc/files/0003-Fix-include-for-QT-package.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..364f82308d1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/systemc/files/0003-Fix-include-for-QT-package.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From e170592676240e31986a08342737fd786ec84895 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Mon, 19 Jun 2023 02:09:27 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 3/3] Fix include for QT package
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fixes: https://github.com/accellera-official/systemc/issues/50
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/CMakeLists.txt | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/CMakeLists.txt src/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 653740f8..c7009f01 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -492,6 +492,7 @@ target_compile_options(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ target_include_directories(systemc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PUBLIC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/sysc/packages/qt>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.40.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/systemc/files/0004-patch-sc_thread_process.patch b/devel/systemc/files/0004-patch-sc_thread_process.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5f714cb4b89
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/systemc/files/0004-patch-sc_thread_process.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/accellera-official/systemc/pull/33
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/sysc/kernel/sc_thread_process.cpp.orig 2022-12-03 00:13:58.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/sysc/kernel/sc_thread_process.cpp 2023-06-19 04:38:16.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -83,7 +83,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // force 16-byte alignment on coroutine entry functions, needed for
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // QuickThreads (32-bit, see also fixes in qt/md/{i386,iX86_64}.[hs]),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // and MinGW32 / Cygwin32 compilers on Windows platforms
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__GNUC__) && !defined(__ICC) && !defined(__x86_64__) && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__GNUC__) && !defined(__ICC) && defined(__i386__) && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 1 )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define SC_ALIGNED_STACK_ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ __attribute__((force_align_arg_pointer))
</span></pre><pre style='margin:0'>
</pre>