1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # TODO: Add python support.
8 inherit multilib-minimal
10 if [[ ${PV} == 9999 ]] ; then
11 EGIT_REPO_URI="https://github.com/nghttp2/nghttp2.git"
12 inherit autotools git-r3
14 SRC_URI="https://github.com/nghttp2/nghttp2/releases/download/v${PV}/${P}.tar.xz"
15 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86"
18 DESCRIPTION="HTTP/2 C Library"
19 HOMEPAGE="https://nghttp2.org/"
22 SLOT="0/1.14" # <C++>.<C> SONAMEs
23 IUSE="cxx debug hpack-tools jemalloc libressl static-libs test +threads utils xml"
25 RESTRICT="!test? ( test )"
28 !libressl? ( >=dev-libs/openssl-1.0.2:0=[-bindist,${MULTILIB_USEDEP}] )
29 libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
34 dev-libs/boost:=[${MULTILIB_USEDEP},threads]
36 hpack-tools? ( >=dev-libs/jansson-2.5 )
37 jemalloc? ( dev-libs/jemalloc[${MULTILIB_USEDEP}] )
40 >=dev-libs/libev-4.15[${MULTILIB_USEDEP}]
41 >=sys-libs/zlib-1.2.3[${MULTILIB_USEDEP}]
42 net-dns/c-ares:=[${MULTILIB_USEDEP}]
44 xml? ( >=dev-libs/libxml2-2.7.7:2[${MULTILIB_USEDEP}] )"
47 test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
51 [[ ${PV} == 9999 ]] && eautoreconf
54 multilib_src_configure() {
58 --disable-python-bindings
61 $(use_enable cxx asio-lib)
63 $(multilib_native_use_enable hpack-tools)
64 $(use_enable static-libs static)
66 $(multilib_native_use_enable utils app)
67 $(multilib_native_use_with jemalloc)
68 $(multilib_native_use_with xml libxml2)
70 ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
73 multilib_src_install_all() {
74 if ! use static-libs ; then
75 find "${ED}"/usr -name '*.la' -delete || die