summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2017-01-04 16:54:51 +0100
committerThomas Deutschmann <whissi@gentoo.org>2017-01-04 16:55:16 +0100
commit68c6dd181f51fd8f5be1bed47e1e412fe61b927e (patch)
tree63bc02bda3242601f2c4035922080232156abb8b /net-irc/znc
parentdev-python/setuptools: x86 stable wrt bug #588284 (diff)
downloadgentoo-68c6dd181f51fd8f5be1bed47e1e412fe61b927e.tar.gz
gentoo-68c6dd181f51fd8f5be1bed47e1e412fe61b927e.tar.bz2
gentoo-68c6dd181f51fd8f5be1bed47e1e412fe61b927e.zip
net-irc/znc: Update live ebuild
Use gtest from source. Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-irc/znc')
-rw-r--r--net-irc/znc/znc-9999.ebuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/net-irc/znc/znc-9999.ebuild b/net-irc/znc/znc-9999.ebuild
index 642a974b3a15..03a69e4ff691 100644
--- a/net-irc/znc/znc-9999.ebuild
+++ b/net-irc/znc/znc-9999.ebuild
@@ -9,6 +9,8 @@ PLOCALES="ru"
inherit cmake-utils l10n python-single-r1 readme.gentoo-r1 systemd user
+GTEST_VER="1.8.0"
+GTEST_URL="https://github.com/google/googletest/archive/release-${GTEST_VER}.tar.gz -> gtest-${GTEST_VER}.tar.gz"
DESCRIPTION="An advanced IRC Bouncer"
if [[ ${PV} == *9999* ]]; then
@@ -16,7 +18,10 @@ if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI=${EGIT_REPO_URI:-"https://github.com/znc/znc.git"}
SRC_URI=""
else
- SRC_URI="http://znc.in/releases/archive/${P}.tar.gz"
+ SRC_URI="
+ http://znc.in/releases/archive/${P}.tar.gz
+ test? ( ${GTEST_URL} )
+ "
KEYWORDS="~amd64 ~arm ~x86"
fi
@@ -46,7 +51,6 @@ DEPEND="
virtual/pkgconfig
perl? ( >=dev-lang/swig-3.0.0 )
python? ( >=dev-lang/swig-3.0.0 )
- test? ( dev-cpp/gtest )
"
pkg_setup() {
@@ -95,6 +99,11 @@ src_configure() {
-DWANT_ZLIB="$(usex zlib)"
)
+ if [[ ${PV} != *9999* ]] && use test; then
+ export GTEST_ROOT="${WORKDIR}/googletest-release-${GTEST_VER}/googletest"
+ export GMOCK_ROOT="${WORKDIR}/googletest-release-${GTEST_VER}/googlemock"
+ fi
+
cmake-utils_src_configure
}