1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit distutils-r1 linux-info
10 if [[ ${PV} == 9999 ]]; then
12 EGIT_REPO_URI="https://github.com/Datera/${PN}.git"
16 SRC_URI="https://github.com/Datera/${PN}/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
17 S="${WORKDIR}/${PN}-${MY_PV}"
21 DESCRIPTION="CLI and shell for the Linux SCSI target"
22 HOMEPAGE="http://linux-iscsi.org/wiki/targetcli"
28 DEPEND="dev-python/configshell[${PYTHON_USEDEP}]
29 dev-python/prettytable[${PYTHON_USEDEP}]
30 dev-python/rtslib[${PYTHON_USEDEP}]"
32 dev-python/urwid[${PYTHON_USEDEP}]"
35 if use kernel_linux; then
36 linux-info_get_any_version
37 if ! linux_config_exists; then
38 eerror "Unable to check your kernel for SCSI target support"
40 CONFIG_CHECK="~TARGET_CORE"