git: 3a8c19e871bd - main - devel/zycore-c: New port: Support library with platform independent types, macros, etc for Zydis

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 26 Feb 2023 08:11:18 UTC
The branch main has been updated by yuri:

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

commit 3a8c19e871bd4c4bca8face405944de4f8691f9d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-26 08:03:16 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-26 08:11:14 +0000

    devel/zycore-c: New port: Support library with platform independent types, macros, etc for Zydis
---
 devel/Makefile           |  1 +
 devel/zycore-c/Makefile  | 25 +++++++++++++++++++++++++
 devel/zycore-c/distinfo  |  3 +++
 devel/zycore-c/pkg-descr |  2 ++
 devel/zycore-c/pkg-plist | 30 ++++++++++++++++++++++++++++++
 5 files changed, 61 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index dad100c828b8..549464fee88f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7631,6 +7631,7 @@
     SUBDIR += zpu-binutils
     SUBDIR += zpu-gcc
     SUBDIR += zthread
+    SUBDIR += zycore-c
     SUBDIR += zydis
     SUBDIR += zziplib
 
diff --git a/devel/zycore-c/Makefile b/devel/zycore-c/Makefile
new file mode 100644
index 000000000000..579b1b2cafbd
--- /dev/null
+++ b/devel/zycore-c/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	zycore-c
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.4.1
+CATEGORIES=	devel
+
+MAINTAINER=	freebsd@sysctl.cz
+COMMENT=	Support library with platform independent types, macros, etc for Zydis
+WWW=		https://zydis.re
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+ONLY_FOR_ARCHS=		aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le riscv64
+ONLY_FOR_ARCHS_REASON=	see definitions in include/Zycore/Defines.h
+
+USES=		cmake:testing compiler:c++17-lang cpe
+CPE_VENDOR=	zyantific
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	zyantific
+
+CMAKE_ON=	ZYCORE_BUILD_SHARED_LIB
+CMAKE_TESTING_ON=	ZYCORE_BUILD_TESTS
+
+.include <bsd.port.mk>
diff --git a/devel/zycore-c/distinfo b/devel/zycore-c/distinfo
new file mode 100644
index 000000000000..803adcff9a75
--- /dev/null
+++ b/devel/zycore-c/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1677398160
+SHA256 (zyantific-zycore-c-v1.4.1_GH0.tar.gz) = 8f610917c4254a69ec7e0c63492e9d0be9d18f4bb8fe91a3ff6ebed917d1f0f8
+SIZE (zyantific-zycore-c-v1.4.1_GH0.tar.gz) = 61002
diff --git a/devel/zycore-c/pkg-descr b/devel/zycore-c/pkg-descr
new file mode 100644
index 000000000000..4bf46bf75e5e
--- /dev/null
+++ b/devel/zycore-c/pkg-descr
@@ -0,0 +1,2 @@
+Zyan Core Library for C is an internal library providing platform independent
+types, macros and a fallback for environments without LibC.
diff --git a/devel/zycore-c/pkg-plist b/devel/zycore-c/pkg-plist
new file mode 100644
index 000000000000..86082e752531
--- /dev/null
+++ b/devel/zycore-c/pkg-plist
@@ -0,0 +1,30 @@
+include/Zycore/API/Memory.h
+include/Zycore/API/Process.h
+include/Zycore/API/Synchronization.h
+include/Zycore/API/Terminal.h
+include/Zycore/API/Thread.h
+include/Zycore/Allocator.h
+include/Zycore/ArgParse.h
+include/Zycore/Atomic.h
+include/Zycore/Bitset.h
+include/Zycore/Comparison.h
+include/Zycore/Defines.h
+include/Zycore/Format.h
+include/Zycore/Internal/AtomicGNU.h
+include/Zycore/Internal/AtomicMSVC.h
+include/Zycore/LibC.h
+include/Zycore/List.h
+include/Zycore/Object.h
+include/Zycore/Status.h
+include/Zycore/String.h
+include/Zycore/Types.h
+include/Zycore/Vector.h
+include/Zycore/Zycore.h
+lib/cmake/zycore/zyan-functions.cmake
+lib/cmake/zycore/zycore-config-version.cmake
+lib/cmake/zycore/zycore-config.cmake
+lib/cmake/zycore/zycore-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/zycore/zycore-targets.cmake
+lib/libZycore.so
+lib/libZycore.so.1.4
+lib/libZycore.so.1.4.0.0