summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-08 23:25:31 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-08 23:26:33 -0400
commite63c09a12fba1f6506fb92344f6f43e465caa55c (patch)
tree99d71a04d0355045e0dd4a89ebc48b9ef81f9d27 /sys-block
parentsys-block/thin-provisioning-tools: enable verbose build #560882 (diff)
downloadgentoo-e63c09a12fba1f6506fb92344f6f43e465caa55c.tar.gz
gentoo-e63c09a12fba1f6506fb92344f6f43e465caa55c.tar.bz2
gentoo-e63c09a12fba1f6506fb92344f6f43e465caa55c.zip
sys-block/thin-provisioning-tools: fix test builds #493440
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/thin-provisioning-tools/thin-provisioning-tools-0.4.1.ebuild7
-rw-r--r--sys-block/thin-provisioning-tools/thin-provisioning-tools-0.5.3.ebuild7
2 files changed, 12 insertions, 2 deletions
diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.4.1.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.4.1.ebuild
index a1b98432b851..0c0849fc5f8b 100644
--- a/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.4.1.ebuild
+++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.4.1.ebuild
@@ -22,7 +22,8 @@ RDEPEND="dev-libs/expat
DEPEND="${RDEPEND}
test? (
|| ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 )
- dev-cpp/gmock
+ >=dev-cpp/gmock-1.6
+ >=dev-cpp/gtest-1.6
dev-util/cucumber
dev-util/aruba
)
@@ -30,6 +31,10 @@ DEPEND="${RDEPEND}
src_prepare() {
sed -i -e '/^INSTALL_PROGRAM/s:-s::' Makefile.in || die
+ sed -i \
+ -e '/^unit-tests\/unit_tests:/s:lib/libgmock.a::' \
+ -e '/-lgmock/s:$: -lgtest:' \
+ unit-tests/Makefile.in || die #493440
epatch_user
eautoreconf
}
diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.5.3.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.5.3.ebuild
index ec9da4363f43..e896109f8bdb 100644
--- a/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.5.3.ebuild
+++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.5.3.ebuild
@@ -23,7 +23,8 @@ DEPEND="${RDEPEND}
static? ( ${LIB_DEPEND} )
test? (
|| ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 )
- dev-cpp/gmock
+ >=dev-cpp/gmock-1.6
+ >=dev-cpp/gtest-1.6
dev-util/cucumber
dev-util/aruba
)
@@ -31,6 +32,10 @@ DEPEND="${RDEPEND}
src_prepare() {
sed -i -e '/^INSTALL_PROGRAM/s:-s::' Makefile.in || die
+ sed -i \
+ -e '/^unit-tests\/unit_tests:/s:lib/libgmock.a::' \
+ -e '/-lgmock/s:$: -lgtest:' \
+ unit-tests/Makefile.in || die #493440
epatch_user
eautoreconf
}