aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-07-17 11:11:37 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-07-17 11:11:37 +0200
commit8c7e7f7f889fc1630e0732e4a4a6564127485ad5 (patch)
tree1ce39bb2c114aa0f0448bdbee850b8a1de0810a1 /main
parent9452ae5e6991d17b1f7cee798aa658442fde34d9 (diff)
downloadaports-8c7e7f7f889fc1630e0732e4a4a6564127485ad5.tar.bz2
aports-8c7e7f7f889fc1630e0732e4a4a6564127485ad5.tar.xz
testing/gtest: move to main
Diffstat (limited to 'main')
-rw-r--r--main/gtest/APKBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/main/gtest/APKBUILD b/main/gtest/APKBUILD
new file mode 100644
index 0000000000..5304365b91
--- /dev/null
+++ b/main/gtest/APKBUILD
@@ -0,0 +1,62 @@
+# Contributor:
+# Maintainer:
+pkgname=gtest
+pkgver=1.7.0
+pkgrel=0
+pkgdesc="Google Test - C++ testing utility based on the xUnit framework (like JUnit)"
+url="http://code.google.com/p/googletest"
+arch="all"
+license="BSD"
+depends="libgcc bash"
+depends_dev="python cmake"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://googletest.googlecode.com/files/${pkgname}-${pkgver}.zip"
+
+_builddir="$srcdir"/${pkgname}-${pkgver}
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ rm -rf build
+ mkdir build
+ cd build
+
+ cmake -DBUILD_SHARED_LIBS=ON \
+ -DCMAKE_SKIP_RPATH=ON ../ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ for dir in usr/lib usr/include/gtest/internal usr/share/licenses/gtest\
+ usr/src/gtest/cmake usr/src/gtest/src; do
+ install -d -m 0755 "$pkgdir"/"$dir"
+ done
+ install -m 0644 build/libgtest*.so "$pkgdir"/usr/lib || return 1
+ install -m 0644 include/gtest/*.h "$pkgdir"/usr/include/gtest \
+ || return 1
+ install -m 0644 include/gtest/internal/*.h \
+ "$pkgdir"/usr/include/gtest/internal/ || return 1
+ install -m 0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/ \
+ || return 1
+ install -m 0644 "$_builddir/fused-src/gtest"/* \
+ "$pkgdir"/usr/src/gtest/src/ || return 1
+ install -m 0644 "$_builddir/CMakeLists.txt" "$pkgdir"/usr/src/gtest/ \
+ || return 1
+ install -m 0644 "$_builddir/cmake"/* "$pkgdir"/usr/src/gtest/cmake/ \
+ || return 1
+}
+
+md5sums="2d6ec8ccdf5c46b05ba54a9fd1d130d7 gtest-1.7.0.zip"
+sha256sums="247ca18dd83f53deb1328be17e4b1be31514cedfc1e3424f672bf11fd7e0d60d gtest-1.7.0.zip"
+sha512sums="8859369f2dd32cbc2ac01aba029aa3ff20a321f40658b9643aff442d34c33468221866b801b28c66a28af47dbcd362d26941fc98db92b6efb7e41ea5b7be1a07 gtest-1.7.0.zip"