2014-05-21 21:53:17 +02:00
|
|
|
# Template build file for 'gmock'
|
|
|
|
pkgname=gmock
|
|
|
|
version=1.7.0
|
2015-02-27 10:38:48 +01:00
|
|
|
revision=5
|
2014-05-21 21:53:17 +02:00
|
|
|
build_style=gnu-configure
|
|
|
|
short_desc="Google C++ Mocking Framework"
|
2015-08-09 19:08:42 +02:00
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
2014-05-21 21:53:17 +02:00
|
|
|
license="BSD"
|
|
|
|
hostmakedepends="unzip"
|
2015-02-27 10:38:48 +01:00
|
|
|
makedepends="gtest-devel"
|
|
|
|
depends="gtest"
|
2014-05-21 21:53:17 +02:00
|
|
|
homepage="https://code.google.com/p/googlemock"
|
|
|
|
distfiles="https://googlemock.googlecode.com/files/${pkgname}-${version}.zip"
|
|
|
|
checksum=26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b
|
2015-02-27 10:38:48 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# gmock is unable to detect the systems gtest, therefore delete the included
|
|
|
|
# version of gtest explicitly.
|
|
|
|
rm -r $DESTDIR/usr/lib/libgtest*.{so*,a} \
|
|
|
|
$DESTDIR/usr/share/aclocal/gtest.m4 \
|
|
|
|
$DESTDIR/usr/include/gtest
|
|
|
|
}
|
2014-05-21 21:57:54 +02:00
|
|
|
|
|
|
|
gmock-devel_package() {
|
2015-02-23 11:50:11 +01:00
|
|
|
conflicts="gtest-devel>=0"
|
2015-02-27 10:38:48 +01:00
|
|
|
depends="gmock>=${version}_${revision} gtest-devel"
|
2014-05-21 21:57:54 +02:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|