blob: dffeed24e492b806da3902e301151e4f8704a49b (
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
|
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
WSLAY_HASH="45d22583b488f79d5a4e598cc7675c191c5ab53f"
DESCRIPTION="WebSocket library in C"
HOMEPAGE="https://tatsuhiro-t.github.io/wslay/"
SRC_URI="https://github.com/tatsuhiro-t/wslay/archive/${WSLAY_HASH}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${WSLAY_HASH}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc test"
RESTRICT="!test? ( test )"
DEPEND="
test? ( dev-util/cunit )
"
BDEPEND="
virtual/pkgconfig
doc? ( dev-python/sphinx )
"
src_prepare() {
default
eautoreconf
}
src_configure() {
local econfargs=(
# no options... and cmake build has different issues
$(usev !doc ac_cv_path_SPHINX_BUILD=)
$(usev !test ac_cv_lib_cunit_CU_initialize_registry=)
PKG_CONFIG=false # disables examples by failing to find nettle
)
econf "${econfargs[@]}"
}
src_compile() {
emake $(usev doc -j1) #921192
}
src_install() {
local DOCS=( AUTHORS NEWS README.rst ) # skip non-rst README
default
find "${ED}" -type f -name '*.la' -delete || die
}
|