summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-04-04 14:58:54 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-04-04 14:59:02 -0700
commitcbee4bdb65608ba60c9b7dde9c9dbc56ab4b9179 (patch)
tree972bbd8d2323d4ca28fc8d1d912d056782bc2253 /dev-cpp/abseil-cpp
parentdev-cpp/abseil-cpp: correct pkgconfig file location (diff)
downloadgentoo-cbee4bdb65608ba60c9b7dde9c9dbc56ab4b9179.tar.gz
gentoo-cbee4bdb65608ba60c9b7dde9c9dbc56ab4b9179.tar.bz2
gentoo-cbee4bdb65608ba60c9b7dde9c9dbc56ab4b9179.zip
dev-cpp/abseil-cpp: download gtest tarball only if tests requested
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-cpp/abseil-cpp')
-rw-r--r--dev-cpp/abseil-cpp/abseil-cpp-20210324.0-r2.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20210324.0-r2.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20210324.0-r2.ebuild
index 42d1d983e586..55ba466b5c92 100644
--- a/dev-cpp/abseil-cpp/abseil-cpp-20210324.0-r2.ebuild
+++ b/dev-cpp/abseil-cpp/abseil-cpp-20210324.0-r2.ebuild
@@ -14,7 +14,7 @@ GTEST_FILE="gtest-1.10.0_p20200702.tar.gz"
DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
HOMEPAGE="https://abseil.io"
SRC_URI="https://github.com/abseil/abseil-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz
- https://github.com/google/googletest/archive/${GTEST_COMMIT}.tar.gz -> ${GTEST_FILE}"
+ test? ( https://github.com/google/googletest/archive/${GTEST_COMMIT}.tar.gz -> ${GTEST_FILE} )"
LICENSE="
Apache-2.0
@@ -54,8 +54,10 @@ src_prepare() {
python_fix_shebang absl/copts/generate_copts.py
absl/copts/generate_copts.py || die
- sed -i 's/-Werror//g' \
- "${WORKDIR}/googletest-${GTEST_COMMIT}"/googletest/cmake/internal_utils.cmake || die
+ if use test; then
+ sed -i 's/-Werror//g' \
+ "${WORKDIR}/googletest-${GTEST_COMMIT}"/googletest/cmake/internal_utils.cmake || die
+ fi
}
src_configure() {