pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

unittest-cpp: Import unittest-cpp-2.0.0 as wip/unittest-cpp



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Oct 26 11:54:17 2018 +0200
Changeset:	07fda195fc1564d0b956c0d6d169f7b5df8565c2

Modified Files:
	Makefile
Added Files:
	unittest-cpp/DESCR
	unittest-cpp/Makefile
	unittest-cpp/PLIST
	unittest-cpp/buildlink3.mk
	unittest-cpp/distinfo
	unittest-cpp/patches/patch-configure

Log Message:
unittest-cpp: Import unittest-cpp-2.0.0 as wip/unittest-cpp

UnitTest++ is a lightweight unit testing framework for C++. It was
designed to do test-driven development on a wide variety of platforms.
Simplicity, portability, speed, and small footprint are all very
important aspects of UnitTest++. UnitTest++ is mostly standard C++
and makes minimal use of advanced library and language features,
which means it should be easily portable to just about any platform.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=07fda195fc1564d0b956c0d6d169f7b5df8565c2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                             |  1 +
 unittest-cpp/DESCR                   |  6 ++++++
 unittest-cpp/Makefile                | 22 +++++++++++++++++++++
 unittest-cpp/PLIST                   | 37 ++++++++++++++++++++++++++++++++++++
 unittest-cpp/buildlink3.mk           | 12 ++++++++++++
 unittest-cpp/distinfo                |  7 +++++++
 unittest-cpp/patches/patch-configure | 26 +++++++++++++++++++++++++
 7 files changed, 111 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 5e4fa1d0a3..83a93cb0cc 100644
--- a/Makefile
+++ b/Makefile
@@ -4619,6 +4619,7 @@ SUBDIR+=	unimrcp
 SUBDIR+=	unimrcp-apr
 SUBDIR+=	unimrcp-aprutil
 SUBDIR+=	unimrcp-sofiasip
+SUBDIR+=	unittest-cpp
 SUBDIR+=	universalcodegrep
 SUBDIR+=	unix2tcp
 SUBDIR+=	unmo3
diff --git a/unittest-cpp/DESCR b/unittest-cpp/DESCR
new file mode 100644
index 0000000000..38533c5231
--- /dev/null
+++ b/unittest-cpp/DESCR
@@ -0,0 +1,6 @@
+UnitTest++ is a lightweight unit testing framework for C++. It was
+designed to do test-driven development on a wide variety of platforms.
+Simplicity, portability, speed, and small footprint are all very
+important aspects of UnitTest++. UnitTest++ is mostly standard C++
+and makes minimal use of advanced library and language features,
+which means it should be easily portable to just about any platform.
diff --git a/unittest-cpp/Makefile b/unittest-cpp/Makefile
new file mode 100644
index 0000000000..4e47741d85
--- /dev/null
+++ b/unittest-cpp/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+DISTNAME=	unittest-cpp-2.0.0
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=unittest-cpp/}
+GITHUB_RELEASE=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/unittest-cpp/unittest-cpp/
+COMMENT=	Lightweight unit testing framework for C++
+LICENSE=	mit
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	pkg-config
+USE_LANGUAGES=	c c++
+
+PKGCONFIG_OVERRIDE+=	UnitTest++.pc.in
+
+TEST_TARGET=	check
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/unittest-cpp/PLIST b/unittest-cpp/PLIST
new file mode 100644
index 0000000000..d7bdf2378f
--- /dev/null
+++ b/unittest-cpp/PLIST
@@ -0,0 +1,37 @@
+@comment $NetBSD$
+include/UnitTest++/AssertException.h
+include/UnitTest++/CheckMacros.h
+include/UnitTest++/Checks.h
+include/UnitTest++/CompositeTestReporter.h
+include/UnitTest++/Config.h
+include/UnitTest++/CurrentTest.h
+include/UnitTest++/DeferredTestReporter.h
+include/UnitTest++/DeferredTestResult.h
+include/UnitTest++/ExceptionMacros.h
+include/UnitTest++/ExecuteTest.h
+include/UnitTest++/HelperMacros.h
+include/UnitTest++/MemoryOutStream.h
+include/UnitTest++/Posix/SignalTranslator.h
+include/UnitTest++/Posix/TimeHelpers.h
+include/UnitTest++/ReportAssert.h
+include/UnitTest++/ReportAssertImpl.h
+include/UnitTest++/RequireMacros.h
+include/UnitTest++/RequiredCheckException.h
+include/UnitTest++/RequiredCheckTestReporter.h
+include/UnitTest++/Test.h
+include/UnitTest++/TestDetails.h
+include/UnitTest++/TestList.h
+include/UnitTest++/TestMacros.h
+include/UnitTest++/TestReporter.h
+include/UnitTest++/TestReporterStdout.h
+include/UnitTest++/TestResults.h
+include/UnitTest++/TestRunner.h
+include/UnitTest++/TestSuite.h
+include/UnitTest++/ThrowingTestReporter.h
+include/UnitTest++/TimeConstraint.h
+include/UnitTest++/TimeHelpers.h
+include/UnitTest++/UnitTest++.h
+include/UnitTest++/UnitTestPP.h
+include/UnitTest++/XmlTestReporter.h
+lib/libUnitTest++.la
+lib/pkgconfig/UnitTest++.pc
diff --git a/unittest-cpp/buildlink3.mk b/unittest-cpp/buildlink3.mk
new file mode 100644
index 0000000000..cada4e941e
--- /dev/null
+++ b/unittest-cpp/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	unittest-cpp
+
+.if !defined(UNITTEST_CPP_BUILDLINK3_MK)
+UNITTEST_CPP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.unittest-cpp+=	unittest-cpp>=2.0.0
+BUILDLINK_PKGSRCDIR.unittest-cpp?=	../../wip/unittest-cpp
+.endif	# UNITTEST_CPP_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-unittest-cpp
diff --git a/unittest-cpp/distinfo b/unittest-cpp/distinfo
new file mode 100644
index 0000000000..c7b5b93c07
--- /dev/null
+++ b/unittest-cpp/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (unittest-cpp-2.0.0.tar.gz) = ccff17bdfed7d130ef0ccb16429855c5692d70b2
+RMD160 (unittest-cpp-2.0.0.tar.gz) = 8f06ab7e63203b45f4174930901228801dacd4ab
+SHA512 (unittest-cpp-2.0.0.tar.gz) = 51b37055dbe2a8772a59047f900202332b75be8801af94496848503c6b652d34f5e2a62c92555d492e2265d35fc6befb5bd4209364f7a4e7c9f2f5988537fae6
+Size (unittest-cpp-2.0.0.tar.gz) = 406798 bytes
+SHA1 (patch-configure) = a2cacec75c2f147a2dd6f9562324ee94d9629def
diff --git a/unittest-cpp/patches/patch-configure b/unittest-cpp/patches/patch-configure
new file mode 100644
index 0000000000..9ef87610b6
--- /dev/null
+++ b/unittest-cpp/patches/patch-configure
@@ -0,0 +1,26 @@
+$NetBSD$
+
+Avoid bash-isms.
+
+--- configure.orig	2017-01-13 22:09:58.000000000 +0000
++++ configure
+@@ -3131,13 +3131,16 @@ case $host_os in *\ *) host_os=`echo "$h
+ 
+ 
+ 
+- if test "${host//mingw/}" != "${host}" -o "${host//msvc/}" != "${host}"; then
++case "${host}" in
++*mingw* | *msvc* )
+   WINDOWS_TRUE=
+   WINDOWS_FALSE='#'
+-else
++  ;;
++* )
+   WINDOWS_TRUE='#'
+   WINDOWS_FALSE=
+-fi
++  ;;
++esac
+ 
+ 
+ case `pwd` in


Home | Main Index | Thread Index | Old Index