diff options
author | wiz <wiz@pkgsrc.org> | 2019-06-23 09:40:54 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2019-06-23 09:40:54 +0000 |
commit | 9d4e8eb190ddd12d08cc8184ed9aca9b55be57e1 (patch) | |
tree | 2a8297149e236a7f885b0933cc1bd55eaf8d15a1 /devel | |
parent | 6fb82daa1d0cdb6145ee379035ea4bcb28a31660 (diff) | |
download | pkgsrc-9d4e8eb190ddd12d08cc8184ed9aca9b55be57e1.tar.gz |
devel/unittest-cpp: import unittest-cpp-2.0.0
Packaged for wip by leo@
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.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/unittest-cpp/DESCR | 6 | ||||
-rw-r--r-- | devel/unittest-cpp/Makefile | 22 | ||||
-rw-r--r-- | devel/unittest-cpp/PLIST | 37 | ||||
-rw-r--r-- | devel/unittest-cpp/buildlink3.mk | 12 | ||||
-rw-r--r-- | devel/unittest-cpp/distinfo | 7 | ||||
-rw-r--r-- | devel/unittest-cpp/patches/patch-configure | 26 |
6 files changed, 110 insertions, 0 deletions
diff --git a/devel/unittest-cpp/DESCR b/devel/unittest-cpp/DESCR new file mode 100644 index 00000000000..38533c52316 --- /dev/null +++ b/devel/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/devel/unittest-cpp/Makefile b/devel/unittest-cpp/Makefile new file mode 100644 index 00000000000..5864c66055c --- /dev/null +++ b/devel/unittest-cpp/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2019/06/23 09:40:54 wiz Exp $ + +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 +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/devel/unittest-cpp/PLIST b/devel/unittest-cpp/PLIST new file mode 100644 index 00000000000..0f7e267ef09 --- /dev/null +++ b/devel/unittest-cpp/PLIST @@ -0,0 +1,37 @@ +@comment $NetBSD: PLIST,v 1.1 2019/06/23 09:40:54 wiz Exp $ +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/devel/unittest-cpp/buildlink3.mk b/devel/unittest-cpp/buildlink3.mk new file mode 100644 index 00000000000..079bd0839e9 --- /dev/null +++ b/devel/unittest-cpp/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2019/06/23 09:40:54 wiz Exp $ + +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?= ../../devel/unittest-cpp +.endif # UNITTEST_CPP_BUILDLINK3_MK + +BUILDLINK_TREE+= -unittest-cpp diff --git a/devel/unittest-cpp/distinfo b/devel/unittest-cpp/distinfo new file mode 100644 index 00000000000..79541814735 --- /dev/null +++ b/devel/unittest-cpp/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2019/06/23 09:40:54 wiz Exp $ + +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/devel/unittest-cpp/patches/patch-configure b/devel/unittest-cpp/patches/patch-configure new file mode 100644 index 00000000000..244202bdf6b --- /dev/null +++ b/devel/unittest-cpp/patches/patch-configure @@ -0,0 +1,26 @@ +$NetBSD: patch-configure,v 1.1 2019/06/23 09:40:54 wiz Exp $ + +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 |