From bfbc80e3ca135a674826434fddc51f4b46f67dd5 Mon Sep 17 00:00:00 2001 From: sem Date: Wed, 15 Dec 2004 12:12:15 +0000 Subject: cut is a C Unit Testing Framework. PR: ports/75093 Submitted by: Sergei Gnezdov --- devel/Makefile | 1 + devel/cut/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ devel/cut/distinfo | 2 ++ devel/cut/pkg-descr | 17 +++++++++++++++++ devel/cut/pkg-plist | 30 ++++++++++++++++++++++++++++++ 5 files changed, 93 insertions(+) create mode 100644 devel/cut/Makefile create mode 100644 devel/cut/distinfo create mode 100644 devel/cut/pkg-descr create mode 100644 devel/cut/pkg-plist (limited to 'devel') diff --git a/devel/Makefile b/devel/Makefile index 224de76b33d..2d87f419ffd 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -152,6 +152,7 @@ SUBDIR += cssc SUBDIR += cstringbuffer SUBDIR += ctags + SUBDIR += cut SUBDIR += cutils SUBDIR += cvs+ipv6 SUBDIR += cvs2cl diff --git a/devel/cut/Makefile b/devel/cut/Makefile new file mode 100644 index 00000000000..ee096a663eb --- /dev/null +++ b/devel/cut/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: cut +# Date created: December 5 2004 +# Whom: Sergei Gnezdov +# +# $FreeBSD$ +# + +PORTNAME= cut +PORTVERSION= 2.4 +CATEGORIES= devel +MASTER_SITES= http://www.falvotech.com/downloads/ + +MAINTAINER= sgnezdov@sergei.homeunix.org +COMMENT= Unit Testing Framework for C, C++ and Objective-C + +DISTVERSIONSUFFIX= rc1 + +EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${PORTVERSION} +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} + +# related to build target +ALL_TARGET= bin/cutgen + +# cut interface is compatible at major version number +major= 2 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/cutgen ${PREFIX}/bin/cutgen-${major} + ${CP} -R ${WRKSRC}/include/* ${PREFIX}/include/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR}/tutorial + ${CP} ${WRKSRC}/LICENSE ${WRKSRC}/docs/README ${WRKSRC}/CHANGELOG ${DOCSDIR}/ + ${CP} -R ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.c\ + ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.h\ + ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.dvi\ + ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.pdf\ + ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.ps\ + ${DOCSDIR}/tutorial/ + ${MKDIR} ${EXAMPLESDIR}/ + ${CP} -R ${WRKSRC}/test/* ${EXAMPLESDIR}/ +.endif + +.include diff --git a/devel/cut/distinfo b/devel/cut/distinfo new file mode 100644 index 00000000000..c95241b4ddb --- /dev/null +++ b/devel/cut/distinfo @@ -0,0 +1,2 @@ +MD5 (cut-2.4rc1.tar.gz) = d0778c933ab18c11f29978fe031609ed +SIZE (cut-2.4rc1.tar.gz) = 120783 diff --git a/devel/cut/pkg-descr b/devel/cut/pkg-descr new file mode 100644 index 00000000000..f49c7811bf4 --- /dev/null +++ b/devel/cut/pkg-descr @@ -0,0 +1,17 @@ +CUT is a simple, to-the-point unit testing system. It's different from +other unit test packages in that it follows the KISS principle. It's +designed for C testing, not designed to emulate SUnit. + +CUT works with C, C++ and Objective-C. + +CUT was primarily written by Samuel A. Falvo II and by Billy Tanksley, +starting life as distinct, and even competing, CUT 1.0 and test-assert +packages. When it was finally decided to combine both packages into a +single tool, CUT 2.0 was released, and found to be vastly more useful +than either expected. CUT 2.3 is the latest version of the CUT 2.x +series. + +CUT follows standard error messages format supported by Emacs. + +SourceForge.net location: WWW: http://sourceforge.net/projects/cut/ +Home Page: WWW: http://www.falvotech.com/projects/cut.php diff --git a/devel/cut/pkg-plist b/devel/cut/pkg-plist new file mode 100644 index 00000000000..fd768cf8cef --- /dev/null +++ b/devel/cut/pkg-plist @@ -0,0 +1,30 @@ +bin/cutgen-2 +include/cut-2/cut.h +%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/tutorial/Compute.c +%%PORTDOCS%%%%DOCSDIR%%/tutorial/Compute.h +%%PORTDOCS%%%%DOCSDIR%%/tutorial/Compute1.c +%%PORTDOCS%%%%DOCSDIR%%/tutorial/Main.c +%%PORTDOCS%%%%DOCSDIR%%/tutorial/TestCompute.c +%%PORTDOCS%%%%DOCSDIR%%/tutorial/Tutorial.dvi +%%PORTDOCS%%%%DOCSDIR%%/tutorial/Tutorial.pdf +%%PORTDOCS%%%%DOCSDIR%%/tutorial/Tutorial.ps +%%PORTDOCS%%%%EXAMPLESDIR%%/all-pass/Makefile +%%PORTDOCS%%%%EXAMPLESDIR%%/all-pass/cut-pass.c +%%PORTDOCS%%%%EXAMPLESDIR%%/bringup-failure/Makefile +%%PORTDOCS%%%%EXAMPLESDIR%%/bringup-failure/cut-explode1.c +%%PORTDOCS%%%%EXAMPLESDIR%%/bringup-failure/cut-explode2.c +%%PORTDOCS%%%%EXAMPLESDIR%%/normal-failure/Makefile +%%PORTDOCS%%%%EXAMPLESDIR%%/normal-failure/cut-explode.c +%%PORTDOCS%%%%EXAMPLESDIR%%/simple-demo-pass/Makefile +%%PORTDOCS%%%%EXAMPLESDIR%%/simple-demo-pass/cut-pass.c +@dirrm include/cut-2 +%%PORTDOCS%%@dirrm %%DOCSDIR%%/tutorial +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/all-pass +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/bringup-failure +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/normal-failure +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/simple-demo-pass +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% -- cgit