[Midnightbsd-cvs] mports [23558] trunk/devel: add check
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Jun 1 21:00:29 EDT 2018
Revision: 23558
http://svnweb.midnightbsd.org/mports/?rev=23558
Author: laffer1
Date: 2018-06-01 21:00:28 -0400 (Fri, 01 Jun 2018)
Log Message:
-----------
add check
Modified Paths:
--------------
trunk/devel/Makefile
Added Paths:
-----------
trunk/devel/check/
trunk/devel/check/Makefile
trunk/devel/check/distinfo
trunk/devel/check/files/
trunk/devel/check/files/patch-check.m4
trunk/devel/check/pkg-descr
trunk/devel/check/pkg-plist
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2018-06-01 13:18:10 UTC (rev 23557)
+++ trunk/devel/Makefile 2018-06-02 01:00:28 UTC (rev 23558)
@@ -35,6 +35,7 @@
SUBDIR += bugzilla50
SUBDIR += bullet
SUBDIR += compiler-rt
+SUBDIR += check
SUBDIR += chrpath
SUBDIR += cmake
SUBDIR += cmake-fedora
Added: trunk/devel/check/Makefile
===================================================================
--- trunk/devel/check/Makefile (rev 0)
+++ trunk/devel/check/Makefile 2018-06-02 01:00:28 UTC (rev 23558)
@@ -0,0 +1,37 @@
+# $MidnightBSD$
+
+PORTNAME= check
+PORTVERSION= 0.12.0
+CATEGORIES= devel
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Unit test framework for C
+
+LICENSE= lgpl2.1
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+CONFIGURE_ENV= ac_cv_path_AWK_PATH=${AWK}
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install-strip
+USE_LDCONFIG= yes
+USES= autoreconf libtool makeinfo pathfix pkgconfig
+
+INFO= check
+PORTDOCS= *
+PORTEXAMPLES= *
+
+GH_ACCOUNT= lib${PORTNAME}
+USE_GITHUB= yes
+
+post-patch:
+ @${REINPLACE_CMD} \
+ -e 's|COPYING.LESSER||' \
+ -e '/^docdir = / s|$$(PACKAGE)|${PORTNAME}|' \
+ ${WRKSRC}/Makefile.am
+ @${REINPLACE_CMD} \
+ -e '/^exampledir = / s|(docdir)/example|(datadir)/examples/${PORTNAME}|' \
+ -e '/^example[a-z]*dir = / s|(docdir)/example/|(exampledir)/|' \
+ ${WRKSRC}/doc/Makefile.am
+
+.include <bsd.port.mk>
Property changes on: trunk/devel/check/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/check/distinfo
===================================================================
--- trunk/devel/check/distinfo (rev 0)
+++ trunk/devel/check/distinfo 2018-06-02 01:00:28 UTC (rev 23558)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1527900876
+SHA256 (check-0.12.0_GH0.tar.gz) = 7816b4c38f6e23ff873786f18d966e552837677bfae144041e0587e7c39e04e8
+SIZE (check-0.12.0_GH0.tar.gz) = 281127
Property changes on: trunk/devel/check/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/check/files/patch-check.m4
===================================================================
--- trunk/devel/check/files/patch-check.m4 (rev 0)
+++ trunk/devel/check/files/patch-check.m4 2018-06-02 01:00:28 UTC (rev 23558)
@@ -0,0 +1,25 @@
+--- check.m4.orig 2015-08-02 19:31:25 UTC
++++ check.m4
+@@ -21,8 +21,20 @@ AC_DEFUN([AM_PATH_CHECK],
+ CHECK_CFLAGS="-I$with_check/include"
+ CHECK_LIBS="-L$with_check/lib -lcheck"
+ else
+- CHECK_CFLAGS=""
+- CHECK_LIBS="-lcheck"
++ for check_includedir in /usr/local/include /usr/local/include/check /usr/include $prefix/include
++ do
++ if test -e $check_includedir/check.h ; then
++ CHECK_CFLAGS="-I${check_includedir}"
++ break
++ fi
++ done
++ for check_libdir in /usr/local/lib /usr/local/lib/check /usr/lib $prefix/lib
++ do
++ if test -e $check_libdir/libcheck.a ; then
++ CHECK_LIBS="-L${check_libdir} -lcheck"
++ break
++ fi
++ done
+ fi
+
+ ac_save_CFLAGS="$CFLAGS"
Property changes on: trunk/devel/check/files/patch-check.m4
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/check/pkg-descr
===================================================================
--- trunk/devel/check/pkg-descr (rev 0)
+++ trunk/devel/check/pkg-descr 2018-06-02 01:00:28 UTC (rev 23558)
@@ -0,0 +1,6 @@
+Check is a unit test framework for C. It features a simple interface for
+defining unit tests, putting little in the way of the developer. Tests are run
+in a separate address space, so Check can catch both assertion failures and code
+errors that cause segmentation faults or other signals.
+
+WWW: https://libcheck.github.io/check/
Property changes on: trunk/devel/check/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/check/pkg-plist
===================================================================
--- trunk/devel/check/pkg-plist (rev 0)
+++ trunk/devel/check/pkg-plist 2018-06-02 01:00:28 UTC (rev 23558)
@@ -0,0 +1,10 @@
+bin/checkmk
+include/check.h
+include/check_stdint.h
+lib/libcheck.a
+lib/libcheck.so
+lib/libcheck.so.0
+lib/libcheck.so.0.0.0
+libdata/pkgconfig/check.pc
+man/man1/checkmk.1.gz
+share/aclocal/check.m4
Property changes on: trunk/devel/check/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list