mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
sys-cluster/pcs: python single
still has that git discover issue Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@ EAPI=7
|
|||||||
PYTHON_COMPAT=( python3_{7..9} )
|
PYTHON_COMPAT=( python3_{7..9} )
|
||||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
USE_RUBY="ruby25 ruby26"
|
USE_RUBY="ruby25 ruby26"
|
||||||
inherit distutils-r1 ruby-ng systemd
|
inherit python-single-r1 ruby-ng systemd
|
||||||
|
|
||||||
DESCRIPTION="Pacemaker/Corosync Configuration System"
|
DESCRIPTION="Pacemaker/Corosync Configuration System"
|
||||||
HOMEPAGE="https://github.com/ClusterLabs/pcs"
|
HOMEPAGE="https://github.com/ClusterLabs/pcs"
|
||||||
@@ -17,27 +17,30 @@ SLOT="0"
|
|||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
IUSE="systemd"
|
IUSE="systemd"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
dev-libs/libffi
|
dev-libs/libffi
|
||||||
media-libs/fontconfig
|
media-libs/fontconfig
|
||||||
sys-apps/coreutils
|
|
||||||
"
|
"
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
${DEPEND}
|
${DEPEND}
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/distro[${PYTHON_USEDEP}]
|
||||||
|
dev-python/dacite[${PYTHON_USEDEP}]
|
||||||
|
dev-python/lxml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
>=www-servers/tornado-6.0[${PYTHON_USEDEP}]
|
||||||
|
<www-servers/tornado-7.0[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
dev-libs/openssl
|
dev-libs/openssl
|
||||||
dev-python/distro[${PYTHON_USEDEP}]
|
|
||||||
dev-python/dacite[${PYTHON_USEDEP}]
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
|
||||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
|
||||||
>=sys-cluster/corosync-3.0
|
>=sys-cluster/corosync-3.0
|
||||||
>=sys-cluster/pacemaker-2.0
|
>=sys-cluster/pacemaker-2.0
|
||||||
sys-libs/pam
|
sys-libs/pam
|
||||||
sys-process/psmisc
|
sys-process/psmisc
|
||||||
>=www-servers/tornado-6.0[${PYTHON_USEDEP}]
|
|
||||||
<www-servers/tornado-7.0[${PYTHON_USEDEP}]
|
|
||||||
"
|
"
|
||||||
|
|
||||||
ruby_add_rdepend "
|
ruby_add_rdepend "
|
||||||
@@ -67,17 +70,21 @@ src_compile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
python-single-r1_pkg_setup
|
||||||
# pre-create directory that is needed by 'make install'
|
# pre-create directory that is needed by 'make install'
|
||||||
dodir "/usr/lib/pcs"
|
dodir "/usr/lib/pcs"
|
||||||
# install files using 'make install'
|
# install files using 'make install'
|
||||||
emake install \
|
|
||||||
SYSTEMCTL_OVERRIDE=$(use systemd) \
|
local makeopts=(
|
||||||
DESTDIR="${D}" \
|
SYSTEMCTL_OVERRIDE=$(use systemd)
|
||||||
CONF_DIR="/etc/default/" \
|
DESTDIR="${D}"
|
||||||
PREFIX="${EPREFIX}/usr/" \
|
CONF_DIR="/etc/default/"
|
||||||
BUNDLE_INSTALL_PYAGENTX=false \
|
PREFIX="${EPREFIX}/usr/"
|
||||||
BUNDLE_TO_INSTALL=false \
|
|
||||||
BUILD_GEMS=false
|
BUILD_GEMS=false
|
||||||
|
BUNDLE_INSTALL_PYAGENTX=false
|
||||||
|
BUNDLE_TO_INSTALL=false
|
||||||
|
)
|
||||||
|
emake install "${makeopts[@]}"
|
||||||
|
|
||||||
# mark log directories to be kept
|
# mark log directories to be kept
|
||||||
keepdir /var/log/pcsd
|
keepdir /var/log/pcsd
|
||||||
@@ -99,5 +106,5 @@ src_install() {
|
|||||||
cp -a "${S}/pcs/settings.py.debian" "${D}/usr/lib/pcs/settings.py" || die
|
cp -a "${S}/pcs/settings.py.debian" "${D}/usr/lib/pcs/settings.py" || die
|
||||||
cp -a "${S}/pcsd/settings.rb.debian" "${D}/usr/lib/pcsd/settings.rb" || die
|
cp -a "${S}/pcsd/settings.rb.debian" "${D}/usr/lib/pcsd/settings.rb" || die
|
||||||
|
|
||||||
python_foreach_impl python_optimize
|
python_optimize
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user