commit:     49688759606190197e21596ff1c97dfba5977796
Author:     Andrej Shadura <andrew.shadura <AT> collabora <DOT> co <DOT> uk>
AuthorDate: Thu Nov 21 14:15:57 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 21 16:22:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49688759

dev-libs/xmlrpc-c: Package xmlrpc-c 1.59.03

Signed-off-by: Andrej Shadura <andrew.shadura <AT> collabora.co.uk>
Closes: https://github.com/gentoo/gentoo/pull/39397
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/xmlrpc-c/Manifest                |  1 +
 dev-libs/xmlrpc-c/xmlrpc-c-1.59.03.ebuild | 80 +++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/dev-libs/xmlrpc-c/Manifest b/dev-libs/xmlrpc-c/Manifest
index 0b772b778565..ba5e6b1d3e5a 100644
--- a/dev-libs/xmlrpc-c/Manifest
+++ b/dev-libs/xmlrpc-c/Manifest
@@ -1,2 +1,3 @@
 DIST xmlrpc-c-1.54.05.tgz 933228 BLAKE2B 
50d73fe22454f04ffebf11d4b88986eaac571d107abce4e04244ad0b74469fc5233178967e3dd832a8525514912e4f835fa1ce13c439caf918a2b2d0c05021a0
 SHA512 
81bf8f398e9cb73b421907d8e304b9a6dc8da931f573f7296457486ade432f4a00a94b6850391690f7b229928f785522e5852db8aca68cb462c71d139e4f27b1
 DIST xmlrpc-c-1.54.06.tgz 933199 BLAKE2B 
1286323b59aa4d77fe2f8b04fef18d9a448d29a7fa23aad143418e62c92ac6a5156bb61ee58e0df4b0667e73a9170663b02b42fac94b38df71fc789d13e929e0
 SHA512 
0e8c920ccf04c78947bc66f7210b62c153ba185183c181461584772885690a3bb09dcf63d69c5b0f1f76a96f162a2a0eba6268e7210dda42561f59bec8008733
+DIST xmlrpc-c-1.59.03.tgz 935404 BLAKE2B 
7a8d2ea19fe698538747d8b5735eb3247dec0c0ef87204cdec3a2aa051581e2d23b1a7b41673ff422c69474c5a4f24243945d5474c30beafc59235bc60c2cad5
 SHA512 
10b984421e7f4a7c1434b03f542ba1c9f9027ae72ed6022aca5efee55fc630b0f630f1ca5193fd2477c743ffd994c199064b15b73d1b019004f1f8e36cbd6921

diff --git a/dev-libs/xmlrpc-c/xmlrpc-c-1.59.03.ebuild 
b/dev-libs/xmlrpc-c/xmlrpc-c-1.59.03.ebuild
new file mode 100644
index 000000000000..4d3950ce61ef
--- /dev/null
+++ b/dev-libs/xmlrpc-c/xmlrpc-c-1.59.03.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+# Upstream maintains 3 release channels: 
https://xmlrpc-c.sourceforge.net/release.html
+# 1. Only the "Super Stable" series is released as a tarball
+# 2. SVN tagging of releases seems spotty: 
https://svn.code.sf.net/p/xmlrpc-c/code/release_number/
+# Because of this, we are following the "Super Stable" release channel
+
+DESCRIPTION="A lightweight RPC library based on XML and HTTP"
+HOMEPAGE="https://xmlrpc-c.sourceforge.net/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tgz";
+
+LICENSE="BSD"
+SLOT="0/4.59"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
+IUSE="abyss +cgi +curl +cxx +libxml2 threads test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( abyss curl cxx )"
+
+RDEPEND="
+       dev-libs/openssl:=
+       sys-libs/ncurses:=
+       sys-libs/readline:=
+       curl? ( net-misc/curl )
+       libxml2? ( dev-libs/libxml2 )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.51.06-pkg-config-libxml2.patch
+       "${FILESDIR}"/${PN}-1.51.06-pkg-config-openssl.patch
+)
+
+pkg_setup() {
+       use curl || ewarn "Curl support disabled: No client library will be 
built"
+}
+
+src_prepare() {
+       default
+
+       sed -i \
+               -e "/CFLAGS_COMMON/s|-g -O3$||" \
+               -e "/CXXFLAGS_COMMON/s|-g$||" \
+               common.mk || die
+       eautoconf
+}
+
+src_configure() {
+       tc-export PKG_CONFIG
+
+       econf \
+               --disable-libwww-client \
+               --disable-wininet-client \
+               --without-libwww-ssl \
+               $(use_enable abyss abyss-server) \
+               $(use_enable cgi cgi-server) \
+               $(use_enable curl curl-client) \
+               $(use_enable cxx cplusplus) \
+               $(use_enable libxml2 libxml2-backend) \
+               $(use_enable threads abyss-threads)
+}
+
+src_compile() {
+       default
+
+       # Tools building is broken in this release
+       #use tools && emake -rC "${S}"/tools
+}
+
+src_install() {
+       default
+
+       # Tools building is broken in this release
+       #use tools && emake DESTDIR="${D}" -rC "${S}"/tools install
+}

Reply via email to