summaryrefslogtreecommitdiff
path: root/packages/net-libs/nghttp2/nghttp2-1.28.0.exheres-0
blob: 8b3a7356f16694565aeec387cbdc403f9f1fee7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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/*
}