summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-06-13 05:08:21 +0100
committerSam James <sam@gentoo.org>2024-06-13 05:09:17 +0100
commit247aeb9cf521d95a853d52a7b1f4719f508a0ffd (patch)
tree6fbe04a5e2b1161d9019cd422f8e7a27917a551d /dev-libs/protobuf
parentdev-python/python-box: Enable py3.13 (diff)
downloadgentoo-247aeb9cf521d95a853d52a7b1f4719f508a0ffd.tar.gz
gentoo-247aeb9cf521d95a853d52a7b1f4719f508a0ffd.tar.bz2
gentoo-247aeb9cf521d95a853d52a7b1f4719f508a0ffd.zip
dev-libs/protobuf: fix tests
'full-test' requires this. TestSourceDir in src/google/protobuf/testing/googletest.cc respects 'srcdir' as an env var as a hint. Bug: https://bugs.gentoo.org/934062 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/protobuf')
-rw-r--r--dev-libs/protobuf/protobuf-22.5-r1.ebuild5
-rw-r--r--dev-libs/protobuf/protobuf-23.3-r3.ebuild5
-rw-r--r--dev-libs/protobuf/protobuf-26.1-r1.ebuild5
3 files changed, 15 insertions, 0 deletions
diff --git a/dev-libs/protobuf/protobuf-22.5-r1.ebuild b/dev-libs/protobuf/protobuf-22.5-r1.ebuild
index 047dddcdea67..cd3d12dbea09 100644
--- a/dev-libs/protobuf/protobuf-22.5-r1.ebuild
+++ b/dev-libs/protobuf/protobuf-22.5-r1.ebuild
@@ -83,6 +83,11 @@ src_compile() {
fi
}
+src_test() {
+ local -x srcdir="${S}"/src
+ cmake-multilib_src_test
+}
+
multilib_src_install_all() {
find "${ED}" -name "*.la" -delete || die
diff --git a/dev-libs/protobuf/protobuf-23.3-r3.ebuild b/dev-libs/protobuf/protobuf-23.3-r3.ebuild
index e629850b71ed..6ef5f8f482f1 100644
--- a/dev-libs/protobuf/protobuf-23.3-r3.ebuild
+++ b/dev-libs/protobuf/protobuf-23.3-r3.ebuild
@@ -74,6 +74,11 @@ src_compile() {
fi
}
+src_test() {
+ local -x srcdir="${S}"/src
+ cmake-multilib_src_test
+}
+
multilib_src_install_all() {
find "${ED}" -name "*.la" -delete || die
diff --git a/dev-libs/protobuf/protobuf-26.1-r1.ebuild b/dev-libs/protobuf/protobuf-26.1-r1.ebuild
index b98e219098fd..534834edca75 100644
--- a/dev-libs/protobuf/protobuf-26.1-r1.ebuild
+++ b/dev-libs/protobuf/protobuf-26.1-r1.ebuild
@@ -72,6 +72,11 @@ src_compile() {
fi
}
+src_test() {
+ local -x srcdir="${S}"/src
+ cmake-multilib_src_test
+}
+
multilib_src_install_all() {
find "${ED}" -name "*.la" -delete || die