diff options
author | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2024-06-14 00:52:34 +0200 |
---|---|---|
committer | Nicolas Bock <nicolasbock@gentoo.org> | 2024-06-15 08:08:01 -0600 |
commit | e20ac11bccf3e57ee15df7591158f45493f07bdf (patch) | |
tree | 0e6f5cbc7e70d5f0f58696de199c0b80fe5f33f7 /sys-cluster | |
parent | sys-cluster/charliecloud: add missing BDEPEND on pkgconfig (diff) | |
download | gentoo-e20ac11bccf3e57ee15df7591158f45493f07bdf.tar.gz gentoo-e20ac11bccf3e57ee15df7591158f45493f07bdf.tar.bz2 gentoo-e20ac11bccf3e57ee15df7591158f45493f07bdf.zip |
sys-cluster/charliecloud: add 0.38
Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
Signed-off-by: Nicolas Bock <nicolasbock@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/charliecloud/Manifest | 1 | ||||
-rw-r--r-- | sys-cluster/charliecloud/charliecloud-0.38.ebuild | 95 |
2 files changed, 96 insertions, 0 deletions
diff --git a/sys-cluster/charliecloud/Manifest b/sys-cluster/charliecloud/Manifest index 8bdd1ce5d5df..6cb9406754cb 100644 --- a/sys-cluster/charliecloud/Manifest +++ b/sys-cluster/charliecloud/Manifest @@ -1,2 +1,3 @@ DIST charliecloud-0.36.tar.gz 604778 BLAKE2B 671c7a95be7a0d3e772e3a02185f15c5e00df6d84f0c6a068b6ac2268eaf471c3dc8a9a445036110b564e44b906e4c1ba090474e0f75653d6e24a6270f2c332b SHA512 411fc4eded6d557460ef4688ee123c54939fdeea6799c7176f136d494986a643c4ef3cadc8079e995374a7988c73d32d160d6a3094e8184b491cb1985a18facd DIST charliecloud-0.37.tar.gz 612391 BLAKE2B 595052118fce06d542c5fe315663ff2bb6de1743646ac396f006760fb761b1d794b57065851cdf3c54acce54817c6242d40386d1aeae0999f4f927da3a97069b SHA512 5e7402435520b1558c855bce31d9debd1ce338718070a016b744e2a87ee7f7811b3de46cb7f8ea82187b7c7df0288bf87376fe8f543340a9474737d62f68826c +DIST charliecloud-0.38.tar.gz 616115 BLAKE2B 62126c9f57b1a0f63b530c29781cc85db9e53da82294eaafc8847cfebad8dd3e62b314de3e1ff0339304e176065793e8ec23509ec03aea04f0f36d2624f5ae0d SHA512 aa92ed71e93656318954db974e67312f0a912391ba166f1a38e8871511811a4a1810c6769d79afbb66cab6ffbe89f46a2238fbe7cd5a961fd9ebabe152c3ac18 diff --git a/sys-cluster/charliecloud/charliecloud-0.38.ebuild b/sys-cluster/charliecloud/charliecloud-0.38.ebuild new file mode 100644 index 000000000000..eac024093be7 --- /dev/null +++ b/sys-cluster/charliecloud/charliecloud-0.38.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2024 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/" +LICENSE="Apache-2.0" + +SLOT="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}" + +BDEPEND=" + virtual/pkgconfig +" +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}" + # Disable configure checks vor OverlayFS causing sandbox violations. + --disable-impolite-checks + ) + 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 +} |