From owner-svn-ports-head@FreeBSD.ORG Sun May 11 14:26:49 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29F3B3C7; Sun, 11 May 2014 14:26:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 165F3271C; Sun, 11 May 2014 14:26:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4BEQmYn005885; Sun, 11 May 2014 14:26:48 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4BEQmfH005881; Sun, 11 May 2014 14:26:48 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201405111426.s4BEQmfH005881@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sun, 11 May 2014 14:26:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r353698 - in head/devel/cunit: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2014 14:26:49 -0000 Author: sunpoet Date: Sun May 11 14:26:47 2014 New Revision: 353698 URL: http://svnweb.freebsd.org/changeset/ports/353698 QAT: https://qat.redports.org/buildarchive/r353698/ Log: - Update to 2.1.3 - Add LICENSE - Use USES=gmake - Use USES=libtool - Convert to new options helper - Add regression-test: - Cosmetic change - Update pkg-descr Changes: http://sourceforge.net/p/cunit/code/HEAD/tree/trunk/ChangeLog Deleted: head/devel/cunit/files/ Modified: head/devel/cunit/Makefile head/devel/cunit/distinfo head/devel/cunit/pkg-descr head/devel/cunit/pkg-plist Modified: head/devel/cunit/Makefile ============================================================================== --- head/devel/cunit/Makefile Sun May 11 14:26:42 2014 (r353697) +++ head/devel/cunit/Makefile Sun May 11 14:26:47 2014 (r353698) @@ -2,96 +2,65 @@ # $FreeBSD$ PORTNAME= cunit -DISTVERSION= 2.1-0 -PORTREVISION= 2 +PORTVERSION= 2.1.3 CATEGORIES= devel -MASTER_SITES= SF/${PORTNAME}/CUnit/2.1-0 -DISTNAME= ${PORTNAME:S/^cu/CU/}-${DISTVERSION}-src +MASTER_SITES= SF/${PORTNAME}/CUnit/${PORTVERSION:R}-${PORTVERSION:E} +DISTNAME= CUnit-${PORTVERSION:R}-${PORTVERSION:E} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Automated unit testing framework for C -CONFLICTS= c-unit-[0-9]* +LICENSE= LGPL20 -WRKSRC= ${WRKDIR}/${PORTNAME:S/^cu/CU/}-${DISTVERSION} -DOCSDIR= ${PREFIX}/share/doc/CUnit -GNU_CONFIGURE= yes -USE_GMAKE= yes -USE_AUTOTOOLS= autoheader -USE_LDCONFIG= yes +CONFLICTS= c-unit-[0-9]* -OPTIONS_DEFINE= DEB AUT BAS CON CUR EXA ITE MEM -DEB_DESC= Debug interface -AUT_DESC= Automated(XML) interface +OPTIONS_DEFINE= AUT BAS CON CUR DEB EXA ITE MEM +OPTIONS_DEFAULT=AUT BAS CON +OPTIONS_SUB= yes +AUT_DESC= Automated (XML) interface BAS_DESC= Basic interface CON_DESC= Console interface CUR_DESC= Curses interface -EXA_DESC= Compile example programs -ITE_DESC= Compile internal test program +DEB_DESC= Debug interface +EXA_DESC= Example programs +ITE_DESC= Internal test program MEM_DESC= Internal memory tracking -OPTIONS_DEFAULT= AUT BAS CON +GNU_CONFIGURE= yes +USES= gmake libtool pathfix tar:bzip2 +USE_AUTOTOOLS= aclocal autoconf autoheader automake libtoolize +USE_LDCONFIG= yes + +DATADIR= ${PREFIX}/share/CUnit +DOCSDIR= ${PREFIX}/share/doc/CUnit +EXAMPLESDIR= ${PREFIX}/share/examples/CUnit +PORTDATA= * +PORTDOCS= * +PORTEXAMPLES= * + +AUTOMAKE_ARGS= --add-missing +LIBTOOLIZE_ARGS=--copy --force --install +PATHFIX_MAKEFILEIN= Makefile.am + +AUT_CONFIGURE_ENABLE= automated +BAS_CONFIGURE_ENABLE= basic +CON_CONFIGURE_ENABLE= console +CUR_CONFIGURE_ENABLE= curses +DEB_CONFIGURE_ENABLE= debug +EXA_CONFIGURE_ENABLE= examples +ITE_CONFIGURE_ENABLE= test +MEM_CONFIGURE_ENABLE= memtrace post-patch: - @${REINPLACE_CMD} -e 's|/doc/@PACKAGE@|/share/doc/@PACKAGE@|g' ${WRKSRC}/doc/Makefile.in - @${REINPLACE_CMD} -e 's|/doc/@PACKAGE@|/share/doc/@PACKAGE@|g' ${WRKSRC}/doc/headers/Makefile.in - @${REINPLACE_CMD} -e 's|/@PACKAGE@/Examples/Automated|/examples/@PACKAGE@/Automated|g' ${WRKSRC}/Examples/AutomatedTest/Makefile.in - @${REINPLACE_CMD} -e 's|/@PACKAGE@/Examples/Basic|/examples/@PACKAGE@/Basic|g' ${WRKSRC}/Examples/BasicTest/Makefile.in - @${REINPLACE_CMD} -e 's|/@PACKAGE@/Examples/Console|/examples/@PACKAGE@/Console|g' ${WRKSRC}/Examples/ConsoleTest/Makefile.in - @${REINPLACE_CMD} -e 's|/@PACKAGE@/Examples/Curses|/examples/@PACKAGE@/Curses|g' ${WRKSRC}/Examples/CursesTest/Makefile.in -.if defined(NOPORTDOCS) - ${REINPLACE_CMD} -e 's|CUnit doc Man Share|CUnit Man Share|g' ${WRKSRC}/Makefile.in -.endif - -.include - -.if ${PORT_OPTIONS:MDEB} -CONFIGURE_ARGS+= --enable-debug -.endif -.if ${PORT_OPTIONS:MAUT} -PLIST_FILES+= include/CUnit/Automated.h -.else -CONFIGURE_ARGS+= --disable-automated -.endif -.if ${PORT_OPTIONS:MBAS} -PLIST_FILES+= include/CUnit/Basic.h -.else -CONFIGURE_ARGS+= --disable-basic -.endif -.if ${PORT_OPTIONS:MCON} -PLIST_FILES+= include/CUnit/Console.h -.else -CONFIGURE_ARGS+= --disable-console -.endif -.if ${PORT_OPTIONS:MCUR} -CONFIGURE_ARGS+= --enable-curses -PLIST_FILES+= include/CUnit/CUCurses.h -.endif -.if ${PORT_OPTIONS:MEXA} -CONFIGURE_ARGS+= --enable-examples -.if ${PORT_OPTIONS:MAUT} -PLIST_FILES+= share/examples/CUnit/Automated/AutomatedTest \ - share/examples/CUnit/Automated/README -.endif -.if ${PORT_OPTIONS:MBAS} -PLIST_FILES+= share/examples/CUnit/Basic/BasicTest \ - share/examples/CUnit/Basic/README -.endif -.if ${PORT_OPTIONS:MCON} -PLIST_FILES+= share/examples/CUnit/Console/ConsoleTest \ - share/examples/CUnit/Console/README -.endif -.if ${PORT_OPTIONS:MCUR} -PLIST_FILES+= share/examples/CUnit/Curses/CursesTest \ - share/examples/CUnit/Curses/README -.endif -.endif -.if ${PORT_OPTIONS:MITE} -CONFIGURE_ARGS+= --enable-test -PLIST_FILES+= share/CUnit/Test/test_cunit -.endif -.if ${PORT_OPTIONS:MMEM} -CONFIGURE_ARGS+= --enable-memtrace -.endif + @${REINPLACE_CMD} -e 's|/doc/@PACKAGE@|/share/doc/@PACKAGE@|g' ${WRKSRC}/doc/Makefile.am ${WRKSRC}/doc/headers/Makefile.am + @${REINPLACE_CMD} -e 's|/@PACKAGE@/Examples/|/examples/@PACKAGE@/|g' ${WRKSRC}/Examples/*/Makefile.in + @${REINPLACE_CMD} -e 's|CUnit-[A-Z][a-z]*\.[a-z]*|${DATADIR}/&|' ${WRKSRC}/CUnit/Sources/Automated/Automated.c + @${REINPLACE_CMD} -e '/fprintf/ s|Memory-Dump\.[a-z]*|${DATADIR}/&|' ${WRKSRC}/CUnit/Sources/Framework/MyMem.c + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcunit.so.1.0.1 + +regression-test test: build + cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check .include Modified: head/devel/cunit/distinfo ============================================================================== --- head/devel/cunit/distinfo Sun May 11 14:26:42 2014 (r353697) +++ head/devel/cunit/distinfo Sun May 11 14:26:47 2014 (r353698) @@ -1,2 +1,2 @@ -SHA256 (CUnit-2.1-0-src.tar.gz) = b5fc0ab0f03e8d287a3f65935c7e36fabfdcd9f926ee6f50ac621ea6ab6fa8c6 -SIZE (CUnit-2.1-0-src.tar.gz) = 628767 +SHA256 (CUnit-2.1-3.tar.bz2) = f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214 +SIZE (CUnit-2.1-3.tar.bz2) = 514500 Modified: head/devel/cunit/pkg-descr ============================================================================== --- head/devel/cunit/pkg-descr Sun May 11 14:26:42 2014 (r353697) +++ head/devel/cunit/pkg-descr Sun May 11 14:26:47 2014 (r353698) @@ -1,9 +1,11 @@ -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. +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, Basic, Console and Curses. WWW: http://cunit.sourceforge.net/ Modified: head/devel/cunit/pkg-plist ============================================================================== --- head/devel/cunit/pkg-plist Sun May 11 14:26:42 2014 (r353697) +++ head/devel/cunit/pkg-plist Sun May 11 14:26:47 2014 (r353698) @@ -1,48 +1,18 @@ +%%AUT%%include/CUnit/Automated.h +%%BAS%%include/CUnit/Basic.h +%%CUR%%include/CUnit/CUCurses.h include/CUnit/CUError.h include/CUnit/CUnit.h +include/CUnit/CUnit_intl.h +%%CON%%include/CUnit/Console.h include/CUnit/MyMem.h include/CUnit/TestDB.h include/CUnit/TestRun.h include/CUnit/Util.h lib/libcunit.a -lib/libcunit.la lib/libcunit.so lib/libcunit.so.1 +lib/libcunit.so.1.0.1 +libdata/pkgconfig/cunit.pc man/man3/CUnit.3.gz -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 -%%PORTDOCS%%%%DOCSDIR%%/CUnit_doc.css -%%PORTDOCS%%%%DOCSDIR%%/error_handling.html -%%PORTDOCS%%%%DOCSDIR%%/fdl.html -%%PORTDOCS%%%%DOCSDIR%%/headers/Automated.h -%%PORTDOCS%%%%DOCSDIR%%/headers/Basic.h -%%PORTDOCS%%%%DOCSDIR%%/headers/CUCurses.h -%%PORTDOCS%%%%DOCSDIR%%/headers/CUError.h -%%PORTDOCS%%%%DOCSDIR%%/headers/CUnit.h -%%PORTDOCS%%%%DOCSDIR%%/headers/Console.h -%%PORTDOCS%%%%DOCSDIR%%/headers/MyMem.h -%%PORTDOCS%%%%DOCSDIR%%/headers/TestDB.h -%%PORTDOCS%%%%DOCSDIR%%/headers/TestRun.h -%%PORTDOCS%%%%DOCSDIR%%/headers/Util.h -%%PORTDOCS%%%%DOCSDIR%%/headers/Win.h -%%PORTDOCS%%%%DOCSDIR%%/index.html -%%PORTDOCS%%%%DOCSDIR%%/introduction.html -%%PORTDOCS%%%%DOCSDIR%%/managing_tests.html -%%PORTDOCS%%%%DOCSDIR%%/running_tests.html -%%PORTDOCS%%%%DOCSDIR%%/test_registry.html -%%PORTDOCS%%%%DOCSDIR%%/writing_tests.html -@dirrmtry share/examples/CUnit/Curses -@dirrmtry share/examples/CUnit/Console -@dirrmtry share/examples/CUnit/Basic -@dirrmtry share/examples/CUnit/Automated -@dirrmtry share/examples/CUnit -@dirrmtry share/CUnit/Test -%%PORTDOCS%%@dirrm %%DOCSDIR%%/headers -%%PORTDOCS%%@dirrm %%DOCSDIR%% -%%PORTDOCS%%@dirrmtry share/doc -@dirrm share/CUnit @dirrm include/CUnit