Gentoo Archives: gentoo-commits

From: Nicolas Bock <nicolasbock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/charliecloud/
Date: Fri, 05 Aug 2022 05:23:50
Message-Id: 1659676994.ee9ddd25afe41a2644bee602bf8b966c19da64e2.nicolasbock@gentoo
1 commit: ee9ddd25afe41a2644bee602bf8b966c19da64e2
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Fri Aug 5 01:19:32 2022 +0000
4 Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 05:23:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee9ddd25
7
8 sys-cluster/charliecloud: add 0.29
9
10 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
11 Signed-off-by: Nicolas Bock <nicolasbock <AT> gentoo.org>
12
13 sys-cluster/charliecloud/Manifest | 1 +
14 sys-cluster/charliecloud/charliecloud-0.29.ebuild | 83 +++++++++++++++++++++++
15 2 files changed, 84 insertions(+)
16
17 diff --git a/sys-cluster/charliecloud/Manifest b/sys-cluster/charliecloud/Manifest
18 index c0fba9575b38..a15b2b048831 100644
19 --- a/sys-cluster/charliecloud/Manifest
20 +++ b/sys-cluster/charliecloud/Manifest
21 @@ -1,2 +1,3 @@
22 DIST charliecloud-0.27.tar.gz 471754 BLAKE2B b683847a79dd55a4bb79458e94e03988acdff0a1e6a24e7f67d56758bdbc3754cc3609e97bfc778f5cb6ce35d6f4df773235314c2ed642ac796b28b824ecadf6 SHA512 cfa5b1ac923008b9a38fc0228562b31551ea941bf222c9b9e12d8dce4c83ca896893e3509773a5ebc02d6b374d08dc049797226cf1432099aae7174c2bc5ee2b
23 DIST charliecloud-0.28.tar.gz 504793 BLAKE2B 97b9249be59700506b7b7032da7111b0099b88bea6cb73e348238ef2aacfb55ee9d868f81036728b1e67a41911ca3e754d009ba74375847747f3303a7dc2304c SHA512 62a00f16c118e3dd8d9f011290666961216d24d07825590c9a3ec9dd527948be75c66df8d5ef50f4796567aa358ca4e466148ca78bad9d0715bb4caa26004eb6
24 +DIST charliecloud-0.29.tar.gz 506974 BLAKE2B 2f5ce5f6addf1abbb3274f8e8a9d33cc7ec73ba275efc4d750806b5fc2358ad9491da453ae4dcad712567b5719a4b179644e630b64fe9c29cfc2525a06e533a0 SHA512 a8f334cf1ac9fa1117b69f1282b74a3bce313b8fd892373dd7cfa642f664fcd623a8e8d2b81aa9757e43f972cd31fca9185e00d2280b40def2c63c725cea7256
25
26 diff --git a/sys-cluster/charliecloud/charliecloud-0.29.ebuild b/sys-cluster/charliecloud/charliecloud-0.29.ebuild
27 new file mode 100644
28 index 000000000000..f120aa900673
29 --- /dev/null
30 +++ b/sys-cluster/charliecloud/charliecloud-0.29.ebuild
31 @@ -0,0 +1,83 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..11} )
38 +
39 +inherit autotools optfeature python-single-r1
40 +
41 +if [[ ${PV} == "9999" ]] ; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/hpc/${PN}.git"
44 + S="${WORKDIR}/${P}"
45 +else
46 + SRC_URI="https://github.com/hpc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64 ~x86 ~x86-linux"
48 +fi
49 +
50 +DESCRIPTION="Lightweight user-defined software stacks for high-performance computing"
51 +HOMEPAGE="https://hpc.github.io/charliecloud/"
52 +
53 +SLOT="0"
54 +LICENSE="Apache-2.0"
55 +IUSE="ch-image doc"
56 +
57 +# Extensive test suite exists, but downloads container images
58 +# directly and via Docker and installs packages inside using apt/yum.
59 +# Additionally, clashes with portage namespacing and sandbox.
60 +RESTRICT="test"
61 +
62 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
63 +
64 +RDEPEND="${PYTHON_DEPS}
65 + elibc_musl? ( sys-libs/argp-standalone )
66 +"
67 +DEPEND="
68 + ch-image? (
69 + $(python_gen_cond_dep '
70 + dev-python/lark[${PYTHON_USEDEP}]
71 + dev-python/requests[${PYTHON_USEDEP}]
72 + ')
73 + )
74 + doc? (
75 + $(python_gen_cond_dep '
76 + dev-python/sphinx[${PYTHON_USEDEP}]
77 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
78 + ')
79 + net-misc/rsync
80 + )"
81 +
82 +src_prepare() {
83 + default
84 + eautoreconf
85 +}
86 +
87 +src_configure() {
88 + local econf_args=()
89 + econf_args+=(
90 + $(use_enable doc html)
91 + $(use_enable ch-image)
92 + # Libdir is used as a libexec-style destination.
93 + --libdir="${EPREFIX}"/usr/lib
94 + # Attempts to call python-exec directly otherwise.
95 + --with-sphinx-python="${EPYTHON}"
96 + # This disables -Werror, see also: https://github.com/hpc/charliecloud/pull/808
97 + --enable-buggy-build
98 + # Do not use bundled version of dev-python/lark.
99 + --disable-bundled-lark
100 + # Use correct shebang.
101 + --with-python="${PYTHON}"
102 + )
103 + econf "${econf_args[@]}"
104 +}
105 +
106 +pkg_postinst() {
107 + elog "Various builders are supported, as alternative to the internal ch-image."
108 + optfeature "Building with Buildah" app-containers/buildah
109 + optfeature "Building with Docker" app-containers/docker
110 + optfeature "Progress bars during long operations" sys-apps/pv
111 + optfeature "Pack and unpack squashfs images" sys-fs/squashfs-tools
112 + optfeature "Mount and umount squashfs images" sys-fs/squashfuse
113 + optfeature "Build versioning with ch-image" dev-vcs/git
114 +}