summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2021-12-14 13:38:09 -0600
committerJohn Helmert III <ajak@gentoo.org>2021-12-14 13:40:13 -0600
commitcc263284ef21c967e53f1245482533c0353fd0b3 (patch)
tree0ab559f43b69b0f0dfe6bcd2e323a400f4d6bd92 /net-libs/libiscsi/libiscsi-1.19.0-r1.ebuild
parentdev-lang/ammonite-repl-bin: stabilize 2.4.1 for amd64, x86 (diff)
downloadgentoo-cc263284ef21c967e53f1245482533c0353fd0b3.tar.gz
gentoo-cc263284ef21c967e53f1245482533c0353fd0b3.tar.bz2
gentoo-cc263284ef21c967e53f1245482533c0353fd0b3.zip
net-libs/libiscsi: update EAPI 7 -> 8, fix rdma automagic
Closes: https://bugs.gentoo.org/829185 Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'net-libs/libiscsi/libiscsi-1.19.0-r1.ebuild')
-rw-r--r--net-libs/libiscsi/libiscsi-1.19.0-r1.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/net-libs/libiscsi/libiscsi-1.19.0-r1.ebuild b/net-libs/libiscsi/libiscsi-1.19.0-r1.ebuild
new file mode 100644
index 000000000000..b44971289d2f
--- /dev/null
+++ b/net-libs/libiscsi/libiscsi-1.19.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2021 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
+ SRC_URI="https://github.com/sahlberg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-remove-ld-iscsi.patch.bz2"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+fi
+
+DESCRIPTION="iscsi client library and utilities"
+HOMEPAGE="https://github.com/sahlberg/libiscsi"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+IUSE="rdma"
+
+RDEPEND="dev-libs/libgcrypt:0=
+ rdma? ( sys-cluster/rdma-core )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.18.0-fno-common.patch
+ "${FILESDIR}"/${PN}-1.18.0-fno-common-2.patch
+ "${FILESDIR}"/${PN}-1.18.0-fno-common-3.patch
+ "${FILESDIR}"/${PN}-1.19.0-fix-rdma-automagic.patch
+ "${WORKDIR}"/${P}-remove-ld-iscsi.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-manpages \
+ $(use_with rdma) \
+ --disable-werror
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}