git: b147b55eb79e - main - sysutils/cppinsights: New port: C++ Insights - See your source code with the eyes of a compiler

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sat, 19 Oct 2024 11:10:23 UTC
The branch main has been updated by vvd:

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

commit b147b55eb79e58ef0b0a36a590be74110f4658c6
Author:     Martin Filla <freebsd@sysctl.cz>
AuthorDate: 2024-10-19 11:07:34 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-10-19 11:10:15 +0000

    sysutils/cppinsights: New port: C++ Insights - See your source code with the eyes of a compiler
    
    C++ Insights is a Clang-based tool that does a source-to-source
    transformation. The goal of C++ Insights is to make things visible that
    normally and intentionally happen behind the scenes.It's about the magic
    the compiler does for us to make things work.
    
    https://github.com/andreasfertig/cppinsights
    https://cppinsights.io
    
    PR:     278197
---
 sysutils/cppinsights/Makefile  | 21 +++++++++++++++++++++
 sysutils/cppinsights/distinfo  |  3 +++
 sysutils/cppinsights/pkg-descr |  4 ++++
 3 files changed, 28 insertions(+)

diff --git a/sysutils/cppinsights/Makefile b/sysutils/cppinsights/Makefile
new file mode 100644
index 000000000000..266b3808f372
--- /dev/null
+++ b/sysutils/cppinsights/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	cppinsights
+DISTVERSIONPREFIX=	v_
+DISTVERSION=	17.0
+CATEGORIES=	sysutils
+
+MAINTAINER=	freebsd@sysctl.cz
+COMMENT=	C++ Insights - See your source code with the eyes of a compiler
+WWW=		https://github.com/andreasfertig/cppinsights
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cmake llvm:min=17,lib
+USE_GITHUB=	yes
+GH_ACCOUNT=	andreasfertig
+
+CMAKE_ARGS=	-DLLVM_CONFIG_PATH="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config"
+
+PLIST_FILES=	bin/insights
+
+.include <bsd.port.mk>
diff --git a/sysutils/cppinsights/distinfo b/sysutils/cppinsights/distinfo
new file mode 100644
index 000000000000..1fb7ac63e475
--- /dev/null
+++ b/sysutils/cppinsights/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1712407492
+SHA256 (andreasfertig-cppinsights-v_17.0_GH0.tar.gz) = 2dd6bcfcdba65c0ed2e1f04ef79d57285186871ad8bd481d63269f3115276216
+SIZE (andreasfertig-cppinsights-v_17.0_GH0.tar.gz) = 331667
diff --git a/sysutils/cppinsights/pkg-descr b/sysutils/cppinsights/pkg-descr
new file mode 100644
index 000000000000..81c404d70ca4
--- /dev/null
+++ b/sysutils/cppinsights/pkg-descr
@@ -0,0 +1,4 @@
+C++ Insights is a Clang-based tool that does a source-to-source transformation.
+The goal of C++ Insights is to make things visible that normally and
+intentionally happen behind the scenes.It's about the magic the compiler does
+for us to make things work.