summaryrefslogtreecommitdiff
path: root/devel/cunit
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2009-01-10 21:03:58 +0000
committeragc <agc@pkgsrc.org>2009-01-10 21:03:58 +0000
commitd1b819101e7cdc472ef13a1b7f56e9550457ff92 (patch)
treed4a258f15e7e6dd00e5fe43312ad2cf86b30483e /devel/cunit
parenta14c71f05bbbf4f5237be2693dc99a2b92e3a1b6 (diff)
downloadpkgsrc-d1b819101e7cdc472ef13a1b7f56e9550457ff92.tar.gz
Initial import of CUnit-2.1 into the packages collection.
CUnit is a lightweight system for writing, administering, and running unit tests in C. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. CUnit is built as a static library which is linked with the user's testing code. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. These interfaces currently include: Automated Output to xml file Non-interactive Basic Flexible programming interface Non-interactive Console Console interface (ansi C) Interactive Curses Graphical interface (Unix) Interactive
Diffstat (limited to 'devel/cunit')
-rw-r--r--devel/cunit/DESCR15
-rw-r--r--devel/cunit/Makefile23
-rw-r--r--devel/cunit/PLIST42
-rw-r--r--devel/cunit/buildlink3.mk19
-rw-r--r--devel/cunit/distinfo8
-rw-r--r--devel/cunit/patches/patch-aa14
-rw-r--r--devel/cunit/patches/patch-ab15
-rw-r--r--devel/cunit/patches/patch-ac15
8 files changed, 151 insertions, 0 deletions
diff --git a/devel/cunit/DESCR b/devel/cunit/DESCR
new file mode 100644
index 00000000000..13a5da80967
--- /dev/null
+++ b/devel/cunit/DESCR
@@ -0,0 +1,15 @@
+CUnit is a lightweight system for writing, administering, and running
+unit tests in C. It provides C programmers a basic testing
+functionality with a flexible variety of user interfaces.
+
+CUnit is built as a static library which is linked with the user's
+testing code. It uses a simple framework for building test
+structures, and provides a rich set of assertions for testing common
+data types. In addition, several different interfaces are provided
+for running tests and reporting results. These interfaces currently
+include:
+
+Automated Output to xml file Non-interactive
+Basic Flexible programming interface Non-interactive
+Console Console interface (ansi C) Interactive
+Curses Graphical interface (Unix) Interactive
diff --git a/devel/cunit/Makefile b/devel/cunit/Makefile
new file mode 100644
index 00000000000..f9fbc0ffd70
--- /dev/null
+++ b/devel/cunit/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/10 21:03:58 agc Exp $
+
+DISTNAME= CUnit-2.1-0-src
+PKGNAME= CUnit-2.1
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cunit/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://cunit.sourceforge.net/
+COMMENT= C Unit xhecking test software
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+DEPENDS+= autoconf-*:../../devel/autoconf
+
+WRKSRC= ${WRKDIR}/CUnit-2.1-0
+
+INSTALLATION_DIRS+= include/CUnit share/doc/CUnit
+INSTALLATION_DIRS+= share/CUnit share/doc/CUnit/headers
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/cunit/PLIST b/devel/cunit/PLIST
new file mode 100644
index 00000000000..cdb66a9e0d7
--- /dev/null
+++ b/devel/cunit/PLIST
@@ -0,0 +1,42 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/10 21:03:58 agc Exp $
+include/CUnit/Automated.h
+include/CUnit/Basic.h
+include/CUnit/CUError.h
+include/CUnit/CUnit.h
+include/CUnit/Console.h
+include/CUnit/MyMem.h
+include/CUnit/TestDB.h
+include/CUnit/TestRun.h
+include/CUnit/Util.h
+lib/libcunit.la
+man/man3/CUnit.3
+share/CUnit/CUnit-List.dtd
+share/CUnit/CUnit-List.xsl
+share/CUnit/CUnit-Run.dtd
+share/CUnit/CUnit-Run.xsl
+share/CUnit/Memory-Dump.dtd
+share/CUnit/Memory-Dump.xsl
+share/doc/CUnit/CUnit_doc.css
+share/doc/CUnit/error_handling.html
+share/doc/CUnit/fdl.html
+share/doc/CUnit/headers/Automated.h
+share/doc/CUnit/headers/Basic.h
+share/doc/CUnit/headers/CUCurses.h
+share/doc/CUnit/headers/CUError.h
+share/doc/CUnit/headers/CUnit.h
+share/doc/CUnit/headers/Console.h
+share/doc/CUnit/headers/MyMem.h
+share/doc/CUnit/headers/TestDB.h
+share/doc/CUnit/headers/TestRun.h
+share/doc/CUnit/headers/Util.h
+share/doc/CUnit/headers/Win.h
+share/doc/CUnit/index.html
+share/doc/CUnit/introduction.html
+share/doc/CUnit/managing_tests.html
+share/doc/CUnit/running_tests.html
+share/doc/CUnit/test_registry.html
+share/doc/CUnit/writing_tests.html
+@dirrm share/doc/CUnit/headers
+@dirrm share/doc/CUnit
+@dirrm share/CUnit
+@dirrm include/CUnit
diff --git a/devel/cunit/buildlink3.mk b/devel/cunit/buildlink3.mk
new file mode 100644
index 00000000000..01edbb5a12f
--- /dev/null
+++ b/devel/cunit/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/01/10 21:03:58 agc Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+CUNIT_BUILDLINK3_MK:= ${CUNIT_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= CUnit
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:NCUnit}
+BUILDLINK_PACKAGES+= CUnit
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}CUnit
+
+.if ${CUNIT_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.CUnit+= CUnit>=2.1
+BUILDLINK_PKGSRCDIR.CUnit?= ../../devel/cunit
+.endif # CUNIT_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/devel/cunit/distinfo b/devel/cunit/distinfo
new file mode 100644
index 00000000000..146366cab48
--- /dev/null
+++ b/devel/cunit/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/10 21:03:58 agc Exp $
+
+SHA1 (CUnit-2.1-0-src.tar.gz) = 05920c1defda3527cee3bc82fb9eadf45c5ea7a1
+RMD160 (CUnit-2.1-0-src.tar.gz) = db3e8ea2294faae8301b597164f07fe482e877b5
+Size (CUnit-2.1-0-src.tar.gz) = 628767 bytes
+SHA1 (patch-aa) = bf27a2c600a217e4d53fc59b2765f1b87f168100
+SHA1 (patch-ab) = cc16d516fde43a5a4de62fce1a061dd6bd6366f7
+SHA1 (patch-ac) = 6f385dabae5dd46862dcaff157782dc5ec08d63a
diff --git a/devel/cunit/patches/patch-aa b/devel/cunit/patches/patch-aa
new file mode 100644
index 00000000000..cd451c5018b
--- /dev/null
+++ b/devel/cunit/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/01/10 21:03:58 agc Exp $
+
+Place documentation in the correct place
+
+--- doc/Makefile.am 2009/01/10 17:32:20 1.1
++++ doc/Makefile.am 2009/01/10 17:32:29
+@@ -1,6 +1,6 @@
+ ## Process this file with automake to produce Makefile.in
+
+-docdir = $(prefix)/doc/@PACKAGE@
++docdir = $(prefix)/share/doc/@PACKAGE@
+
+ doc_DATA = \
+ CUnit_doc.css \
diff --git a/devel/cunit/patches/patch-ab b/devel/cunit/patches/patch-ab
new file mode 100644
index 00000000000..42d33b54593
--- /dev/null
+++ b/devel/cunit/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/01/10 21:03:58 agc Exp $
+
+Place docs in correct directory
+
+--- doc/Makefile.in 2009/01/10 17:57:40 1.1
++++ doc/Makefile.in 2009/01/10 17:58:05
+@@ -192,7 +192,7 @@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+-docdir = $(prefix)/doc/@PACKAGE@
++docdir = $(prefix)/share/doc/@PACKAGE@
+ doc_DATA = \
+ CUnit_doc.css \
+ error_handling.html \
diff --git a/devel/cunit/patches/patch-ac b/devel/cunit/patches/patch-ac
new file mode 100644
index 00000000000..02e0b951ed4
--- /dev/null
+++ b/devel/cunit/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/01/10 21:03:58 agc Exp $
+
+Place doc headers in correct directory
+
+--- doc/headers/Makefile.in 2009/01/10 18:01:36 1.1
++++ doc/headers/Makefile.in 2009/01/10 18:02:34
+@@ -183,7 +183,7 @@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+-dochdrdir = $(prefix)/doc/@PACKAGE@/headers
++dochdrdir = $(prefix)/share/doc/@PACKAGE@/headers
+ INCLUDE_FILES = \
+ Automated.h \
+ Basic.h \