blob: cb10809f672e02da56203cb73cd288805f70bf2d (
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Lightweight & easy-to-use Jabber library written in C"
HOMEPAGE="https://mcabber.com"
SRC_URI="https://mcabber.com/files/${PN}/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="asyncns debug +gnutls idn +ssl"
RDEPEND="
>=dev-libs/glib-2.38
asyncns? ( >=net-libs/libasyncns-0.3 )
idn? ( net-dns/libidn:= )
ssl? (
gnutls? ( >=net-libs/gnutls-3.0.20:= )
!gnutls? ( dev-libs/openssl:= )
)
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/glib-utils
virtual/pkgconfig
"
PATCHES=( "${FILESDIR}"/${PN}-1.5.4-freeaddrinfo-musl.patch )
src_configure() {
local SSL=no
use ssl && SSL=$(usex gnutls gnutls openssl)
local myeconfargs=(
--with-compile-warnings=yes # avoid default =error
--with-ssl=${SSL}
$(use_enable debug)
$(use_with asyncns)
$(use_with idn)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
find "${ED}" -type f -name '*.la' -delete || die
}
|