pkgsrc-WIP-changes archive

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

wip/cppcheck: import cppcheck-1.76.1nb23



Module Name:	pkgsrc-wip
Committed By:	Apurva Nandan <apurva.nandan4%gmail.com@localhost>
Pushed By:	apurvan
Date:		Mon Apr 13 17:56:29 2020 +0530
Changeset:	0ba6a9d6b9d66c258070c235c4a2f10b4a51b0dc

Added Files:
	cppcheck/DESCR
	cppcheck/Makefile
	cppcheck/PLIST
	cppcheck/distinfo
	cppcheck/options.mk

Log Message:
wip/cppcheck: import cppcheck-1.76.1nb23

cppcheck is a tool for static C/C++ code analysis intended to
complement the checking of the compiler.  It checks for memory
leaks, mismatching allocation-deallocation, buffer overrun, unused
functions, coding style, and much more.

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

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

diffstat:
 cppcheck/DESCR      |  4 ++++
 cppcheck/Makefile   | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 cppcheck/PLIST      | 22 +++++++++++++++++++++
 cppcheck/distinfo   |  6 ++++++
 cppcheck/options.mk | 25 ++++++++++++++++++++++++
 5 files changed, 113 insertions(+)

diffs:
diff --git a/cppcheck/DESCR b/cppcheck/DESCR
new file mode 100644
index 0000000000..10918f56f9
--- /dev/null
+++ b/cppcheck/DESCR
@@ -0,0 +1,4 @@
+cppcheck is a tool for static C/C++ code analysis intended to
+complement the checking of the compiler.  It checks for memory
+leaks, mismatching allocation-deallocation, buffer overrun, unused
+functions, coding style, and much more.
diff --git a/cppcheck/Makefile b/cppcheck/Makefile
new file mode 100644
index 0000000000..3a30b56ebb
--- /dev/null
+++ b/cppcheck/Makefile
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile,v 1.65 2020/03/10 22:09:34 wiz Exp $
+
+DISTNAME=	cppcheck-1.76.1
+PKGREVISION=	23
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=cppcheck/}
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	reed%reedmedia.net@localhost
+HOMEPAGE=	http://cppcheck.sourceforge.net/
+COMMENT=	Tool for static C/C++ code analysis
+LICENSE=	gnu-gpl-v3
+
+BUILD_DEPENDS+=	libxslt-[0-9]*:../../textproc/libxslt
+BUILD_DEPENDS+=	docbook-xsl-[0-9]*:../../textproc/docbook-xsl
+DEPENDS+=	${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
+
+USE_LANGUAGES=		c c++0x
+USE_TOOLS+=		gmake
+
+BUILD_TARGET=		all man
+BUILD_MAKE_FLAGS+=	DB2MAN=${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
+# tell cppcheck where its config is
+MAKE_FLAGS+=		CFGDIR=${PREFIX}/share/cppcheck/cfg
+# rules support (needs pcre)
+MAKE_FLAGS+=		HAVE_RULES=yes
+
+# use pkgsrc tinyxml2 instead of included copy
+MAKE_FLAGS+=		TINYXML=
+MAKE_FLAGS+=		INCLUDE_FOR_LIB="-Ilib -Iexternals/simplecpp"
+MAKE_FLAGS+=		INCLUDE_FOR_CLI="-Ilib -Iexternals/simplecpp"
+MAKE_FLAGS+=		INCLUDE_FOR_TEST="-Ilib -Icli -Iexternals/simplecpp"
+CPPFLAGS+=		-I${BUILDLINK_PREFIX.tinyxml2}/include
+LDFLAGS+=		${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.tinyxml2}/lib -L${BUILDLINK_PREFIX.tinyxml2}/lib -ltinyxml2
+
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mgcc-4.[0-5]*) || !empty(CC_VERSION:Mgcc-3.*)
+CXXFLAGS+= -include lib/cxx11emu.h
+.endif
+
+INSTALLATION_DIRS+=	${PKGMANDIR}/man1
+
+REPLACE_PYTHON+=	htmlreport/cppcheck-htmlreport
+REPLACE_PYTHON+=	addons/y2038/y2038.py
+
+.include "options.mk"
+
+.PHONY: man-install
+post-install: man-install
+man-install:
+	${INSTALL_DATA} ${WRKSRC}/cppcheck.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../lang/python/application.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../textproc/tinyxml2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cppcheck/PLIST b/cppcheck/PLIST
new file mode 100644
index 0000000000..52775156b9
--- /dev/null
+++ b/cppcheck/PLIST
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.7 2016/10/25 01:24:02 kamil Exp $
+bin/cert.py
+bin/cppcheck
+${PLIST.qt5}bin/cppcheck-gui
+bin/cppcheck-htmlreport
+bin/cppcheckdata.py
+bin/findcasts.py
+bin/naming.py
+bin/threadsafety.py
+bin/y2038.py
+man/man1/cppcheck.1
+share/cppcheck/cfg/avr.cfg
+share/cppcheck/cfg/cppcheck-cfg.rng
+share/cppcheck/cfg/gnu.cfg
+share/cppcheck/cfg/gtk.cfg
+share/cppcheck/cfg/microsoft_sal.cfg
+share/cppcheck/cfg/posix.cfg
+share/cppcheck/cfg/qt.cfg
+share/cppcheck/cfg/sdl.cfg
+share/cppcheck/cfg/std.cfg
+share/cppcheck/cfg/windows.cfg
+share/cppcheck/cfg/wxwidgets.cfg
diff --git a/cppcheck/distinfo b/cppcheck/distinfo
new file mode 100644
index 0000000000..9bd6a8743c
--- /dev/null
+++ b/cppcheck/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.14 2016/10/25 01:24:02 kamil Exp $
+
+SHA1 (cppcheck-1.76.1.tar.bz2) = 7202ddea9fd4943975afb0a81a95a909e1e8ceda
+RMD160 (cppcheck-1.76.1.tar.bz2) = 608c281bfd039522de920cb08fa8e1b64054471f
+SHA512 (cppcheck-1.76.1.tar.bz2) = 2cc7c3faeb6ba7e05efeb4f848c4b026b09e86adfa2301dfc15a7b20e9b96f95037ceef2373ed74676e60e51f6060957ff187c7ac598ef67e0975bfedd8e56ff
+Size (cppcheck-1.76.1.tar.bz2) = 1166292 bytes
diff --git a/cppcheck/options.mk b/cppcheck/options.mk
new file mode 100644
index 0000000000..ef2de2d8f1
--- /dev/null
+++ b/cppcheck/options.mk
@@ -0,0 +1,25 @@
+# $NetBSD: options.mk,v 1.6 2016/09/19 11:05:53 wiz Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.cppcheck
+PKG_SUPPORTED_OPTIONS=	qt5
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=	qt5
+
+.if !empty(PKG_OPTIONS:Mqt5)
+PLIST.qt5=	yes
+USE_LIBTOOL=	yes
+
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/qt5-qttools/buildlink3.mk"
+
+post-build:
+	cd ${WRKSRC}/gui && \
+		${CONFIGURE_ENV} QTDIR=${QTDIR} HAVE_RULES=yes ${QTDIR}/bin/qmake gui.pro && \
+		${MAKE_ENV} QTDIR=${QTDIR} make
+
+post-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/gui/cppcheck-gui ${DESTDIR}${PREFIX}/bin
+
+.endif


Home | Main Index | Thread Index | Old Index