commit:     8f49ba73db7230533df1ff9086049726f22a4156
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Thu Sep  5 18:28:20 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Oct  7 12:56:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f49ba73

net-libs/libiscsi: add 1.20.0

https://bugs.gentoo.org/936975 persists

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Closes: https://github.com/gentoo/gentoo/pull/38460
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-libs/libiscsi/Manifest               |  1 +
 net-libs/libiscsi/libiscsi-1.20.0.ebuild | 73 ++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git a/net-libs/libiscsi/Manifest b/net-libs/libiscsi/Manifest
index f5cd486396a8..642d8967544e 100644
--- a/net-libs/libiscsi/Manifest
+++ b/net-libs/libiscsi/Manifest
@@ -1 +1,2 @@
 DIST libiscsi-1.19.0_p20230208.tar.gz 293283 BLAKE2B 
8dafcdd87d66c8addea8734af264b1ce70ec7cbb7925becf1946b616821a94a0d22ed9a903f5f24c03d9b647353fc76a708cafed0f6482199a45cb628c143fff
 SHA512 
d6416833b4e1352e91d869ae753fdc01968e303d5ce7de52f27692ce7f8d7ca4f648931d54f0ebfa1323f8b43531bfc81771ea0468af4dc9ad53df02c8bad55f
+DIST libiscsi-1.20.0.tar.gz 302381 BLAKE2B 
36d2d80ff51ece0a5577e43f3bfefa7160e2a6a9d026ad5587b64f87dc8c96957cd89251229ae7cab00236e1276c1dae5413b7b9192ce1cf3219c2629f542442
 SHA512 
f614f701671da1b1e7beda052886eb2d6a965482a5b7ae656cb6b5449a387d89302397fb8b6e3579307f98274d66b13d8b2a5d423826683185e5df0d9417d737

diff --git a/net-libs/libiscsi/libiscsi-1.20.0.ebuild 
b/net-libs/libiscsi/libiscsi-1.20.0.ebuild
new file mode 100644
index 000000000000..0c4f828655c5
--- /dev/null
+++ b/net-libs/libiscsi/libiscsi-1.20.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+if [[ ${PV} == *9999 ]]; then
+       EGIT_REPO_URI="https://github.com/sahlberg/${PN}.git";
+       inherit git-r3
+else
+       if [[ ${PV} == *_p* ]]; then
+               # The S path is too long for the test suite otherwise.
+               inherit vcs-snapshot
+
+               MY_COMMIT=""
+               
SRC_URI="https://github.com/sahlberg/libiscsi/archive/${MY_COMMIT}.tar.gz -> 
${P}.tar.gz"
+       else
+               SRC_URI="https://github.com/sahlberg/${PN}/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
+       fi
+
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+fi
+
+DESCRIPTION="iscsi client library and utilities"
+HOMEPAGE="https://github.com/sahlberg/libiscsi";
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+IUSE="rdma test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/libgcrypt:=
+       rdma? ( sys-cluster/rdma-core )
+"
+DEPEND="
+       ${RDEPEND}
+       test? ( dev-util/cunit )
+"
+BDEPEND="test? ( >=sys-block/tgt-1.0.58 )"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.19.0_p20230208-fix-rdma-automagic.patch
+)
+
+src_prepare() {
+       default
+
+       # bug #906063
+       rm tests/test_0600_ipv6.sh || die
+
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               --enable-manpages
+               --disable-werror
+               $(use_with rdma)
+               $(use_enable test tests)
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_test() {
+       emake -C tests test
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to