summaryrefslogtreecommitdiff
path: root/dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild')
-rw-r--r--dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild b/dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild
index d857aab1735f..db397cd50a55 100644
--- a/dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild
+++ b/dev-libs/aws-c-http/aws-c-http-0.10.7.ebuild
@@ -12,9 +12,23 @@ inherit cmake
LICENSE="Apache-2.0"
SLOT="0/1"
KEYWORDS="~amd64"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
DEPEND="dev-libs/aws-c-common
dev-libs/aws-c-compression
dev-libs/aws-c-io"
RDEPEND="${DEPEND}"
BDEPEND="dev-libs/aws-c-common"
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=$(usex test)
+ )
+ use test && mycmakeargs+=(
+ -DENABLE_NET_TESTS=OFF # Network Sandbox cause these to fail.
+ )
+
+ cmake_src_configure
+}