diff options
Diffstat (limited to 'net-libs/nghttp3/nghttp3-9999.ebuild')
-rw-r--r-- | net-libs/nghttp3/nghttp3-9999.ebuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/net-libs/nghttp3/nghttp3-9999.ebuild b/net-libs/nghttp3/nghttp3-9999.ebuild index 6715be902969..42309a43581b 100644 --- a/net-libs/nghttp3/nghttp3-9999.ebuild +++ b/net-libs/nghttp3/nghttp3-9999.ebuild @@ -10,7 +10,7 @@ if [[ ${PV} == 9999 ]] ; then inherit git-r3 else SRC_URI="https://github.com/ngtcp2/nghttp3/releases/download/v${PV}/${P}.tar.xz" - KEYWORDS="~amd64 ~arm64 ~hppa" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~riscv ~x86" fi DESCRIPTION="HTTP/3 library written in C" @@ -18,10 +18,14 @@ HOMEPAGE="https://github.com/ngtcp2/nghttp3/" LICENSE="MIT" SLOT="0/0" -IUSE="static-libs" + +IUSE="static-libs test" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + test? ( static-libs ) +" BDEPEND="virtual/pkgconfig" -RDEPEND="" multilib_src_configure() { local mycmakeargs=( @@ -29,9 +33,10 @@ multilib_src_configure() { -DENABLE_STATIC_LIB=$(usex static-libs) -DENABLE_EXAMPLES=OFF ) + use test && mycmakeargs+=( -DBUILD_TESTING=ON ) cmake_src_configure } multilib_src_test() { - cmake_build check + multilib_is_native_abi && cmake_build check } |