Import gtest 1.4.0:

Google's framework for writing C++ tests on a variety of platforms
(Linux, Mac OS X, Windows, Cygwin, Windows CE, and Symbian). Based on
the xUnit architecture. Supports automatic test discovery, a rich set
of assertions, user-defined assertions, death tests, fatal and
non-fatal failures, value- and type-parameterized tests, various
options for running the tests, and XML test report generation.

From MAINTAINER Vincent Auclair (thanks!) @ ACSEL
This commit is contained in:
landry 2009-12-31 11:21:13 +00:00
parent 9712a9c04d
commit e02d06d91c
6 changed files with 95 additions and 0 deletions

32
devel/gtest/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/12/31 11:21:13 landry Exp $
COMMENT = C++ unit test framework
DISTNAME = gtest-1.4.0
SHARED_LIBS += gtest 0.0 # .0.0
SHARED_LIBS += gtest_main 0.0 # .0.0
CATEGORIES = devel
HOMEPAGE = http://code.google.com/p/googletest/
MAINTAINER = Vincent Auclair <auclair.vincent@gmail.com>
# New BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://googletest.googlecode.com/files/
SEPARATE_BUILD = simple
USE_LIBTOOL = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += ${CONFIGURE_SHARED}
NO_REGRESS = Yes
.include <bsd.port.mk>

5
devel/gtest/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (gtest-1.4.0.tar.gz) = 7B3VqwfN5doDOx1jHmIRZw==
RMD160 (gtest-1.4.0.tar.gz) = 4ejOHQ9FXRozQuu/8XgZM13agaA=
SHA1 (gtest-1.4.0.tar.gz) = GtFLtafCEYzu7vAG7N8iiLki6bA=
SHA256 (gtest-1.4.0.tar.gz) = ObfChSTup9uHt0EH193TQS6M69j8Md5mbMgV/bDKqaA=
SIZE (gtest-1.4.0.tar.gz) = 697967

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-include_gtest_internal_gtest-port_h,v 1.1.1.1 2009/12/31 11:21:13 landry Exp $
--- include/gtest/internal/gtest-port.h.orig Fri Oct 9 13:49:58 2009
+++ include/gtest/internal/gtest-port.h Fri Oct 9 13:51:33 2009
@@ -200,12 +200,14 @@
#define GTEST_OS_LINUX 1
#elif defined __MVS__
#define GTEST_OS_ZOS 1
+#elif defined __OpenBSD__
+#define GTEST_OS_OPENBSD 1
#elif defined(__sun) && defined(__SVR4)
#define GTEST_OS_SOLARIS 1
#endif // __CYGWIN__
#if GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_SYMBIAN || \
- GTEST_OS_SOLARIS
+ GTEST_OS_SOLARIS || GTEST_OS_OPENBSD
// On some platforms, <regex.h> needs someone to define size_t, and
// won't compile otherwise. We can #include it here as we already

6
devel/gtest/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
Google's framework for writing C++ tests on a variety of platforms
(Linux, Mac OS X, Windows, Cygwin, Windows CE, and Symbian). Based on
the xUnit architecture. Supports automatic test discovery, a rich set
of assertions, user-defined assertions, death tests, fatal and
non-fatal failures, value- and type-parameterized tests, various
options for running the tests, and XML test report generation.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2009/12/31 11:21:13 landry Exp $
@lib lib/libgtest.so.${LIBgtest_VERSION}
@lib lib/libgtest_main.so.${LIBgtest_main_VERSION}

30
devel/gtest/pkg/PLIST Normal file
View File

@ -0,0 +1,30 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/12/31 11:21:13 landry Exp $
%%SHARED%%
bin/gtest-config
include/gtest/
include/gtest/gtest-death-test.h
include/gtest/gtest-message.h
include/gtest/gtest-param-test.h
include/gtest/gtest-spi.h
include/gtest/gtest-test-part.h
include/gtest/gtest-typed-test.h
include/gtest/gtest.h
include/gtest/gtest_pred_impl.h
include/gtest/gtest_prod.h
include/gtest/internal/
include/gtest/internal/gtest-death-test-internal.h
include/gtest/internal/gtest-filepath.h
include/gtest/internal/gtest-internal.h
include/gtest/internal/gtest-linked_ptr.h
include/gtest/internal/gtest-param-util-generated.h
include/gtest/internal/gtest-param-util.h
include/gtest/internal/gtest-port.h
include/gtest/internal/gtest-string.h
include/gtest/internal/gtest-tuple.h
include/gtest/internal/gtest-type-util.h
lib/libgtest.a
lib/libgtest.la
lib/libgtest_main.a
lib/libgtest_main.la
share/aclocal/
share/aclocal/gtest.m4