mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
sys-cluster/genders: add 1.32.1
Signed-off-by: Ceres <ceres@ceressees.dev>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST genders-1-28-1.tar.gz 1142795 BLAKE2B 6fce91144c970f6e4f03d7b3c0ae5af98157e5f60a0760990a7063607a8ecfc498404289ec5382220ddd020d0d1bc4581066cfcfe6ef007b484edd105a304ad2 SHA512 26d3e661a00fd635b9c5a0373457f656eca7b676cdcbb85f9eaf9b33c2c5910f52a5dde85df348d22a3fa639f6f65721e5d56c8916834992b0f9c208c37b53df
|
||||
DIST genders-1-32-1.tar.gz 1239423 BLAKE2B 096fc06ebff7490e52c572d2e495a17829eed52a41103ca1c73fc79d594967b7f391cfc660ccb19dbd7202a9da492a983dfb262bd7aad82c9b40052def751fd3 SHA512 58dbeaa3b40cf2687dc8d6e64270aae64eb808b60a3f2e56a7a9a412237b7512685f98e2eba30f6dca95f5b5018837be71fc0d097a569f67a5178ec4507273c5
|
||||
|
||||
120
sys-cluster/genders/genders-1.32.1.ebuild
Normal file
120
sys-cluster/genders/genders-1.32.1.ebuild
Normal file
@@ -0,0 +1,120 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_OPTIONAL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
MY_PV="$(ver_rs 1-2 -)"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
inherit distutils-r1 edo flag-o-matic java-pkg-opt-2 perl-module
|
||||
|
||||
DESCRIPTION="Static cluster configuration database used for cluster configuration management"
|
||||
HOMEPAGE="https://github.com/chaos/genders"
|
||||
SRC_URI="https://github.com/chaos/${PN}/archive/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MY_P}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="cxx java perl python"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
CDEPEND="
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
java? ( virtual/jdk:1.8 )
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
java? ( virtual/jre:1.8 )
|
||||
"
|
||||
BDEPEND="
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
${DISTUTILS_DEPS}
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( README TUTORIAL NEWS )
|
||||
|
||||
# PATCHES=( "${FILESDIR}/${PN}-1.28.1-gcc14.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i "s|perl python||" src/extensions/Makefile.am || die
|
||||
sed -i "s|\$(DESTDIR)\$(docdir)-\$(VERSION)-javadoc|\$(DESTDIR)\$(docdir)/html/javadoc|" \
|
||||
src/extensions/java/Makefile.am || die
|
||||
java-pkg_clean
|
||||
edo ./autogen.sh
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use java && append-cflags "-I${S}/src/libgenders"
|
||||
use java && append-cflags "$(java-pkg_get-jni-cflags)"
|
||||
|
||||
local myconf=(
|
||||
--disable-static
|
||||
--with-non-shortened-hostnames
|
||||
$(use_with cxx cplusplus-extensions)
|
||||
$(use_with java java-extensions)
|
||||
$(use_with perl perl-extensions)
|
||||
$(use_with python python-extensions)
|
||||
)
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use perl; then
|
||||
pushd "${S}/src/extensions/perl" || die
|
||||
perl-module_src_configure
|
||||
perl-module_src_compile
|
||||
popd || die
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
pushd "${S}/src/extensions/python" || die
|
||||
cp genderssetup.py setup.py || die
|
||||
distutils-r1_src_compile
|
||||
popd || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pushd src/testsuite || die
|
||||
default
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use perl ; then
|
||||
pushd "${S}/src/extensions/perl" || die
|
||||
unset DOCS
|
||||
myinst=( DESTDIR="${D}" )
|
||||
perl-module_src_install
|
||||
popd || die
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
pushd "${S}/src/extensions/python" || die
|
||||
unset DOCS
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
}
|
||||
distutils-r1_src_install
|
||||
popd || die
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
find "${ED}" -name '*.a' -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user