commit:     ec140108b2ebb3febb9b333cbea294953fd6a8df
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Feb 29 02:54:08 2020 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Feb 29 02:54:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ec140108

sys-cluster/genders: new package

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/genders/Manifest              |   1 +
 sys-cluster/genders/genders-1.27.3.ebuild | 108 ++++++++++++++++++++++++++++++
 sys-cluster/genders/genders-9999.ebuild   | 108 ++++++++++++++++++++++++++++++
 sys-cluster/genders/metadata.xml          |  12 ++++
 4 files changed, 229 insertions(+)

diff --git a/sys-cluster/genders/Manifest b/sys-cluster/genders/Manifest
new file mode 100644
index 0000000..c106669
--- /dev/null
+++ b/sys-cluster/genders/Manifest
@@ -0,0 +1 @@
+DIST genders-1-27-3.tar.gz 1142250 BLAKE2B 
49a9d0c6351c6c403bdcffa2019f14fe0142deae3331a045a54855a280f34625c6c8f78b2c517a34d0bde5d37dc59aedd16672fa7cc10c5bd4b5b7852445abae
 SHA512 
a97bc9ebc8c167cf1aebade41fd3097e34ea27f4009bcc027e50d2dc354beb6e13d6eff1d8b8a334b6993f4396c8eba2ca4cd1e29d3dc6536086c2798a6d6751

diff --git a/sys-cluster/genders/genders-1.27.3.ebuild 
b/sys-cluster/genders/genders-1.27.3.ebuild
new file mode 100644
index 0000000..3d13ce4
--- /dev/null
+++ b/sys-cluster/genders/genders-1.27.3.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7} )
+DISTUTILS_USE_SETUPTOOLS=no
+
+inherit autotools distutils-r1 perl-module java-pkg-opt-2
+
+case "${PV}" in
+9999)
+       SRC_URI=""
+       EGIT_REPO_URI="https://github.com/chaos/${PN}.git";
+       inherit git-r3
+       KEYWORDS=""
+       ;;
+*)
+       MY_PV="$(ver_rs 1-2 -)"
+       MY_P="${PN}-${MY_PV}"
+       SRC_URI="https://github.com/chaos/${PN}/archive/${MY_P}.tar.gz";
+       KEYWORDS="~amd64"
+       S="${WORKDIR}/${PN}-${MY_P}"
+       ;;
+esac
+
+DESCRIPTION="Genders is a static cluster configuration database used for 
cluster configuration management."
+HOMEPAGE="https://github.com/chaos/genders";
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="cxx java perl python"
+
+CDEPEND="
+       perl?   ( dev-lang/perl:= )
+       python? ( ${PYTHON_DEPS} )
+"
+DEPEND="
+       ${CDEPEND}
+       java?   ( virtual/jdk:1.8 )
+
+"
+
+RDEPEND="
+       ${DEPEND}
+       java?   ( virtual/jre:1.8 )
+"
+REQUIRED_USE="
+               python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+src_prepare() {
+       sed -i "s|perl python||" src/extensions/Makefile.am
+       sed -i 
"s|\$(DESTDIR)\$(docdir)-\$(VERSION)-javadoc|\$(DESTDIR)\$(docdir)/html/javadoc|"
 src/extensions/java/Makefile.am
+       eapply_user
+       ./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
+               cd "${S}/src/extensions/perl"
+               perl-module_src_configure
+               perl-module_src_compile
+       fi
+
+       if use python; then
+               cd "${S}/src/extensions/python"
+               cp genderssetup.py setup.py
+               distutils-r1_src_compile
+       fi
+}
+
+src_install() {
+       default
+       dodoc README TUTORIAL NEWS
+
+       if use perl ; then
+               cd "${S}/src/extensions/perl"
+               myinst=( DESTDIR="${D}" )
+               perl-module_src_install
+       fi
+
+       if use python; then
+               cd "${S}/src/extensions/python"
+               python_install() {
+                       distutils-r1_python_install
+               }
+               distutils-r1_src_install
+       fi
+
+       find "${ED}" -name '*.la' -delete || die
+}

diff --git a/sys-cluster/genders/genders-9999.ebuild 
b/sys-cluster/genders/genders-9999.ebuild
new file mode 100644
index 0000000..3d13ce4
--- /dev/null
+++ b/sys-cluster/genders/genders-9999.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7} )
+DISTUTILS_USE_SETUPTOOLS=no
+
+inherit autotools distutils-r1 perl-module java-pkg-opt-2
+
+case "${PV}" in
+9999)
+       SRC_URI=""
+       EGIT_REPO_URI="https://github.com/chaos/${PN}.git";
+       inherit git-r3
+       KEYWORDS=""
+       ;;
+*)
+       MY_PV="$(ver_rs 1-2 -)"
+       MY_P="${PN}-${MY_PV}"
+       SRC_URI="https://github.com/chaos/${PN}/archive/${MY_P}.tar.gz";
+       KEYWORDS="~amd64"
+       S="${WORKDIR}/${PN}-${MY_P}"
+       ;;
+esac
+
+DESCRIPTION="Genders is a static cluster configuration database used for 
cluster configuration management."
+HOMEPAGE="https://github.com/chaos/genders";
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="cxx java perl python"
+
+CDEPEND="
+       perl?   ( dev-lang/perl:= )
+       python? ( ${PYTHON_DEPS} )
+"
+DEPEND="
+       ${CDEPEND}
+       java?   ( virtual/jdk:1.8 )
+
+"
+
+RDEPEND="
+       ${DEPEND}
+       java?   ( virtual/jre:1.8 )
+"
+REQUIRED_USE="
+               python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+src_prepare() {
+       sed -i "s|perl python||" src/extensions/Makefile.am
+       sed -i 
"s|\$(DESTDIR)\$(docdir)-\$(VERSION)-javadoc|\$(DESTDIR)\$(docdir)/html/javadoc|"
 src/extensions/java/Makefile.am
+       eapply_user
+       ./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
+               cd "${S}/src/extensions/perl"
+               perl-module_src_configure
+               perl-module_src_compile
+       fi
+
+       if use python; then
+               cd "${S}/src/extensions/python"
+               cp genderssetup.py setup.py
+               distutils-r1_src_compile
+       fi
+}
+
+src_install() {
+       default
+       dodoc README TUTORIAL NEWS
+
+       if use perl ; then
+               cd "${S}/src/extensions/perl"
+               myinst=( DESTDIR="${D}" )
+               perl-module_src_install
+       fi
+
+       if use python; then
+               cd "${S}/src/extensions/python"
+               python_install() {
+                       distutils-r1_python_install
+               }
+               distutils-r1_src_install
+       fi
+
+       find "${ED}" -name '*.la' -delete || die
+}

diff --git a/sys-cluster/genders/metadata.xml b/sys-cluster/genders/metadata.xml
new file mode 100644
index 0000000..1ac907d
--- /dev/null
+++ b/sys-cluster/genders/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>lssndrbarbi...@gmail.com</email>
+    <name>Alessandro Barbieri</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">chaos/genders</remote-id>
+  </upstream>
+  <longdescription>Genders is a static cluster configuration database used for 
cluster configuration management. It is used by a variety of tools and scripts 
for management of large clusters. The genders database is typically replicated 
on every node of the cluster. It describes the layout and configuration of the 
cluster so that tools and scripts can sense the variations of cluster nodes. By 
abstracting this information into a plain text file, it becomes possible to 
change the configuration of a cluster by modifying only one 
file.</longdescription>
+</pkgmetadata>

Reply via email to