[Midnightbsd-cvs] mports [23808] trunk/devel/cunit: update to 2.1.3
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Aug 19 23:26:27 EDT 2018
Revision: 23808
http://svnweb.midnightbsd.org/mports/?rev=23808
Author: laffer1
Date: 2018-08-19 23:26:27 -0400 (Sun, 19 Aug 2018)
Log Message:
-----------
update to 2.1.3
Modified Paths:
--------------
trunk/devel/cunit/Makefile
trunk/devel/cunit/distinfo
trunk/devel/cunit/pkg-descr
trunk/devel/cunit/pkg-plist
Removed Paths:
-------------
trunk/devel/cunit/files/
Modified: trunk/devel/cunit/Makefile
===================================================================
--- trunk/devel/cunit/Makefile 2018-08-19 20:18:46 UTC (rev 23807)
+++ trunk/devel/cunit/Makefile 2018-08-20 03:26:27 UTC (rev 23808)
@@ -1,91 +1,57 @@
# $MidnightBSD$
PORTNAME= cunit
-DISTVERSION= 2.1-0
+PORTVERSION= 2.1.3
+PORTREVISION= 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= ports at MidnightBSD.org
-COMMENT= An automated unit testing framework for C
+COMMENT= Automated unit testing framework for C
+
LICENSE= lgpl
+LICENSE_FILE= ${WRKSRC}/COPYING
-WRKSRC= ${WRKDIR}/${PORTNAME:S/^cu/CU/}-${DISTVERSION}
-DOCSDIR= ${PREFIX}/share/doc/CUnit
+CONFLICTS_INSTALL= c-unit
+
+OPTIONS_DEFINE= AUTOMATED BASIC CONSOLE CURSES DEBUG DOCS EXAMPLES MEMTRACE TEST
+OPTIONS_DEFAULT=AUTOMATED BASIC CONSOLE CURSES DEBUG MEMTRACE TEST
+OPTIONS_SUB= yes
+AUTOMATED_DESC= Automated (XML) interface
+BASIC_DESC= Basic interface
+CONSOLE_DESC= Console interface
+CURSES_DESC= Curses interface
+DEBUG_DESC= Debug interface
+EXAMPLES_DESC= Example programs
+MEMTRACE_DESC= Internal memory tracking
+TEST_DESC= Internal test program
+
GNU_CONFIGURE= yes
-USE_GMAKE= yes
-USE_AUTOTOOLS= autoheader
+INSTALL_TARGET= install-strip
+TEST_TARGET= check
USE_LDCONFIG= yes
+USES= autoreconf gmake libtool pathfix tar:bzip2
-OPTIONS= DEB "Enable debug interface" Off \
- AUT "Enable automated(XML) interface" On \
- BAS "Enable basic interface" On \
- CON "Enable console interface" On \
- CUR "Enable curses interface" Off \
- EXA "Compile example programs" Off \
- ITE "Compile internal test program" Off \
- MEM "Enable internal memory tracking" Off
+DATADIR= ${PREFIX}/share/CUnit
+DOCSDIR= ${PREFIX}/share/doc/CUnit
+EXAMPLESDIR= ${PREFIX}/share/examples/CUnit
+AUTOMATED_CONFIGURE_ENABLE= automated
+BASIC_CONFIGURE_ENABLE= basic
+CONSOLE_CONFIGURE_ENABLE= console
+CURSES_CONFIGURE_ENABLE=curses
+CURSES_LDFLAGS= -lncurses
+CURSES_USES= ncurses
+DEBUG_CONFIGURE_ENABLE= debug
+EXAMPLES_CONFIGURE_ENABLE= examples
+MEMTRACE_CONFIGURE_ENABLE= memtrace
+TEST_CONFIGURE_ENABLE= test
+
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
+ @${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.am
+ @${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
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_DEB)
-CONFIGURE_ARGS+= --enable-debug
-.endif
-.if defined(WITHOUT_AUT)
-CONFIGURE_ARGS+= --disable-automated
-.else
-PLIST_FILES+= include/CUnit/Automated.h
-.endif
-.if defined(WITHOUT_BAS)
-CONFIGURE_ARGS+= --disable-basic
-.else
-PLIST_FILES+= include/CUnit/Basic.h
-.endif
-.if defined(WITHOUT_CON)
-CONFIGURE_ARGS+= --disable-console
-.else
-PLIST_FILES+= include/CUnit/Console.h
-.endif
-.if defined(WITH_CUR)
-CONFIGURE_ARGS+= --enable-curses
-PLIST_FILES+= include/CUnit/CUCurses.h
-.endif
-.if defined(WITH_EXA)
-CONFIGURE_ARGS+= --enable-examples
-.if defined(WITH_AUT)
-PLIST_FILES+= share/examples/CUnit/Automated/AutomatedTest \
- share/examples/CUnit/Automated/README
-.endif
-.if defined(WITH_BAS)
-PLIST_FILES+= share/examples/CUnit/Basic/BasicTest \
- share/examples/CUnit/Basic/README
-.endif
-.if defined(WITH_CON)
-PLIST_FILES+= share/examples/CUnit/Console/ConsoleTest \
- share/examples/CUnit/Console/README
-.endif
-.if defined(WITH_CUR)
-PLIST_FILES+= share/examples/CUnit/Curses/CursesTest \
- share/examples/CUnit/Curses/README
-.endif
-.endif
-.if defined(WITH_ITE)
-CONFIGURE_ARGS+= --enable-test
-PLIST_FILES+= share/CUnit/Test/test_cunit
-.endif
-.if defined(WITH_MEM)
-CONFIGURE_ARGS+= --enable-memtrace
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: trunk/devel/cunit/distinfo
===================================================================
--- trunk/devel/cunit/distinfo 2018-08-19 20:18:46 UTC (rev 23807)
+++ trunk/devel/cunit/distinfo 2018-08-20 03:26:27 UTC (rev 23808)
@@ -1,3 +1,2 @@
-SHA256 (CUnit-2.1-0-src.tar.gz) = b5fc0ab0f03e8d287a3f65935c7e36fabfdcd9f926ee6f50ac621ea6ab6fa8c6
-RMD160 (CUnit-2.1-0-src.tar.gz) = db3e8ea2294faae8301b597164f07fe482e877b5
-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: trunk/devel/cunit/pkg-descr
===================================================================
--- trunk/devel/cunit/pkg-descr 2018-08-19 20:18:46 UTC (rev 23807)
+++ trunk/devel/cunit/pkg-descr 2018-08-20 03:26:27 UTC (rev 23808)
@@ -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: trunk/devel/cunit/pkg-plist
===================================================================
--- trunk/devel/cunit/pkg-plist 2018-08-19 20:18:46 UTC (rev 23807)
+++ trunk/devel/cunit/pkg-plist 2018-08-20 03:26:27 UTC (rev 23808)
@@ -1,20 +1,27 @@
+%%AUTOMATED%%include/CUnit/Automated.h
+%%BASIC%%include/CUnit/Basic.h
+%%CURSES%%include/CUnit/CUCurses.h
include/CUnit/CUError.h
include/CUnit/CUnit.h
+include/CUnit/CUnit_intl.h
+%%CONSOLE%%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
+%%DATADIR%%/CUnit-List.dtd
+%%DATADIR%%/CUnit-List.xsl
+%%DATADIR%%/CUnit-Run.dtd
+%%DATADIR%%/CUnit-Run.xsl
+%%DATADIR%%/Memory-Dump.dtd
+%%DATADIR%%/Memory-Dump.xsl
+%%DATADIR%%/Test/test_cunit
%%PORTDOCS%%%%DOCSDIR%%/CUnit_doc.css
%%PORTDOCS%%%%DOCSDIR%%/error_handling.html
%%PORTDOCS%%%%DOCSDIR%%/fdl.html
@@ -23,6 +30,7 @@
%%PORTDOCS%%%%DOCSDIR%%/headers/CUCurses.h
%%PORTDOCS%%%%DOCSDIR%%/headers/CUError.h
%%PORTDOCS%%%%DOCSDIR%%/headers/CUnit.h
+%%PORTDOCS%%%%DOCSDIR%%/headers/CUnit_intl.h
%%PORTDOCS%%%%DOCSDIR%%/headers/Console.h
%%PORTDOCS%%%%DOCSDIR%%/headers/MyMem.h
%%PORTDOCS%%%%DOCSDIR%%/headers/TestDB.h
@@ -35,14 +43,11 @@
%%PORTDOCS%%%%DOCSDIR%%/running_tests.html
%%PORTDOCS%%%%DOCSDIR%%/test_registry.html
%%PORTDOCS%%%%DOCSDIR%%/writing_tests.html
- at dirrmtry share/examples/CUnit/Curses
- at dirrmtry share/examples/CUnit/Console
- at dirrmtry share/examples/CUnit/Basic
- at dirrmtry share/examples/CUnit/Automated
- at dirrmtry share/examples/CUnit
- at dirrmtry share/CUnit/Test
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/headers
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTDOCS%%@dirrmtry share/doc
- at dirrm share/CUnit
- at dirrm include/CUnit
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Automated/AutomatedTest
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Automated/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Basic/BasicTest
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Basic/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Console/ConsoleTest
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Console/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Curses/CursesTest
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Curses/README
More information about the Midnightbsd-cvs
mailing list