summaryrefslogtreecommitdiff
path: root/dev-libs/aws-c-http
diff options
context:
space:
mode:
authorJaco Kroon <jkroon@gentoo.org>2025-12-01 16:50:28 +0200
committerJaco Kroon <jkroon@gentoo.org>2025-12-01 16:54:33 +0200
commit4580b518fdf9f43ac77fa36ccbc6a8abef91a4c0 (patch)
tree304622f898c0ee5987c9be5074591523c241a23b /dev-libs/aws-c-http
parent0ff240b73a68fe1d7281fc17f84a65d888799571 (diff)
downloadgentoo-4580b518fdf9f43ac77fa36ccbc6a8abef91a4c0.tar.gz
gentoo-4580b518fdf9f43ac77fa36ccbc6a8abef91a4c0.tar.bz2
gentoo-4580b518fdf9f43ac77fa36ccbc6a8abef91a4c0.zip
dev-libs/aws-c-http: 0.10.7
Add tests. Signed-off-by: Jaco Kroon <jkroon@gentoo.org>
Diffstat (limited to 'dev-libs/aws-c-http')
-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
+}