Revision: 139641 https://trac.macports.org/changeset/139641 Author: blair@macports.org Date: 2015-08-22 11:48:20 -0700 (Sat, 22 Aug 2015) Log Message: ----------- gtest: new port for Google's test framework. Added Paths: ----------- trunk/dports/devel/gtest/ trunk/dports/devel/gtest/Portfile Added: trunk/dports/devel/gtest/Portfile =================================================================== --- trunk/dports/devel/gtest/Portfile (rev 0) +++ trunk/dports/devel/gtest/Portfile 2015-08-22 18:48:20 UTC (rev 139641) @@ -0,0 +1,42 @@ +PortSystem 1.0 +PortGroup cmake 1.0 + +name gtest +set svn_revision 746 +version 1.7.0.${svn_revision} +categories devel +maintainers blair +license BSD +description Google's framework for writing C++ tests + +long_description \ + Google's framework for writing C++ tests on a variety \ + of platforms (Linux, Mac OS X, Windows, Windows CE, \ + Symbian, etc). Based on the xUnit architecture. \ + Supports automatic test discovery, a rich set of \ + assertions, user-defined assertions, death tests, \ + fatal and non-fatal failures, various options for \ + running the tests, and XML test report generation. + +homepage https://code.google.com/p/googletest/ + +platforms darwin + +fetch.type svn +svn.url http://googletest.googlecode.com/svn/trunk +svn.revision ${svn_revision} +worksrcdir trunk + +cmake.out_of_source yes +configure.optflags -g +configure.args-append -Dgtest_build_tests=ON + +destroot { + file copy ${cmake.build_dir}/libgtest.a ${destroot}${prefix}/lib + file copy ${cmake.build_dir}/libgtest_main.a ${destroot}${prefix}/lib + file copy ${worksrcpath}/include/gtest ${destroot}${prefix}/include +} + +test.run yes +test.cmd "ulimit -c 0; make" +test.target test Property changes on: trunk/dports/devel/gtest/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native
participants (1)
-
blair@macports.org