diff options
author | Craig Andrews <candrews@gentoo.org> | 2019-09-13 11:53:43 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2019-09-13 16:38:05 -0400 |
commit | 7ba0adcf1567d832bf81026b28c0105a705a2d96 (patch) | |
tree | 333115d19a3daaea28396fed9e508f1c0ea44a7c /net-libs/nghttp3/nghttp3-0_pre20190912.ebuild | |
parent | net-libs/ngtcp2: Implementation of the IETF QUIC Protocol (diff) | |
download | gentoo-7ba0adcf1567d832bf81026b28c0105a705a2d96.tar.gz gentoo-7ba0adcf1567d832bf81026b28c0105a705a2d96.tar.bz2 gentoo-7ba0adcf1567d832bf81026b28c0105a705a2d96.zip |
net-libs/nghttp3: HTTP/3 library written in C
Closes: https://bugs.gentoo.org/694304
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-libs/nghttp3/nghttp3-0_pre20190912.ebuild')
-rw-r--r-- | net-libs/nghttp3/nghttp3-0_pre20190912.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net-libs/nghttp3/nghttp3-0_pre20190912.ebuild b/net-libs/nghttp3/nghttp3-0_pre20190912.ebuild new file mode 100644 index 000000000000..6489dde91d83 --- /dev/null +++ b/net-libs/nghttp3/nghttp3-0_pre20190912.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-multilib + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/ngtcp2/nghttp3.git" + inherit autotools git-r3 +else + GIT_COMMIT="51379a041174ad953dc6ad437712f3b279f81919" + SRC_URI="https://github.com/ngtcp2/nghttp3/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${GIT_COMMIT}" + KEYWORDS="~amd64" +fi + +DESCRIPTION="HTTP/3 library written in C" +HOMEPAGE="https://github.com/ngtcp2/nghttp3/" + +LICENSE="MIT" +SLOT="0/0" +IUSE="test" + +BDEPEND="virtual/pkgconfig" +DEPEND="test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )" +RDEPEND="" + +multilib_src_configure() { + local mycmakeargs=( + -DENABLE_LIB_ONLY=ON + -DENABLE_EXAMPLES=OFF + -DCMAKE_DISABLE_FIND_PACKAGE_CUnit=$(usex !test) + ) + cmake-utils_src_configure +} + +multilib_src_test() { + cmake-utils_src_make check +} |