summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libiscsi')
-rw-r--r--net-libs/libiscsi/libiscsi-9999.ebuild24
1 files changed, 14 insertions, 10 deletions
diff --git a/net-libs/libiscsi/libiscsi-9999.ebuild b/net-libs/libiscsi/libiscsi-9999.ebuild
index 6defe3546295..9d1977923e12 100644
--- a/net-libs/libiscsi/libiscsi-9999.ebuild
+++ b/net-libs/libiscsi/libiscsi-9999.ebuild
@@ -1,19 +1,23 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-inherit autotools git-r3
+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"
+ KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc x86"
+fi
DESCRIPTION="iscsi client library and utilities"
HOMEPAGE="https://github.com/sahlberg/libiscsi"
-SRC_URI=""
-EGIT_REPO_URI="https://github.com/sahlberg/${PN}.git"
SLOT="0"
LICENSE="GPL-2 LGPL-2"
-KEYWORDS=""
-IUSE="static-libs"
RDEPEND="dev-libs/libgcrypt:0="
DEPEND="${RDEPEND}"
@@ -26,11 +30,11 @@ src_prepare() {
src_configure() {
econf \
--enable-manpages \
- --disable-werror \
- $(use_enable static-libs static)
+ --disable-static \
+ --disable-werror
}
src_install() {
default
- find "${D}" -name '*.la' -delete || die
+ find "${ED}" -name '*.la' -delete || die
}