From nobody@FreeBSD.org  Tue Feb 19 21:16:12 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 84C0137B400
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Feb 2002 21:16:12 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g1K5GCX12203;
	Tue, 19 Feb 2002 21:16:12 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202200516.g1K5GCX12203@freefall.freebsd.org>
Date: Tue, 19 Feb 2002 21:16:12 -0800 (PST)
From: Jiwon Seo <seojiwonn@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: unittest framework for c
X-Send-Pr-Version: www-1.0

>Number:         35131
>Category:       ports
>Synopsis:       New port: unittest framework for c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 19 21:20:01 PST 2002
>Closed-Date:    Sat Oct 26 05:55:34 PDT 2002
>Last-Modified:  Sat Oct 26 05:55:34 PDT 2002
>Originator:     Jiwon Seo
>Release:        4.4-RELEASE
>Organization:
SoftWise INC.
>Environment:
FreeBSD localhost 4.4-RELEASE FreeBSD 4.4-RELEASE #5: Sun Jan  2 00:51:32 KST 2000     root@mecury.net:/usr/obj/usr/src/sys/SKIDKERN  i386
>Description:

>How-To-Repeat:
      
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       autounit
#       autounit/files
#       autounit/files/patch-test.h
#       autounit/pkg-comment
#       autounit/Makefile
#       autounit/pkg-descr
#       autounit/distinfo
#       autounit/pkg-plist
#
echo c - autounit
mkdir -p autounit > /dev/null 2>&1
echo c - autounit/files
mkdir -p autounit/files > /dev/null 2>&1
echo x - autounit/files/patch-test.h
sed 's/^X//' >autounit/files/patch-test.h << 'END-of-autounit/files/patch-test.h'
X--- c-unit/test.h.orig Tue Sep 18 00:56:11 2001
X+++ c-unit/test.h      Tue Feb 19 17:15:11 2002
X@@ -116,16 +116,12 @@
X                                       gint rounds,gint modulo);
X void au_delete_testcase(autounit_testcase_t *t);
X
X-#define __au_assert_fail(file,line,msg) \
X-                                 file ":" \
X-                                 #line \
X-                                 ":FAIL:" \
X-                                 msg "\n"
X #define au_assert(test,err_msg,expr) (void)((expr) ? 0 : \
X-                   (test->test_status = \
X-                   g_string_append(test->test_status, \
X-                                 __au_assert_fail \
X-                     (__FILE__,__LINE__,err_msg)),test->failed_assertions++))
X+                   (g_string_sprintfa(test->test_status, \
X+                        "%s:%d(%s):(%s) FAIL: %s\n",\
X+                              __FILE__,__LINE__,__PRETTY_FUNCTION__,\
X+                                              #expr,err_msg),\
X+                        test->failed_assertions++))
X
X      /* Utility functions used internally by Autounit */
X GString *au_gstring_to_netstring(GString *s);
X@@ -145,6 +141,9 @@
X #include <string.h>
X char * strndup(const char * s, size_t n);
X #endif
X+
X+#define FORK          (1)
X+#define FORK_NOT      (0)
X
X #endif  /* AUTOUNIT_C_TEST_H */
X
END-of-autounit/files/patch-test.h
echo x - autounit/pkg-comment
sed 's/^X//' >autounit/pkg-comment << 'END-of-autounit/pkg-comment'
XUnittesting framework for C
END-of-autounit/pkg-comment
echo x - autounit/Makefile
sed 's/^X//' >autounit/Makefile << 'END-of-autounit/Makefile'
X# New ports collection makefile for:   autounit
X# Date created:                18 Feburary 2002
X# Whom:                                Jiwon Seo <seojiwonn@yahoo.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      autounit
XPORTVERSION=   0.10.2
XCATEGORIES=    devel
XMASTER_SITES=  http://www.recursism.com/projects/autounit/
X
XDISTNAME=       ${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=    seojiwonn@yahoo.com
X
XUSE_GLIB=      yes
XGNU_CONFIGURE= yes
X
Xpost-patch:
X       ${PERL} -pi -e "s,glib-config,${GLIB_CONFIG},g" \
X                       ${WRKSRC}/c-unit/Makefile.in
X       ${PERL} -pi -e "s,glib-config,${GLIB_CONFIG},g" ${WRKSRC}/configure
X.include <bsd.port.mk>
END-of-autounit/Makefile
echo x - autounit/pkg-descr
sed 's/^X//' >autounit/pkg-descr << 'END-of-autounit/pkg-descr'
XGNU Autounit is a unittesting framework for C.
XIt can set each test to be forked or non-forked(for debugging).
XAutounit is supposed to be used with GNU Autoconf,
Xbut it can be used alone.
X
XWWW: http://www.recursism.com/projects/autounit/autounit.html
END-of-autounit/pkg-descr
echo x - autounit/distinfo
sed 's/^X//' >autounit/distinfo << 'END-of-autounit/distinfo'
XMD5 (autounit-0.10.2.tar.gz) = 85ba614a10c789644a7ee986c496dcb3
END-of-autounit/distinfo
echo x - autounit/pkg-plist
sed 's/^X//' >autounit/pkg-plist << 'END-of-autounit/pkg-plist'
Xdoc/autounit-0.10.2/autounit.html
Xdoc/autounit-0.10.2/AUTHORS
Xdoc/autounit-0.10.2/COPYING
Xdoc/autounit-0.10.2/ChangeLog
Xdoc/autounit-0.10.2/INSTALL
Xdoc/autounit-0.10.2/NEWS
Xdoc/autounit-0.10.2/README
Xinclude/c-unit/test.h
Xinfo/autounit.info
Xinfo/dir
Xlib/libau-c-unit.a
X@dirrm doc/autounit-0.10.2
X@unexec rmdir %D/doc 2>/dev/null || true
X@dirrm include/c-unit
X@unexec rmdir %D/inlude 2>/dev/null || true
END-of-autounit/pkg-plist
exit
>Release-Note:
>Audit-Trail:

From: "Jiwon Seo" <seojiwonn@yahoo.com>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: ports/35131: New port: unittest framework for c
Date: Mon, 25 Feb 2002 13:57:02 +0900

 documents were installed in /usr/local/doc/autounit-0.10.2, 
 and I changed it to installed to /usr/local/share/doc/autounit-0.10.2.
 here's the diff.
 
 diff -rNu autounit.old/Makefile autounit/Makefile
 --- autounit.old/Makefile       Mon Feb 25 10:53:01 2002
 +++ autounit/Makefile   Mon Feb 25 12:51:35 2002
 @@ -21,4 +21,6 @@
         ${PERL} -pi -e "s,glib-config,${GLIB_CONFIG},g" \
                         ${WRKSRC}/c-unit/Makefile.in
         ${PERL} -pi -e "s,glib-config,${GLIB_CONFIG},g" ${WRKSRC}/configure
 +       ${PERL} -pi -e "s,/doc/,/share/doc/,g" ${WRKSRC}/doc/Makefile.in
 +       ${PERL} -pi -e "s,/doc/,/share/doc/,g" ${WRKSRC}/Makefile.in
  .include <bsd.port.mk>
 diff -rNu autounit.old/pkg-plist autounit/pkg-plist
 --- autounit.old/pkg-plist      Mon Feb 25 10:53:01 2002
 +++ autounit/pkg-plist  Mon Feb 25 11:36:38 2002
 @@ -1,15 +1,15 @@
 -doc/autounit-0.10.2/autounit.html
 -doc/autounit-0.10.2/AUTHORS
 -doc/autounit-0.10.2/COPYING
 -doc/autounit-0.10.2/ChangeLog
 -doc/autounit-0.10.2/INSTALL
 -doc/autounit-0.10.2/NEWS
 -doc/autounit-0.10.2/README
 +share/doc/autounit-0.10.2/autounit.html
 +share/doc/autounit-0.10.2/AUTHORS
 +share/doc/autounit-0.10.2/COPYING
 +share/doc/autounit-0.10.2/ChangeLog
 +share/doc/autounit-0.10.2/INSTALL
 +share/doc/autounit-0.10.2/NEWS
 +share/doc/autounit-0.10.2/README
  include/c-unit/test.h
  info/autounit.info
  info/dir
  lib/libau-c-unit.a
 -@dirrm doc/autounit-0.10.2
 -@unexec rmdir %D/doc 2>/dev/null || true
 +@dirrm share/doc/autounit-0.10.2
 +@unexec rmdir %D/share/doc 2>/dev/null || true
  @dirrm include/c-unit
  @unexec rmdir %D/inlude 2>/dev/null || true
 
 
 
 _________________________________________________________
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
State-Changed-From-To: open->feedback 
State-Changed-By: ijliao 
State-Changed-When: Tue Sep 17 01:11:26 PDT 2002 
State-Changed-Why:  
it's 0.15.2 now 
could you please submit again with latest version 
and please run portlint (devel/portlint) before submit 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35131 
State-Changed-From-To: feedback->closed 
State-Changed-By: arved 
State-Changed-When: Sat Oct 26 05:55:09 PDT 2002 
State-Changed-Why:  
Feedback timeout (more than 1 month) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35131 
>Unformatted:
