1 |
commit: df10c6849372769adac61b48c0a0bc1d29b23e29 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 9 16:33:57 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 9 16:35:08 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df10c684 |
7 |
|
8 |
sys-cluster/singularity: add 3.8.6 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
sys-cluster/singularity/Manifest | 1 + |
13 |
sys-cluster/singularity/singularity-3.8.6.ebuild | 71 ++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/singularity/Manifest b/sys-cluster/singularity/Manifest |
17 |
index 4b0ea9e7a0b2..c72ec8d05d74 100644 |
18 |
--- a/sys-cluster/singularity/Manifest |
19 |
+++ b/sys-cluster/singularity/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST singularity-3.8.5.tar.gz 7898598 BLAKE2B 3cf76734d6208340d8562f3d3d67f95c507bad3fad6797d82aed39aa39288385ca02d62854f3dddcfc1a1e3056e7485f27e6081c152b853c682ca8e3a587cf3a SHA512 857761f47528a841a3cf11b49583ab7e8a2d137703e1826ff194011abba3334ed06859219e0c457f352304e7b18f1c493a8b337cc5df67981eb428c567d0ac5f |
22 |
+DIST singularity-3.8.6.tar.gz 8183514 BLAKE2B be82b610c2a6647b4d74894e4095b1b58499ea00d9a7b491cdc1aa1b097e5d27bc8f8c43f9898ce1ea7b1866ce5734a6b487a17ac8081dfb89441c92bc2de343 SHA512 dd20a083505503d274d075574c4efaa4e59829d751d4836a7ba9095b9e88c3ce83e2203a194ede42e2c3dba22ed16546f97d980e7ba05021b94ec3dfa6ee309f |
23 |
|
24 |
diff --git a/sys-cluster/singularity/singularity-3.8.6.ebuild b/sys-cluster/singularity/singularity-3.8.6.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..8e1480027bc4 |
27 |
--- /dev/null |
28 |
+++ b/sys-cluster/singularity/singularity-3.8.6.ebuild |
29 |
@@ -0,0 +1,71 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit linux-info toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="Application containers for Linux" |
38 |
+HOMEPAGE="https://sylabs.io" |
39 |
+SRC_URI="https://github.com/apptainer/${PN}/releases/download/v${PV}/${P}.tar.gz" |
40 |
+ |
41 |
+SLOT="0" |
42 |
+LICENSE="BSD" |
43 |
+KEYWORDS="~amd64 ~riscv ~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.16.12 |
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 |
+src_configure() { |
63 |
+ local myconfargs=( |
64 |
+ -c "$(tc-getBUILD_CC)" \ |
65 |
+ -x "$(tc-getBUILD_CXX)" \ |
66 |
+ -C "$(tc-getCC)" \ |
67 |
+ -X "$(tc-getCXX)" \ |
68 |
+ --prefix="${EPREFIX}"/usr \ |
69 |
+ --sysconfdir="${EPREFIX}"/etc \ |
70 |
+ --runstatedir="${EPREFIX}"/run \ |
71 |
+ --localstatedir="${EPREFIX}"/var \ |
72 |
+ $(usex network "" "--without-network") \ |
73 |
+ $(usex suid "" "--without-suid") |
74 |
+ ) |
75 |
+ ./mconfig -v ${myconfargs[@]} || die "Error invoking mconfig" |
76 |
+} |
77 |
+ |
78 |
+src_compile() { |
79 |
+ emake -C builddir |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ emake DESTDIR="${D}" -C builddir install |
84 |
+ keepdir /var/singularity/mnt/session |
85 |
+ |
86 |
+ # As of version 3.5.3 this seems to be very much broken, affecting |
87 |
+ # commands which have got nothing to do with singularity (example: |
88 |
+ # completion on 'udisks mount -b /dev/' rejects all files from that |
89 |
+ # directory other than 'autofs'). Moreover, this should go into |
90 |
+ # $(get_bashcompdir) (from bash-completion-r1.eclass) rather than /etc. |
91 |
+ # Hopefully temporary, which is why we delete this at install time |
92 |
+ # instead of patching build scripts not to generate bash-completion |
93 |
+ # data in the first place. |
94 |
+ rm -rf "${ED}"/etc/bash_completion.d || die |
95 |
+ |
96 |
+ dodoc README.md CONTRIBUTORS.md CONTRIBUTING.md |
97 |
+ if use examples; then |
98 |
+ dodoc -r examples |
99 |
+ fi |
100 |
+} |