Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/singularity/
Date: Mon, 24 Aug 2020 17:19:24
Message-Id: 1598288866.422a92dcaaf3c892865f744ce9c1de22e797a1c6.marecki@gentoo
1 commit: 422a92dcaaf3c892865f744ce9c1de22e797a1c6
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 24 15:54:16 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 24 17:07:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=422a92dc
7
8 sys-cluster/singularity: bump to 3.6.1
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 sys-cluster/singularity/Manifest | 1 +
13 sys-cluster/singularity/singularity-3.6.1.ebuild | 69 ++++++++++++++++++++++++
14 2 files changed, 70 insertions(+)
15
16 diff --git a/sys-cluster/singularity/Manifest b/sys-cluster/singularity/Manifest
17 index 92b34c1c6a6..6c8131d5a0e 100644
18 --- a/sys-cluster/singularity/Manifest
19 +++ b/sys-cluster/singularity/Manifest
20 @@ -1 +1,2 @@
21 DIST singularity-3.6.0.tar.gz 6169388 BLAKE2B ea07da3d586a96625a1016f9b4aa6b99072c89393dcb7c80aab624807e51fc107eee2629020bf3e1c19d6103544b63aad960d2ac27804fa6e03323a806fdf270 SHA512 695f3b4c1bd8cc4049fc3e8e296b369f5aadcd6b4717521b9aca68d997fd8a8c0bf349a2851c31b8a22f37fa010b4c7b93562fd6ac24cdc9699230a182f36d29
22 +DIST singularity-3.6.1.tar.gz 6170806 BLAKE2B fa92bf4df3c2a4ab4345ab0022862f19dde240d7275a79c8433164f02bc495f33d44e4c63b39b9bd3de60361e49fec3f2d258a3bafaadeba34b5d4a7cd3f514e SHA512 3037a14fec086e17b42ee8306624af39fd87c80821c73e0e1ab3d8a717dbdad86237f042d97c6a7870fc6beeced67d6cd52c8e445c41c39cdab7ccce1ce6adb5
23
24 diff --git a/sys-cluster/singularity/singularity-3.6.1.ebuild b/sys-cluster/singularity/singularity-3.6.1.ebuild
25 new file mode 100644
26 index 00000000000..202258ead7a
27 --- /dev/null
28 +++ b/sys-cluster/singularity/singularity-3.6.1.ebuild
29 @@ -0,0 +1,69 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit linux-info
36 +
37 +DESCRIPTION="Application containers for Linux"
38 +HOMEPAGE="https://sylabs.io"
39 +SRC_URI="https://github.com/hpcng/${PN}/releases/download/v${PV}/${P}.tar.gz"
40 +
41 +SLOT="0"
42 +LICENSE="BSD"
43 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
44 +IUSE="examples +network +suid"
45 +
46 +# Do not complain about CFLAGS etc since go projects do not use them.
47 +QA_FLAGS_IGNORED='.*'
48 +
49 +COMMON="sys-libs/libseccomp"
50 +BDEPEND="virtual/pkgconfig"
51 +DEPEND="${COMMON}
52 + >=dev-lang/go-1.13.0
53 + app-crypt/gpgme
54 + dev-libs/openssl
55 + sys-apps/util-linux
56 + sys-fs/cryptsetup"
57 +RDEPEND="${COMMON}
58 + sys-fs/squashfs-tools"
59 +
60 +CONFIG_CHECK="~SQUASHFS"
61 +
62 +S=${WORKDIR}/${PN}
63 +
64 +src_configure() {
65 + local myconfargs=(
66 + --prefix=/usr \
67 + --sysconfdir=/etc \
68 + --runstatedir=/run \
69 + --localstatedir=/var \
70 + $(usex network "" "--without-network") \
71 + $(usex suid "" "--without-suid")
72 + )
73 + ./mconfig -v ${myconfargs[@]} || die "Error invoking mconfig"
74 +}
75 +
76 +src_compile() {
77 + emake -C builddir
78 +}
79 +
80 +src_install() {
81 + emake DESTDIR="${ED}" -C builddir install
82 + keepdir /var/singularity/mnt/session
83 +
84 + # As of version 3.5.3 this seems to be very much broken, affecting
85 + # commands which have got nothing to do with singularity (example:
86 + # completion on 'udisks mount -b /dev/' rejects all files from that
87 + # directory other than 'autofs'). Moreover, this should go into
88 + # $(get_bashcompdir) (from bash-completion-r1.eclass) rather than /etc.
89 + # Hopefully temporary, which is why we delete this at install time
90 + # instead of patching build scripts not to generate bash-completion
91 + # data in the first place.
92 + rm -rf "${ED}"/etc/bash_completion.d || die
93 +
94 + dodoc README.md CONTRIBUTORS.md CONTRIBUTING.md
95 + if use examples; then
96 + dodoc -r examples
97 + fi
98 +}