commit:     e04258e5cdfb8fb178468807f142ccc12081a30c
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Tue Oct 31 16:54:15 2023 +0000
Commit:     Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
CommitDate: Wed Nov  1 21:46:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e04258e5

sys-cluster/charliecloud: add 0.35

Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
Signed-off-by: Nicolas Bock <nicolasbock <AT> gentoo.org>

 sys-cluster/charliecloud/Manifest                 |  1 +
 sys-cluster/charliecloud/charliecloud-0.35.ebuild | 90 +++++++++++++++++++++++
 2 files changed, 91 insertions(+)

diff --git a/sys-cluster/charliecloud/Manifest 
b/sys-cluster/charliecloud/Manifest
index 2792e255657b..f99ea51964a1 100644
--- a/sys-cluster/charliecloud/Manifest
+++ b/sys-cluster/charliecloud/Manifest
@@ -1,2 +1,3 @@
 DIST charliecloud-0.33.tar.gz 559786 BLAKE2B 
46e8a488af5a27e6b52ae41118cea663cd6c01f8a24566576dbdc7bac99bd94ac50c0559da07a204c2e68ed46edb8c5a5e0bd26986b5bc960901457af632e134
 SHA512 
d6854873bdfca5512c54ba28ff70721442241a00cbec6d67c9693e946c6925d030773382c8ba9fc3ebcdfd52da56580e6c4e3ad7080d51d9844ad6f216f15e70
 DIST charliecloud-0.34.tar.gz 565976 BLAKE2B 
0c86877bd3f17bf91d287f57b5e0844f7cb1777a499ea2bf67fb2cd5762f453239fe20afa6e4ba71acc98609c718028dd1e813a36aee881aa5c2cae79a65effd
 SHA512 
5ede938a8015391758e0eef0b3661c12025cbac3e5153e2e5219fb4d50f8f78ac12076e4c3b658379a1521825372a0ed792a63210371cdbdad1e6631112e371d
+DIST charliecloud-0.35.tar.gz 585756 BLAKE2B 
ade539aa3f94055f84e1b6de73d0bea7739ab764c31399f25adbff82faa62c3ee7e8745aa74bb6e997d6723d002780339f48be8d7218462d3eb95ad119a2b8a8
 SHA512 
40f5e5891f0df8379b637c26c3d86b66a61b48ee1e7985260b47aa4abeffc77c3690af59ae38072b53f6dd348da4574249187ba922fc7c03fb74a513524dc08a

diff --git a/sys-cluster/charliecloud/charliecloud-0.35.ebuild 
b/sys-cluster/charliecloud/charliecloud-0.35.ebuild
new file mode 100644
index 000000000000..197f766fead6
--- /dev/null
+++ b/sys-cluster/charliecloud/charliecloud-0.35.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit autotools optfeature python-single-r1
+
+if [[ ${PV} == "9999" ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/hpc/${PN}.git";
+       S="${WORKDIR}/${P}"
+else
+       SRC_URI="https://github.com/hpc/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86 ~x86-linux"
+fi
+
+DESCRIPTION="Lightweight user-defined software stacks for high-performance 
computing"
+HOMEPAGE="https://hpc.github.io/charliecloud/";
+
+SLOT="0"
+LICENSE="Apache-2.0"
+IUSE="ch-image doc"
+
+# Extensive test suite exists, but downloads container images
+# directly and via Docker and installs packages inside using apt/yum.
+# Additionally, clashes with portage namespacing and sandbox.
+RESTRICT="test"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+       elibc_musl? ( sys-libs/argp-standalone )
+"
+DEPEND="
+       ch-image? (
+               $(python_gen_cond_dep '
+                       dev-python/lark[${PYTHON_USEDEP}]
+                       dev-python/requests[${PYTHON_USEDEP}]
+               ')
+               dev-vcs/git
+               net-misc/rsync
+       )
+       doc? (
+               $(python_gen_cond_dep '
+                       dev-python/sphinx[${PYTHON_USEDEP}]
+                       dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
+               ')
+               net-misc/rsync
+       )"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       local econf_args=(
+               $(use_enable doc html)
+               $(use_enable ch-image)
+               # Libdir is used as a libexec-style destination.
+               --libdir="${EPREFIX}"/usr/lib
+               # Attempts to call python-exec directly otherwise.
+               --with-sphinx-python="${EPYTHON}"
+               # This disables -Werror, see also: 
https://github.com/hpc/charliecloud/pull/808
+               --enable-buggy-build
+               # Do not use bundled version of dev-python/lark.
+               --disable-bundled-lark
+               # Use correct shebang.
+               --with-python="${PYTHON}"
+       )
+       econf "${econf_args[@]}"
+}
+
+src_install() {
+       docompress -x "${EPREFIX}"/usr/share/doc/"${PF}"/examples
+       default
+}
+
+pkg_postinst() {
+       elog "Various builders are supported, as alternative to the internal 
ch-image."
+       optfeature "Building with Buildah" app-containers/buildah
+       optfeature "Building with Docker" app-containers/docker
+       optfeature "Building with Podman" app-containers/podman
+       optfeature "Progress bars during long operations" sys-apps/pv
+       optfeature "Pack and unpack squashfs images" sys-fs/squashfs-tools
+       optfeature "Mount and umount squashfs images" sys-fs/squashfuse
+       optfeature "Build versioning with ch-image" dev-vcs/git
+}

Reply via email to