2021-04-19 02:32:02 -05:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-04-19 02:35:31 -05:00
|
|
|
EAPI=6
|
2021-04-19 02:32:02 -05:00
|
|
|
|
|
|
|
PYTHON_COMPAT=( python3_6 python3_7 python3_8 )
|
|
|
|
|
2021-04-19 04:11:46 -05:00
|
|
|
inherit autotools multilib python-any-r1 git-r3
|
2021-04-19 02:32:02 -05:00
|
|
|
|
|
|
|
DESCRIPTION="Cluster Fencing Agents"
|
|
|
|
HOMEPAGE="https://github.com/ClusterLabs/fence-agents"
|
|
|
|
EGIT_REPO_URI="https://github.com/ClusterLabs/fence-agents.git"
|
2021-04-19 04:11:46 -05:00
|
|
|
EGIT_COMMIT="v${PV}"
|
2021-04-19 02:32:02 -05:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2021-04-19 03:33:34 -05:00
|
|
|
IUSE="libvirt"
|
2021-04-19 02:32:02 -05:00
|
|
|
|
2021-04-19 02:48:31 -05:00
|
|
|
DEPEND="
|
2021-04-19 02:32:02 -05:00
|
|
|
${PYTHON_DEPS}
|
|
|
|
dev-libs/libxslt
|
2021-04-19 02:53:14 -05:00
|
|
|
dev-libs/nss
|
2021-04-19 03:45:30 -05:00
|
|
|
libvirt? ( app-emulation/libvirt )
|
2021-04-19 02:32:02 -05:00
|
|
|
$(python_gen_any_dep '
|
|
|
|
dev-python/pexpect[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pycurl[${PYTHON_USEDEP}]
|
|
|
|
dev-python/suds[${PYTHON_USEDEP}]
|
2021-04-19 03:02:45 -05:00
|
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
2021-04-19 02:32:02 -05:00
|
|
|
')"
|
|
|
|
|
2021-04-19 02:53:14 -05:00
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
2021-04-19 02:32:02 -05:00
|
|
|
src_configure() {
|
|
|
|
econf \
|
2021-04-19 03:38:44 -05:00
|
|
|
$(use_enable libvirt libvirt-plugin) \
|
2021-04-19 02:32:02 -05:00
|
|
|
--docdir=/usr/share/doc/${P} \
|
|
|
|
--libdir=/usr/$(get_libdir) \
|
|
|
|
--localstatedir=/var
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
# dont force /var/run creation on installation wrt #451798
|
|
|
|
rm -rf "${ED}"/var/run || die
|
|
|
|
}
|
|
|
|
|
|
|
|
|