commit:     a6e6d300fcaf7125c9869db194547ced6c6be910
Author:     Adrian Schollmeyer <nex+b-g-o <AT> nexadn <DOT> de>
AuthorDate: Mon May 19 16:45:34 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 21:13:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6e6d300

dev-libs/libstrophe: add 0.14.0

Signed-off-by: Adrian Schollmeyer <nex+b-g-o <AT> nexadn.de>
Part-of: https://github.com/gentoo/gentoo/pull/42155
Closes: https://github.com/gentoo/gentoo/pull/42155
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libstrophe/Manifest                 |  1 +
 dev-libs/libstrophe/libstrophe-0.14.0.ebuild | 56 ++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/dev-libs/libstrophe/Manifest b/dev-libs/libstrophe/Manifest
index 83459f94e189..877e667210bc 100644
--- a/dev-libs/libstrophe/Manifest
+++ b/dev-libs/libstrophe/Manifest
@@ -1 +1,2 @@
 DIST libstrophe-0.13.1.tar.xz 405676 BLAKE2B 
b5ee084899c01d600c23e8d54e600bf72c2a92147e739d3b286c034ea3badf5e924b11a08c8c84f1453e88df40d494549286897ac3e90fb9af18b29da9754e07
 SHA512 
e150567db75ce615d7946471d15f968f8825ae75aa349a3c3be4e960eaea0b4960ac4c2da9aec40e984678361d89db3055062aa523ef485e9ea58a761bbcceed
+DIST libstrophe-0.14.0.tar.xz 415048 BLAKE2B 
d2b941aafaf1af9e199e67935376408a19872cd430095ff04f4af9e351c95b2ed04c1a91bbed6b3bcd5f8bfac62c4e704d602d42d4f61df468635e23787dbc7b
 SHA512 
435d6f8085bd04286ac0e0e2ea729b9df2947e3dd22be57628c66ca2e6ff92a40e3a93750d95bea64daab1c1109f3f55e8480348054e9c5cb267655c60078e23

diff --git a/dev-libs/libstrophe/libstrophe-0.14.0.ebuild 
b/dev-libs/libstrophe/libstrophe-0.14.0.ebuild
new file mode 100644
index 000000000000..6390bbe6d562
--- /dev/null
+++ b/dev-libs/libstrophe/libstrophe-0.14.0.ebuild
@@ -0,0 +1,56 @@
+# 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
+}

Reply via email to