diff options
author | 2023-08-03 08:26:38 +0000 | |
---|---|---|
committer | 2023-08-17 14:35:05 +0200 | |
commit | 75d4f2c9b3364fd3a81e0347a47bb38c070f152d (patch) | |
tree | 975e27b52df9f2d0a1bc5768ebd3e5f6b734569d /dev-libs/libstrophe/libstrophe-0.12.3.ebuild | |
parent | media-libs/libplacebo: note meson changes in python patch (diff) | |
download | gentoo-75d4f2c9b3364fd3a81e0347a47bb38c070f152d.tar.gz gentoo-75d4f2c9b3364fd3a81e0347a47bb38c070f152d.tar.bz2 gentoo-75d4f2c9b3364fd3a81e0347a47bb38c070f152d.zip |
dev-libs/libstrophe: add 0.12.3
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-libs/libstrophe/libstrophe-0.12.3.ebuild')
-rw-r--r-- | dev-libs/libstrophe/libstrophe-0.12.3.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-libs/libstrophe/libstrophe-0.12.3.ebuild b/dev-libs/libstrophe/libstrophe-0.12.3.ebuild new file mode 100644 index 000000000000..84880fd6c622 --- /dev/null +++ b/dev-libs/libstrophe/libstrophe-0.12.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +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-doc/doxygen ) +" + +DOCS=( ChangeLog ) + +src_configure() { + # shellcheck disable=SC2207 + 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 +} |