diff --git a/common/shlibs b/common/shlibs index 5d195aac9d..3510f8d21d 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1619,3 +1619,7 @@ libBulletCollision.so.2.82 bullet-2.82_1 libLinearMath.so.2.82 bullet-2.82_1 libBulletSoftBody.so.2.82 bullet-2.82_1 libinotifytools.so.0 libinotify-tools-3.14_2 +libgtest.so.0 gmock-1.7.0_1 +libgtest_main.so.0 gmock-1.7.0_1 +libgmock.so.0 gmock-1.7.0_1 +libgmock_main.so.0 gmock-1.7.0_1 diff --git a/srcpkgs/gmock/patches/import_private_module.patch b/srcpkgs/gmock/patches/import_private_module.patch new file mode 100644 index 0000000000..2163b48036 --- /dev/null +++ b/srcpkgs/gmock/patches/import_private_module.patch @@ -0,0 +1,13 @@ +Index: google-mock-1.6.0/scripts/generator/gmock_gen.py +=================================================================== +--- scripts/generator/gmock_gen.py 2011-07-01 02:41:39.819517320 +0200 ++++ scripts/generator/gmock_gen.py 2011-07-01 02:43:26.396045796 +0200 +@@ -23,7 +23,7 @@ + + if __name__ == '__main__': + # Add the directory of this script to the path so we can import gmock_class. +- sys.path.append(os.path.dirname(__file__)) ++ sys.path.append(os.path.join(os.path.dirname(os.path.dirname(__file__)), "share", "gmock")) + + from cpp import gmock_class + # Fix the docstring in case they require the usage. diff --git a/srcpkgs/gmock/patches/reenable_make_install.patch b/srcpkgs/gmock/patches/reenable_make_install.patch new file mode 100644 index 0000000000..f829f14bbe --- /dev/null +++ b/srcpkgs/gmock/patches/reenable_make_install.patch @@ -0,0 +1,54 @@ +diff -urN gtest/Makefile.am gtest/Makefile.am +--- gtest/Makefile.am 2013-09-23 22:34:27.649060735 -0700 ++++ gtest/Makefile.am 2013-09-23 22:39:16.097069357 -0700 +@@ -299,8 +299,6 @@ + + install-exec-local: + echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Test into your build system." +- false + + install-data-local: + echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Test into your build system." +- false +diff -urN gtest/Makefile.in gtest/Makefile.in +--- gtest/Makefile.in 2013-09-23 22:34:27.654060735 -0700 ++++ gtest/Makefile.in 2013-09-23 22:41:35.593073526 -0700 +@@ -1349,11 +1349,9 @@ + + install-exec-local: + echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Test into your build system." +- false + + install-data-local: + echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Test into your build system." +- false + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. +diff -urN Makefile.am Makefile.am +--- Makefile.am 2013-09-23 22:34:27.644060735 -0700 ++++ Makefile.am 2013-09-23 22:42:00.442074269 -0700 +@@ -209,8 +209,6 @@ + + install-exec-local: + echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Mock into your build system." +- false + + install-data-local: + echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Mock into your build system." +- false +diff -urN Makefile.in Makefile.in +--- Makefile.in 2013-09-23 22:34:27.663060735 -0700 ++++ Makefile.in 2013-09-23 22:42:12.904074641 -0700 +@@ -1346,11 +1346,9 @@ + + install-exec-local: + echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Mock into your build system." +- false + + install-data-local: + echo "'make install' is dangerous and not supported. Instead, see README for how to integrate Google Mock into your build system." +- false + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/srcpkgs/gmock/template b/srcpkgs/gmock/template new file mode 100644 index 0000000000..1073200c9a --- /dev/null +++ b/srcpkgs/gmock/template @@ -0,0 +1,13 @@ +# Template build file for 'gmock' +pkgname=gmock +version=1.7.0 +revision=1 +build_style=gnu-configure +short_desc="Google C++ Mocking Framework" +maintainer="Enno Boland " +license="BSD" +hostmakedepends="unzip" +homepage="https://code.google.com/p/googlemock" +distfiles="https://googlemock.googlecode.com/files/${pkgname}-${version}.zip" +checksum=26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b +configure_args="--enable-external-gtest"