blob: f994376b40d14f83e9c347fea0d95b637f863610 (
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
75
76
77
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
inherit flag-o-matic libtool
DESCRIPTION="High-level C Binding for ZeroMQ"
HOMEPAGE="http://czmq.zeromq.org"
SRC_URI="https://github.com/zeromq/${PN}/releases/download/v${PV}/${P}.tar.gz"
LICENSE="MPL-2.0"
SLOT="0/4"
KEYWORDS="amd64 arm arm64 ~hppa ~ppc64 ~riscv x86"
IUSE="curl drafts http-client http-server lz4 nss systemd test +uuid"
REQUIRED_USE="
http-client? ( drafts )
http-server? ( drafts )
"
RESTRICT="!test? ( test )"
BDEPEND="app-text/asciidoc
app-text/xmlto
virtual/pkgconfig"
RDEPEND=">=net-libs/zeromq-4:=[drafts?]
http-client? ( net-misc/curl )
http-server? ( net-libs/libmicrohttpd:= )
lz4? ( app-arch/lz4:= )
nss? (
dev-libs/nspr
dev-libs/nss
)
systemd? ( sys-apps/systemd )
uuid? ( sys-apps/util-linux:0 )"
DEPEND="${RDEPEND}"
DOCS=( AUTHORS NEWS README.md )
src_prepare() {
default
elibtoolize
}
src_configure() {
# -Werror=strict-aliasing
# https://bugs.gentoo.org/964691
# https://github.com/zeromq/czmq/issues/2334
#
# Do not trust with LTO either.
append-flags -fno-strict-aliasing
filter-lto
local myeconfargs=(
--enable-drafts=$(usex drafts)
--with-docs=no
--with-uuid=$(usex uuid)
--with-libcurl=$(usex http-client)
--with-libmicrohttpd=$(usex http-server)
--with-libsystemd=$(usex systemd)
--with-liblz4=$(usex lz4)
--with-nss=$(usex nss)
$(use_enable test czmq_selftest)
)
# Force bash for configure until the fixes for bug #923922 land in a release
# https://github.com/zeromq/zproject/pull/1336
# https://github.com/zeromq/libzmq/pull/4651
CONFIG_SHELL="${BROOT}"/bin/bash econf "${myeconfargs[@]}"
}
src_install() {
default
find "${ED}" -type f -name "*.la" -delete || die
}
|