pkgsrc-WIP-changes archive

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

py-scan-build: add finished package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Sat Jun 17 01:40:49 2023 +0200
Changeset:	7d239f7b094603224e328f46ff260db74f5bf9f5

Modified Files:
	Makefile
Added Files:
	py-scan-build/ALTERNATIVES
	py-scan-build/DESCR
	py-scan-build/Makefile
	py-scan-build/PLIST
	py-scan-build/TODO
	py-scan-build/distinfo

Log Message:
py-scan-build: add finished package

Package finished but lang/clang installs them too.
But this is smaller. Import or not?

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

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

diffstat:
 Makefile                   |  1 +
 py-scan-build/ALTERNATIVES |  7 +++++++
 py-scan-build/DESCR        |  5 +++++
 py-scan-build/Makefile     | 21 +++++++++++++++++++++
 py-scan-build/PLIST        | 43 +++++++++++++++++++++++++++++++++++++++++++
 py-scan-build/TODO         |  2 ++
 py-scan-build/distinfo     |  5 +++++
 7 files changed, 84 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ef7367bcf1..d0047463a0 100644
--- a/Makefile
+++ b/Makefile
@@ -4545,6 +4545,7 @@ SUBDIR+=	py-sas7bdat
 SUBDIR+=	py-sasa
 SUBDIR+=	py-sbapp
 SUBDIR+=	py-scalpy
+SUBDIR+=	py-scan-build
 SUBDIR+=	py-scanapi
 SUBDIR+=	py-scanless
 SUBDIR+=	py-schema
diff --git a/py-scan-build/ALTERNATIVES b/py-scan-build/ALTERNATIVES
new file mode 100644
index 0000000000..30883b6e7e
--- /dev/null
+++ b/py-scan-build/ALTERNATIVES
@@ -0,0 +1,7 @@
+bin/analyze-build @PREFIX@/bin/analyze-build-@PYVERSSUFFIX@
+bin/analyze-c++ @PREFIX@/bin/analyze-c++-@PYVERSSUFFIX@
+bin/analyze-cc @PREFIX@/bin/analyze-cc-@PYVERSSUFFIX@
+bin/intercept-build @PREFIX@/bin/intercept-build-@PYVERSSUFFIX@
+bin/intercept-c++ @PREFIX@/bin/intercept-c++-@PYVERSSUFFIX@
+bin/intercept-cc @PREFIX@/bin/intercept-cc-@PYVERSSUFFIX@
+bin/scan-build @PREFIX@/bin/scan-build-@PYVERSSUFFIX@
diff --git a/py-scan-build/DESCR b/py-scan-build/DESCR
new file mode 100644
index 0000000000..42bcb6ba74
--- /dev/null
+++ b/py-scan-build/DESCR
@@ -0,0 +1,5 @@
+A package designed to wrap a build so that all calls to gcc/clang
+are intercepted and logged into a compilation database and/or piped
+to the clang static analyzer. Includes intercept-build tool, which
+logs the build, as well as scan-build tool, which logs the build
+and runs the clang static analyzer on it.
diff --git a/py-scan-build/Makefile b/py-scan-build/Makefile
new file mode 100644
index 0000000000..c2bdc0bce0
--- /dev/null
+++ b/py-scan-build/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+DISTNAME=	scan-build-2.0.20
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scan-build/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/rizsotto/scan-build
+COMMENT=	Static code analyzer wrapper for Clang
+LICENSE=	modified-bsd
+
+PYTHON_VERSIONS_INCOMPATIBLE=	27
+
+post-install:
+.for file in analyze-build analyze-c++ analyze-cc intercept-build intercept-c++ intercept-cc scan-build
+	cd ${DESTDIR}${PREFIX}/bin && ${MV} ${file} ${file}-${PYVERSSUFFIX}
+.endfor
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-scan-build/PLIST b/py-scan-build/PLIST
new file mode 100644
index 0000000000..e04cd576e1
--- /dev/null
+++ b/py-scan-build/PLIST
@@ -0,0 +1,43 @@
+@comment $NetBSD$
+bin/analyze-build-${PYVERSSUFFIX}
+bin/analyze-c++-${PYVERSSUFFIX}
+bin/analyze-cc-${PYVERSSUFFIX}
+bin/intercept-build-${PYVERSSUFFIX}
+bin/intercept-c++-${PYVERSSUFFIX}
+bin/intercept-cc-${PYVERSSUFFIX}
+bin/scan-build-${PYVERSSUFFIX}
+${PYSITELIB}/libear/__init__.py
+${PYSITELIB}/libear/__init__.pyc
+${PYSITELIB}/libear/__init__.pyo
+${PYSITELIB}/libear/config.h.in
+${PYSITELIB}/libear/ear.c
+${PYSITELIB}/libscanbuild/__init__.py
+${PYSITELIB}/libscanbuild/__init__.pyc
+${PYSITELIB}/libscanbuild/__init__.pyo
+${PYSITELIB}/libscanbuild/analyze.py
+${PYSITELIB}/libscanbuild/analyze.pyc
+${PYSITELIB}/libscanbuild/analyze.pyo
+${PYSITELIB}/libscanbuild/arguments.py
+${PYSITELIB}/libscanbuild/arguments.pyc
+${PYSITELIB}/libscanbuild/arguments.pyo
+${PYSITELIB}/libscanbuild/clang.py
+${PYSITELIB}/libscanbuild/clang.pyc
+${PYSITELIB}/libscanbuild/clang.pyo
+${PYSITELIB}/libscanbuild/compilation.py
+${PYSITELIB}/libscanbuild/compilation.pyc
+${PYSITELIB}/libscanbuild/compilation.pyo
+${PYSITELIB}/libscanbuild/intercept.py
+${PYSITELIB}/libscanbuild/intercept.pyc
+${PYSITELIB}/libscanbuild/intercept.pyo
+${PYSITELIB}/libscanbuild/report.py
+${PYSITELIB}/libscanbuild/report.pyc
+${PYSITELIB}/libscanbuild/report.pyo
+${PYSITELIB}/libscanbuild/resources/scanview.css
+${PYSITELIB}/libscanbuild/resources/selectable.js
+${PYSITELIB}/libscanbuild/resources/sorttable.js
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
diff --git a/py-scan-build/TODO b/py-scan-build/TODO
new file mode 100644
index 0000000000..e2cfa5d7e7
--- /dev/null
+++ b/py-scan-build/TODO
@@ -0,0 +1,2 @@
+Package finished but lang/clang installs them too.
+But this is smaller. Import or not?
diff --git a/py-scan-build/distinfo b/py-scan-build/distinfo
new file mode 100644
index 0000000000..727db9a15e
--- /dev/null
+++ b/py-scan-build/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (scan-build-2.0.20.tar.gz) = 0b192e9b43298bf4c708d9fe0ea20e77e9929138db7ab6f8821f0fc43c8d45fd
+SHA512 (scan-build-2.0.20.tar.gz) = 96d183bf74cce73600caaf8e3dd4728f52ead1d5f62b75b2a44201e927a58ad58b1665d838464a156f2c384dd3320167338904181ff05ebc60575ed11c9ec2d0
+Size (scan-build-2.0.20.tar.gz) = 46386 bytes


Home | Main Index | Thread Index | Old Index