dev-libs/libstrophe - 0.14.0 (gentoo)

Search

Package Information

Description:
A simple, lightweight C library for writing XMPP clients
Homepage:
https://strophe.im/libstrophe/
License:
|| ( MIT GPL-3 )

Ebuild Details

Version EAPI Keywords Slot
0.14.0 8 amd64 ~arm64 0/0.1
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic

DESCRIPTION="A simple, lightweight C library for writing XMPP clients"
HOMEPAGE="https://strophe.im/libstrophe/"
SRC_URI="
	https://github.com/strophe/${PN}/releases/download/${PV}/${P}.tar.xz
"
LICENSE="|| ( MIT GPL-3 )"
# Subslot: ${SONAME}.1 to differentiate from previous versions without SONAME
SLOT="0/0.1"
KEYWORDS="amd64 ~arm64"
IUSE="doc expat gnutls"

RDEPEND="
	expat? ( dev-libs/expat )
	!expat? ( dev-libs/libxml2:2= )
	gnutls? ( net-libs/gnutls:0= )
	!gnutls? ( dev-libs/openssl:0= )
"
DEPEND="${RDEPEND}"
BDEPEND="
	virtual/pkgconfig
	doc? ( app-text/doxygen )
"

DOCS=( ChangeLog )

src_configure() {
	# bug #944913
	append-cflags -std=gnu17
	local myeconf=(
		--enable-tls
		$(use_with !expat libxml2)
		$(use_with gnutls)
	)
	econf "${myeconf[@]}"
}

src_compile() {
	default
	if use doc; then
		doxygen || die
		HTML_DOCS=( docs/html/* )
	fi
}

src_install() {
	default
	use doc && dodoc -r examples
	find "${D}" -type f \( -name '*.la' -o -name '*.a' \) -delete || die
}

USE Flags

doc

Dependencies

DEPEND

	expat? ( dev-libs/expat )
	!expat? ( dev-libs/libxml2:2= )
	gnutls? ( net-libs/gnutls:0= )
	!gnutls? ( dev-libs/openssl:0= )

RDEPEND

	expat? ( dev-libs/expat )
	!expat? ( dev-libs/libxml2:2= )
	gnutls? ( net-libs/gnutls:0= )
	!gnutls? ( dev-libs/openssl:0= )

BDEPEND

	virtual/pkgconfig
	doc? ( app-text/doxygen )

Manifest for 0.14.0

Type File Size Source URLs
DIST libstrophe-0.14.0.tar.xz 415048 bytes https://github.com/strophe/libstrophe/releases/download/0.14.0/libstrophe-0.14.0.tar.xz