pkgsrc-WIP-changes archive

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

semgrep-core: Import semgrep-core-0.60.0



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Tue Aug 10 23:11:02 2021 +0200
Changeset:	b17be472381dbd3af1f40b0b9320083638de5268

Added Files:
	semgrep-core/DESCR
	semgrep-core/Makefile
	semgrep-core/PLIST

Log Message:
semgrep-core: Import semgrep-core-0.60.0

semgrep is a tool for easily detecting and preventing bugs and
anti-patterns in your codebase. It combines the convenience of grep
with the correctness of syntactical and semantic search. Developers,
DevOps engineers, and security engineers use semgrep to write code with
confidence.

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

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

diffstat:
 semgrep-core/DESCR    |  5 +++++
 semgrep-core/Makefile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 semgrep-core/PLIST    |  3 +++
 3 files changed, 59 insertions(+)

diffs:
diff --git a/semgrep-core/DESCR b/semgrep-core/DESCR
new file mode 100644
index 0000000000..3a6c080e75
--- /dev/null
+++ b/semgrep-core/DESCR
@@ -0,0 +1,5 @@
+semgrep is a tool for easily detecting and preventing bugs and
+anti-patterns in your codebase. It combines the convenience of grep
+with the correctness of syntactical and semantic search. Developers,
+DevOps engineers, and security engineers use semgrep to write code with
+confidence.
diff --git a/semgrep-core/Makefile b/semgrep-core/Makefile
new file mode 100644
index 0000000000..779599c09e
--- /dev/null
+++ b/semgrep-core/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD$
+
+DISTNAME=	semgrep-core-0.60.0
+PKGREVISION=	0
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=returntocorp/}
+GITHUB_PROJECT=	semgrep
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+GIT_REPO=	https://github.com/returntocorp/semgrep.git
+GIT_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/returntocorp/semgrep/
+COMMENT=	Lightweight static analysis for many languages
+LICENSE=	gnu-lgpl-v2.1
+
+TOOL_DEPENDS+=	git-base-[0-9]*:../../devel/git-base
+
+UNLIMIT_RESOURCES+=	stacksize # needed by parsexp
+USE_LANGUAGES=		c c++
+USE_TOOLS+=		gmake pkg-config
+WRKSRC=			${WRKDIR}/semgrep
+
+MAKE_ENV+=	HOMEBREW_SYSTEM=fake
+MAKE_ENV+=	OPAMROOT=${WRKSRC}/opam
+MAKE_ENV+=	OPAMYES=1
+
+INSTALLATION_DIRS=	bin
+
+do-build:
+	${RUN} cd ${WRKSRC} && \
+	    ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} opam init --no-setup --disable-sandboxing && \
+	    ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} opam update -y && \
+	    ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} opam install -y --deps-only ./semgrep-core/src/pfff && \
+	    ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} opam install -y --deps-only ./semgrep-core/src/ocaml-tree-sitter-core && \
+	    ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} opam install -y --deps-only ./semgrep-core
+	${RUN} cd ${WRKSRC}/semgrep-core && \
+	    ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} opam exec -- make all && \
+	    ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} opam exec -- make install
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/semgrep/semgrep/bin/semgrep-core ${DESTDIR}${PREFIX}/bin/semgrep-core
+	${INSTALL_PROGRAM} ${WRKSRC}/semgrep/semgrep/bin/spacegrep ${DESTDIR}${PREFIX}/bin/spacegrep
+
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../misc/ocaml-opam/buildlink3.mk"
+.include "../../wip/tree-sitter/buildlink3.mk"
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/semgrep-core/PLIST b/semgrep-core/PLIST
new file mode 100644
index 0000000000..aeac9dc14b
--- /dev/null
+++ b/semgrep-core/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/semgrep-core
+bin/spacegrep


Home | Main Index | Thread Index | Old Index