summaryrefslogtreecommitdiff
path: root/packages/net-libs/nghttp2/nghttp2-1.29.0.exheres-0
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net-libs/nghttp2/nghttp2-1.29.0.exheres-0')
-rw-r--r--packages/net-libs/nghttp2/nghttp2-1.29.0.exheres-074
1 files changed, 74 insertions, 0 deletions
diff --git a/packages/net-libs/nghttp2/nghttp2-1.29.0.exheres-0 b/packages/net-libs/nghttp2/nghttp2-1.29.0.exheres-0
new file mode 100644
index 0000000..8b3a735
--- /dev/null
+++ b/packages/net-libs/nghttp2/nghttp2-1.29.0.exheres-0
@@ -0,0 +1,74 @@
+# Copyright 2015 Kylie McClain <somasis@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require github [ release="v${PV}" suffix=tar.xz ]
+
+SUMMARY="An implementation of the Hypertext Transfer Protocol version 2 in C"
+HOMEPAGE+=" https://nghttp2.org"
+
+LICENCES="MIT"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS="
+ debug doc examples systemd utils
+
+ systemd [[ requires = utils ]]
+ utils? ( ( providers: libressl openssl ) [[ number-selected = exactly-one ]] )
+"
+
+DEPENDENCIES="
+ build:
+ virtual/pkg-config[>=0.20]
+ doc? ( dev-python/Sphinx[python_abis:*(-)?] )
+ build+run:
+ dev-libs/libxml2:2.0[>=2.6.26]
+ examples? ( dev-libs/libevent:=[>=2.0.8] )
+ systemd? ( sys-apps/systemd[>=209] )
+ utils? (
+ dev-libs/boost[>=1.54.0]
+ dev-libs/jansson[>=2.5]
+ dev-libs/jemalloc
+ dev-libs/libev[>=4.15]
+ net-dns/c-ares[>=1.7.5]
+ sys-libs/zlib[>=1.2.3]
+ providers:libressl? ( dev-libs/libressl:= )
+ providers:openssl? ( dev-libs/openssl[>=1.0.1] )
+ )
+ test:
+ dev-util/cunit[>=2.1]
+"
+
+DEFAULT_SRC_CONFIGURE_PARAMS=(
+ # if someone really wants these, add them. they're a PITA to get working.
+ --disable-python-bindings
+ --disable-static
+ --disable-werror
+ --with-libxml2
+)
+DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
+ debug
+ examples
+ 'utils app'
+ 'utils hpack-tools'
+)
+DEFAULT_SRC_CONFIGURE_OPTION_WITHS=(
+ systemd
+ 'utils jemalloc'
+)
+
+src_compile() {
+ default
+
+ option doc && emake -C doc html
+}
+
+src_install() {
+ default
+
+ if ! option utils; then
+ edo rmdir "${IMAGE}"/usr/$(exhost --target)/bin
+ fi
+
+ option doc && dodoc -r doc/manual/html/*
+}
+