pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Used to update include-what-you-use



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Wed Aug 3 12:35:59 2022 +0200
Changeset:	3f553fed0cee6754c3a5af8db9a6a623a2f4480f

Modified Files:
	Makefile
Added Files:
	include-what-you-use/DESCR
	include-what-you-use/Makefile
	include-what-you-use/PLIST
	include-what-you-use/distinfo

Log Message:
Used to update include-what-you-use

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3f553fed0cee6754c3a5af8db9a6a623a2f4480f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                      |  1 +
 include-what-you-use/DESCR    | 11 +++++++++++
 include-what-you-use/Makefile | 23 +++++++++++++++++++++++
 include-what-you-use/PLIST    | 24 ++++++++++++++++++++++++
 include-what-you-use/distinfo |  5 +++++
 5 files changed, 64 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 5208fdc0fe..03055ebe75 100644
--- a/Makefile
+++ b/Makefile
@@ -1769,6 +1769,7 @@ SUBDIR+=	imapfilter
 SUBDIR+=	imgui
 SUBDIR+=	imonc
 SUBDIR+=	incidenceeditor
+SUBDIR+=	include-what-you-use
 SUBDIR+=	inetdxtra
 SUBDIR+=	influxdb
 SUBDIR+=	info2man
diff --git a/include-what-you-use/DESCR b/include-what-you-use/DESCR
new file mode 100644
index 0000000000..a6a9330b5e
--- /dev/null
+++ b/include-what-you-use/DESCR
@@ -0,0 +1,11 @@
+"Include what you use" means this: for every symbol (type, function
+variable, or macro) that you use in foo.cc, either foo.cc or foo.h
+should #include a .h file that exports the declaration of that symbol.
+The include-what-you-use tool is a program that can be built with the
+clang libraries in order to analyze #includes of source files to find
+include-what-you-use violations, and suggest fixes for them.
+
+The main goal of include-what-you-use is to remove superfluous #includes.
+It does this both by figuring out what #includes are not actually needed for
+this file (for both .cc and .h files), and replacing #includes with
+forward-declares when possible.
diff --git a/include-what-you-use/Makefile b/include-what-you-use/Makefile
new file mode 100644
index 0000000000..338f8f7aec
--- /dev/null
+++ b/include-what-you-use/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.30 2022/06/30 11:18:14 nia Exp $
+
+DISTNAME=	include-what-you-use-0.18
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=include-what-you-use/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://include-what-you-use.org/
+COMMENT=	Analyze \#includes in C and C++ source files
+LICENSE=	modified-bsd
+
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++14
+
+GCC_REQD+=	5
+
+CMAKE_ARGS=	-DIWYU_LLVM_ROOT_PATH:PATH=${BUILDLINK_PREFIX.clang}
+
+REPLACE_PYTHON=	*.py
+
+.include "../../wip/clang/buildlink3.mk"
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/include-what-you-use/PLIST b/include-what-you-use/PLIST
new file mode 100644
index 0000000000..63a5ae3096
--- /dev/null
+++ b/include-what-you-use/PLIST
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.7 2021/07/12 18:49:29 adam Exp $
+bin/fix_includes.py
+bin/include-what-you-use
+bin/iwyu_tool.py
+man/man1/include-what-you-use.1
+share/include-what-you-use/boost-1.64-all-private.imp
+share/include-what-you-use/boost-1.64-all.imp
+share/include-what-you-use/boost-1.75-all-private.imp
+share/include-what-you-use/boost-1.75-all.imp
+share/include-what-you-use/boost-all-private.imp
+share/include-what-you-use/boost-all.imp
+share/include-what-you-use/clang-6.intrinsics.imp
+share/include-what-you-use/gcc-8.intrinsics.imp
+share/include-what-you-use/gcc.libc.imp
+share/include-what-you-use/gcc.stl.headers.imp
+share/include-what-you-use/gcc.symbols.imp
+share/include-what-you-use/iwyu.gcc.imp
+share/include-what-you-use/libcxx.imp
+share/include-what-you-use/python2.7.imp
+share/include-what-you-use/python3.8.imp
+share/include-what-you-use/qt4.imp
+share/include-what-you-use/qt5_11.imp
+share/include-what-you-use/qt5_4.imp
+share/include-what-you-use/stl.c.headers.imp
diff --git a/include-what-you-use/distinfo b/include-what-you-use/distinfo
new file mode 100644
index 0000000000..a98f091281
--- /dev/null
+++ b/include-what-you-use/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.17 2021/12/05 14:50:41 wiz Exp $
+
+BLAKE2s (include-what-you-use-0.18.tar.gz) = a67b695f48d473a3955059655deeff6db4ea26795da89006baab929a59969bb5
+SHA512 (include-what-you-use-0.18.tar.gz) = bfce2ff00b572961dcba83519959cbedaf1c2ec4bd4e0a2b8b6d12f440887ee64a1c9970fa1a80c7517898ce936219436ab709893cfed92891c5c2aa5d76770e
+Size (include-what-you-use-0.18.tar.gz) = 750341 bytes


Home | Main Index | Thread Index | Old Index