From a663912518aa58c09fe94f69d954de2dd64554ec Mon Sep 17 00:00:00 2001 From: ichiro Date: Mon, 21 Jan 2008 11:08:33 +0000 Subject: initial import for cut (C Unit Tester) see. http://www.falvotech.com/content/cut/ this pkgsrc was contributed by Toshiaki Nozawa --- devel/cut/patches/patch-aa | 18 ++++++++++++++++++ devel/cut/patches/patch-ab | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 devel/cut/patches/patch-aa create mode 100644 devel/cut/patches/patch-ab (limited to 'devel/cut/patches') diff --git a/devel/cut/patches/patch-aa b/devel/cut/patches/patch-aa new file mode 100644 index 00000000000..9c40a3c4182 --- /dev/null +++ b/devel/cut/patches/patch-aa @@ -0,0 +1,18 @@ +$NetBSD: patch-aa,v 1.1 2008/01/21 11:08:33 ichiro Exp $ + +--- Makefile.orig 2006-04-26 02:54:39.000000000 +0900 ++++ Makefile 2008-01-19 19:40:19.000000000 +0900 +@@ -4,11 +4,11 @@ + + .SUFFIXES: + +-INSTALLPATH := /usr/local ++INSTALLPATH = $(LOCALBASE) + INCDIR := $(INSTALLPATH)/include/cut-2 + BINDIR := $(INSTALLPATH)/bin + +-bin/cutgen: ++all: + (cd src; make posix) + mv src/cutgen bin + diff --git a/devel/cut/patches/patch-ab b/devel/cut/patches/patch-ab new file mode 100644 index 00000000000..c7faa6b9fb6 --- /dev/null +++ b/devel/cut/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.1 2008/01/21 11:08:33 ichiro Exp $ + +--- src/cuttemplate.c.orig 2006-04-26 03:11:47.000000000 +0900 ++++ src/cuttemplate.c 2008-01-20 16:12:45.000000000 +0900 +@@ -64,7 +64,7 @@ + "", + "static void print_integer_as_expected( int i )", + "{", +- " printf( \"(signed) %d (unsigned) %u (hex) 0x%08lX\", i, i, i );", ++ " printf( \"(signed) %d (unsigned) %u (hex) 0x%08lX\", i, i, (long)i );", + "}", + "", + "static void print_integer( int i )", +@@ -354,6 +354,7 @@ + "", + " cut_exit();", + " } else return 1;", ++ " return 0;", + "}", + "", + "void __cut_end( char *filename, int lineNumber, char *closingFrame )", -- cgit v1.2.3