gmock: resolve file conflict with gtext
This commit is contained in:
parent
a6909560b1
commit
3da84d425b
1 changed files with 12 additions and 3 deletions
|
@ -1,20 +1,29 @@
|
|||
# Template build file for 'gmock'
|
||||
pkgname=gmock
|
||||
version=1.7.0
|
||||
revision=4
|
||||
revision=5
|
||||
build_style=gnu-configure
|
||||
short_desc="Google C++ Mocking Framework"
|
||||
maintainer="Enno Boland <eb@s01.de>"
|
||||
license="BSD"
|
||||
hostmakedepends="unzip"
|
||||
makedepends="gtest-devel"
|
||||
depends="gtest"
|
||||
homepage="https://code.google.com/p/googlemock"
|
||||
distfiles="https://googlemock.googlecode.com/files/${pkgname}-${version}.zip"
|
||||
checksum=26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b
|
||||
configure_args="--enable-external-gtest"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
gmock-devel_package() {
|
||||
conflicts="gtest-devel>=0"
|
||||
depends="gmock>=${version}_${revision}"
|
||||
depends="gmock>=${version}_${revision} gtest-devel"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
|
|
Loading…
Reference in a new issue