summaryrefslogtreecommitdiff
path: root/devel/creduce
diff options
context:
space:
mode:
authorjoerg <joerg>2016-11-02 00:15:43 +0000
committerjoerg <joerg>2016-11-02 00:15:43 +0000
commitbcfc7a92f792763369d7ae43fd7ecf54e3d51dd3 (patch)
tree4660c4195d41520cb8fa0a8df1c4f8c972740067 /devel/creduce
parent20587d5027de8987049aff821ca869a74cc7388b (diff)
downloadpkgsrc-bcfc7a92f792763369d7ae43fd7ecf54e3d51dd3.tar.gz
Add creduce-2.5.0:
C-Reduce is a tool that takes a large C, C++, or OpenCL file that has a property of interest (such as triggering a compiler bug) and automatically produces a much smaller C/C++ file that has the same property. It is intended for use by people who discover and report bugs in compilers and other tools that process source code.
Diffstat (limited to 'devel/creduce')
-rw-r--r--devel/creduce/DESCR5
-rw-r--r--devel/creduce/Makefile29
-rw-r--r--devel/creduce/PLIST25
-rw-r--r--devel/creduce/distinfo8
-rw-r--r--devel/creduce/patches/patch-clang__delta_Makefile.am13
-rw-r--r--devel/creduce/patches/patch-clang__delta_Makefile.in13
6 files changed, 93 insertions, 0 deletions
diff --git a/devel/creduce/DESCR b/devel/creduce/DESCR
new file mode 100644
index 00000000000..6bf3ec2950c
--- /dev/null
+++ b/devel/creduce/DESCR
@@ -0,0 +1,5 @@
+C-Reduce is a tool that takes a large C, C++, or OpenCL file that has a
+property of interest (such as triggering a compiler bug) and
+automatically produces a much smaller C/C++ file that has the same
+property. It is intended for use by people who discover and report bugs
+in compilers and other tools that process source code.
diff --git a/devel/creduce/Makefile b/devel/creduce/Makefile
new file mode 100644
index 00000000000..994a529b36d
--- /dev/null
+++ b/devel/creduce/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2016/11/02 00:15:43 joerg Exp $
+
+DISTNAME= creduce-2.5.0
+CATEGORIES= devel
+MASTER_SITES= https://embed.cs.utah.edu/creduce/
+
+MAINTAINER= joerg@NetBSD.org
+HOMEPAGE= https://embed.cs.utah.edu/creduce/
+COMMENT= Tool for automatic reduction of C/C++ files triggering bugs
+LICENSE= 2-clause-bsd
+
+GNU_CONFIGURE= yes
+
+USE_TOOLS+= flex perl:run gmake
+USE_LANGUAGES= c c++
+
+DEPENDS+= p5-Exporter-Lite-[0-9]*:../../devel/p5-Exporter-Lite
+DEPENDS+= p5-File-Which-[0-9]*:../../devel/p5-File-Which
+DEPENDS+= p5-Getopt-Tabular-[0-9]*:../../devel/p5-Getopt-Tabular
+DEPENDS+= p5-Term-ReadKey-[0-9]*:../../devel/p5-Term-ReadKey
+DEPENDS+= p5-Sys-CPU-[0-9]*:../../sysutils/p5-Sys-CPU
+DEPENDS+= p5-Regexp-Common-[0-9]*:../../textproc/p5-Regexp-Common
+
+.include "../../mk/bsd.prefs.mk"
+
+CXXFLAGS+= -std=c++11
+
+.include "../../lang/clang/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/creduce/PLIST b/devel/creduce/PLIST
new file mode 100644
index 00000000000..de40448eefc
--- /dev/null
+++ b/devel/creduce/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1 2016/11/02 00:15:43 joerg Exp $
+bin/creduce
+libexec/clang_delta
+libexec/clex
+libexec/strlex
+libexec/topformflat
+libexec/unifdef
+share/creduce/perl/creduce_config.pm
+share/creduce/perl/creduce_regexes.pm
+share/creduce/perl/creduce_utils.pm
+share/creduce/perl/pass_balanced.pm
+share/creduce/perl/pass_blank.pm
+share/creduce/perl/pass_clang.pm
+share/creduce/perl/pass_clang_binsrch.pm
+share/creduce/perl/pass_clex.pm
+share/creduce/perl/pass_comments.pm
+share/creduce/perl/pass_include_includes.pm
+share/creduce/perl/pass_includes.pm
+share/creduce/perl/pass_indent.pm
+share/creduce/perl/pass_ints.pm
+share/creduce/perl/pass_lines.pm
+share/creduce/perl/pass_peep.pm
+share/creduce/perl/pass_special.pm
+share/creduce/perl/pass_ternary.pm
+share/creduce/perl/pass_unifdef.pm
diff --git a/devel/creduce/distinfo b/devel/creduce/distinfo
new file mode 100644
index 00000000000..eb3ea76eed2
--- /dev/null
+++ b/devel/creduce/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2016/11/02 00:15:43 joerg Exp $
+
+SHA1 (creduce-2.5.0.tar.gz) = 3b0400bf9163ff707d9a046b501b75a233f73533
+RMD160 (creduce-2.5.0.tar.gz) = c7166d53c8e57455fabcdbbab82304de7395e05b
+SHA512 (creduce-2.5.0.tar.gz) = 5292381ddf5e2b061bcfb1a3f52cd25cab3ab5985faade7c779c41be19b5cf7309fbcfff1428f026bfcee5da7c6f898b0b8fa48d03ef83acd64000c3ece2189d
+Size (creduce-2.5.0.tar.gz) = 742516 bytes
+SHA1 (patch-clang__delta_Makefile.am) = f8c9201b12b07ff6499f40bba49c37ac1ee67739
+SHA1 (patch-clang__delta_Makefile.in) = 49b005fe89225f785bbe41fb5e0b4a3027121a79
diff --git a/devel/creduce/patches/patch-clang__delta_Makefile.am b/devel/creduce/patches/patch-clang__delta_Makefile.am
new file mode 100644
index 00000000000..696e1adf1b3
--- /dev/null
+++ b/devel/creduce/patches/patch-clang__delta_Makefile.am
@@ -0,0 +1,13 @@
+$NetBSD: patch-clang__delta_Makefile.am,v 1.1 2016/11/02 00:15:43 joerg Exp $
+
+--- clang_delta/Makefile.am.orig 2016-11-01 21:32:26.772471037 +0000
++++ clang_delta/Makefile.am
+@@ -93,8 +93,6 @@ clang_delta_CXXFLAGS = \
+ # libraries. So probably, we could move `LLVMLDFLAGS' back to the definition
+ # of `clang_delta_LDFLAGS'. I'll do that later.
+ clang_delta_LDADD = \
+- -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers \
+- -lclangStaticAnalyzerCore \
+ -lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization \
+ -lclangCodeGen -lclangParse -lclangSema -lclangAnalysis \
+ -lclangRewriteFrontend -lclangRewrite -lclangAST -lclangBasic -lclangEdit -lclangLex \
diff --git a/devel/creduce/patches/patch-clang__delta_Makefile.in b/devel/creduce/patches/patch-clang__delta_Makefile.in
new file mode 100644
index 00000000000..311862491b1
--- /dev/null
+++ b/devel/creduce/patches/patch-clang__delta_Makefile.in
@@ -0,0 +1,13 @@
+$NetBSD: patch-clang__delta_Makefile.in,v 1.1 2016/11/02 00:15:43 joerg Exp $
+
+--- clang_delta/Makefile.in.orig 2016-11-01 21:32:43.204473218 +0000
++++ clang_delta/Makefile.in
+@@ -488,8 +488,6 @@ clang_delta_CXXFLAGS = \
+ # libraries. So probably, we could move `LLVMLDFLAGS' back to the definition
+ # of `clang_delta_LDFLAGS'. I'll do that later.
+ clang_delta_LDADD = \
+- -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers \
+- -lclangStaticAnalyzerCore \
+ -lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization \
+ -lclangCodeGen -lclangParse -lclangSema -lclangAnalysis \
+ -lclangRewriteFrontend -lclangRewrite -lclangAST -lclangBasic -lclangEdit -lclangLex \