commit:     599a07abf91629eb977cef1460d1bd2ec5631cde
Author:     Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Mon May 26 22:33:41 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 26 20:01:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=599a07ab

sys-libs/libnbd: add 1.23.4

Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/40808
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/libnbd/Manifest             |  3 +-
 sys-libs/libnbd/libnbd-1.23.4.ebuild | 98 ++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+), 1 deletion(-)

diff --git a/sys-libs/libnbd/Manifest b/sys-libs/libnbd/Manifest
index e7d55c4fd950..385a1cde3fb1 100644
--- a/sys-libs/libnbd/Manifest
+++ b/sys-libs/libnbd/Manifest
@@ -1,2 +1,3 @@
 DIST libnbd-1.18.1.tar.gz 1482736 BLAKE2B 
d3f0b2993fa1392df93b0bbc5d63805489ad1a82cf5bcc5eb5c3b5b7e7e6c40095471ab8fc964cc0e5c7a99affa7150f7be38cc16c42f27fc4cdc16bd0ca0359
 SHA512 
f4262666be55d580550e053355f14f80d352bf869ae7241e9fa032a9b5cd9e027eb89a536871c1206422413fc7ed745da7d612b3e1413f76ec17168705fbf12c
-DIST libnbd-1.22.1.tar.gz 1565817 BLAKE2B 
f06ab0002b21a2960614fa2f704f007dc90713994c8a9dd8dd769d8ef02a451e45a84c8ed9b59c8d9334ab8c4ba4fa0339afa88bc0b959ea280d1d8fecd07e0a
 SHA512 
3f265ed59020c394c5e1f46c51d0ae7f3e7e54461739da964ac92b5c4c8bc98ea9813b93342e025f5f770b688d16d155d6e74d715beab482a040115df6be5afa
+DIST libnbd-1.22.2.tar.gz 1567641 BLAKE2B 
4758cdb2e85f4b82abf95502ab3a7d687df34ff89e74e69066e2f396218004d5e856a24114558b9cf1d843fc47d0f3499657e749e1837d357080eda63793c1e7
 SHA512 
5ece4cdc41cafefbe27ddaeafc2b6b390b0cf25f38f80c1b10ec2e17ee1dcda92964891faf4abca4c8aa5827c9eec6e0b38162871e8c72b2af8e769287cd603d
+DIST libnbd-1.23.4.tar.gz 1578765 BLAKE2B 
5760ef9270c37a3ec8391183951612ea30becd79df6e4fd33719eadf95c823080770f291abe23c02482bfacee7f4f7097baf343c2bbc6ae797a5eb29cb30f51b
 SHA512 
870615431885f6755808a33d287be57ec4b019199daf40a0643d5c6fe4d00d04424a82c55324106f07c96b4004896121654ab545a7c9e05c64728c2fa853f5d4

diff --git a/sys-libs/libnbd/libnbd-1.23.4.ebuild 
b/sys-libs/libnbd/libnbd-1.23.4.ebuild
new file mode 100644
index 000000000000..1aa213a6484b
--- /dev/null
+++ b/sys-libs/libnbd/libnbd-1.23.4.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_OPTIONAL=1
+RUST_REQ_USE="rustfmt"
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit autotools bash-completion-r1 python-single-r1 rust
+
+MY_PV_1="$(ver_cut 1-2)"
+MY_PV_2="$(ver_cut 2)"
+[[ $(( ${MY_PV_2} % 2 )) -eq 0 ]] && SD="stable" || SD="development"
+
+DESCRIPTION="NBD client library in userspace"
+HOMEPAGE="https://gitlab.com/nbdkit/libnbd";
+SRC_URI="https://download.libguestfs.org/libnbd/${MY_PV_1}-${SD}/${P}.tar.gz";
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~sparc ~x86"
+IUSE="examples fuse gnutls go ocaml python rust test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="!test? ( test )"
+
+# libxml2 - URI support
+RDEPEND="
+       dev-libs/libxml2
+       examples? (     dev-libs/glib
+                       dev-libs/libev )
+       fuse? ( sys-fs/fuse:3 )
+       gnutls? ( net-libs/gnutls:= )
+       go? ( dev-lang/go )
+       ocaml? ( >=dev-lang/ocaml-4.03:=[ocamlopt] )
+       python? ( ${PYTHON_DEPS} )
+"
+DEPEND="
+       ${RDEPEND}
+       test? ( sys-block/nbdkit[gnutls?]
+               net-libs/gnutls:=[tools]
+               ocaml? ( dev-ml/findlib[ocamlopt] )
+)
+"
+BDEPEND="dev-lang/perl
+       rust? ( ${RUST_DEPEND} )"
+
+PATCHES=(
+       
"${FILESDIR}/${PN}-1.22.2-build-Remove-automagic-compiling-of-examples.patch"
+       
"${FILESDIR}/${PN}-1.22.2-Makefile.am-Conditionally-compile-some-SUBDIRS.patch"
+       )
+
+pkg_setup() {
+       if use rust; then
+               rust_pkg_setup
+       fi
+       if use python; then
+               python_setup
+       fi
+}
+
+src_prepare() {
+       default
+
+       # Broken under sandbox.
+       cat <<-EOF > lib/test-fork-safe-execvpe.sh || die
+       #!/bin/sh
+       :
+       EOF
+
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               $(use_enable examples)
+               $(use_enable fuse)
+               $(use_enable go golang)
+               $(use_enable ocaml)
+               $(use_enable python)
+               $(use_enable rust)
+               $(use_with gnutls)
+               --disable-ublk # Not in portage
+               --with-libxml2
+       )
+
+       export bashcompdir="$(get_bashcompdir)"
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+
+       find "${ED}" -name '*.la' -delete || die
+       use python && python_optimize
+}

Reply via email to