From 389f12231f757eab7179b8ded6d7b7355a95fc9a Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 30 May 2014 10:00:55 +0200 Subject: [PATCH] New package: gtest-1.7.0 --- common/shlibs | 2 ++ srcpkgs/gtest-devel | 1 + srcpkgs/gtest/template | 29 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 120000 srcpkgs/gtest-devel create mode 100644 srcpkgs/gtest/template diff --git a/common/shlibs b/common/shlibs index a621f764a4..e6380dfc42 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1634,3 +1634,5 @@ libuv.so.0.10 libuv-0.10.27_1 libXm.so.2 lesstif-0.95.2_1 libMrm.so.2 lesstif-0.95.2_1 libUil.so.2 lesstif-0.95.2_1 +libgtest.so gtest-1.7.0_1 +libgtest_main.so gtest-1.7.0_1 diff --git a/srcpkgs/gtest-devel b/srcpkgs/gtest-devel new file mode 120000 index 0000000000..abefa46521 --- /dev/null +++ b/srcpkgs/gtest-devel @@ -0,0 +1 @@ +gtest \ No newline at end of file diff --git a/srcpkgs/gtest/template b/srcpkgs/gtest/template new file mode 100644 index 0000000000..aa35c6987b --- /dev/null +++ b/srcpkgs/gtest/template @@ -0,0 +1,29 @@ +# Template build file for 'gtest' +pkgname=gtest +version=1.7.0 +revision=1 +build_style=cmake +short_desc="Google's framework for writing C++ tests" +maintainer="Enno Boland " +license="MIT" +hostmakedepends="unzip cmake" +homepage="https://code.google.com/p/googletest" +distfiles="https://googletest.googlecode.com/files/${pkgname}-${version}.zip" +checksum=247ca18dd83f53deb1328be17e4b1be31514cedfc1e3424f672bf11fd7e0d60d +configure_args="-DBUILD_SHARED_LIBS=ON -DCMAKE_SKIP_RPATH=ON" + +do_install() { + vinstall build/libgtest.so 644 usr/lib libgtest.so + vinstall build/libgtest_main.so 644 usr/lib libgtest_main.so + vmkdir usr/include/gtest/internal + vcopy include/gtest/*.h usr/include/gtest + vcopy include/gtest/internal/*.h usr/include/gtest/internal +} + +gtest-devel_package() { + depends="gtest>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + } +}