summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2017-11-29 23:37:08 +0100
committerPatrice Clement <monsieurp@gentoo.org>2017-12-01 22:21:33 +0100
commit111194a03f6bee8bb31b64746cf7ea267c928d01 (patch)
treec9665a322e3d4f8c5d7cc3af521a073d4dfae80b /sys-cluster
parent17.0/package.use.mask: Mask opensubdiv USE on blender since it needs cuda (diff)
downloadgentoo-111194a03f6bee8bb31b64746cf7ea267c928d01.tar.gz
gentoo-111194a03f6bee8bb31b64746cf7ea267c928d01.tar.bz2
gentoo-111194a03f6bee8bb31b64746cf7ea267c928d01.zip
sys-cluster/charliecloud: new package.
Charliecloud provides user-defined software stacks (UDSS) for high-performance computing (HPC) centers. Package-Manager: Portage-2.3.16, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/6349
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/charliecloud/Manifest1
-rw-r--r--sys-cluster/charliecloud/charliecloud-0.2.3_pre20171121.ebuild78
-rw-r--r--sys-cluster/charliecloud/charliecloud-9999.ebuild75
-rw-r--r--sys-cluster/charliecloud/metadata.xml16
4 files changed, 170 insertions, 0 deletions
diff --git a/sys-cluster/charliecloud/Manifest b/sys-cluster/charliecloud/Manifest
new file mode 100644
index 000000000000..efddd318d97d
--- /dev/null
+++ b/sys-cluster/charliecloud/Manifest
@@ -0,0 +1 @@
+DIST charliecloud-0.2.3_pre20171121.tar.gz 82636 BLAKE2B 6eb8465da39dc628d8cf65b475263b6ff12757fec00ede16025c126bc861ab07969fb8a815fbdfa48424911905d59e1290f6281a8d804d069cf940b7a0e66b47 SHA512 1828651d18cd8246e0d462fa966052be21a18f0a7a6bdb76040740dd97b271723c317ed764296cf2d0e554cec527612a02e733ec7bf3e6f4ac73139fed968c83
diff --git a/sys-cluster/charliecloud/charliecloud-0.2.3_pre20171121.ebuild b/sys-cluster/charliecloud/charliecloud-0.2.3_pre20171121.ebuild
new file mode 100644
index 000000000000..6a0def5177e2
--- /dev/null
+++ b/sys-cluster/charliecloud/charliecloud-0.2.3_pre20171121.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# User namespaces don't play well with the sandbox.
+RESTRICT="test"
+
+# Commit date: 21 Nov. 2017
+COMMIT="3eb9e3edfbcd61257bb52a361cf01782fcf15b5d"
+
+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/${COMMIT}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+ S="${WORKDIR}/${PN}-${COMMIT}"
+fi
+
+DESCRIPTION="Lightweight user-defined software stacks for high-performance computing"
+HOMEPAGE="https://hpc.github.io/charliecloud/"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+IUSE="doc examples suid test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx
+ dev-python/sphinx_rtd_theme
+ net-misc/rsync )
+ test? ( app-arch/pigz )"
+
+src_compile() {
+ if use suid; then
+ export SETUID=1
+ fi
+ emake
+ if use doc && ! use suid; then
+ emake -C doc-src
+ fi
+}
+
+src_install() {
+ if use suid; then
+ export SETUID=1
+ fi
+ emake install PREFIX="${EPREFIX}/usr" DESTDIR="${ED}"
+ dodoc README.rst COPYRIGHT
+ if use doc && ! use suid; then
+ if ! use suid; then
+ mv doc html || die
+ dodoc -r html
+ else
+ ewarn "Building documentation with SUID not supported yet!"
+ fi
+ fi
+ if use examples; then
+ docompress -x "${EPREFIX}/usr/share/doc/${PF}/examples"
+ dodoc -r examples
+ fi
+ rm -rf "${ED}/usr/share/doc/charliecloud" || die
+}
+
+src_test() {
+ cd "${S}/test" || die
+ export CH_TEST_TARDIR="${T}/tarballs"
+ export CH_TEST_IMGDIR="${T}/images"
+
+ # Do not run tests requiring root.
+ export CH_TEST_PERMDIRS="skip"
+ export CH_TEST_SKIP_DOCKER=yes
+ sed -i 's/CHTEST_HAVE_SUDO=yes/CHTEST_HAVE_SUDO=no/' "${S}/test/common.bash" || die
+
+ emake test-quick
+}
diff --git a/sys-cluster/charliecloud/charliecloud-9999.ebuild b/sys-cluster/charliecloud/charliecloud-9999.ebuild
new file mode 100644
index 000000000000..31d3d0f93db0
--- /dev/null
+++ b/sys-cluster/charliecloud/charliecloud-9999.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# User namespaces don't play well with the sandbox.
+RESTRICT="test"
+
+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 ~amd64-linux ~x86-linux"
+ S="${WORKDIR}/${P}"
+fi
+
+DESCRIPTION="Lightweight user-defined software stacks for high-performance computing"
+HOMEPAGE="https://hpc.github.io/charliecloud/"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+IUSE="doc examples suid test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx
+ dev-python/sphinx_rtd_theme
+ net-misc/rsync )
+ test? ( app-arch/pigz )"
+
+src_compile() {
+ if use suid; then
+ export SETUID=1
+ fi
+ emake
+ if use doc && ! use suid; then
+ emake -C doc-src
+ fi
+}
+
+src_install() {
+ if use suid; then
+ export SETUID=1
+ fi
+ emake install PREFIX="${EPREFIX}/usr" DESTDIR="${ED}"
+ dodoc README.rst COPYRIGHT
+ if use doc && ! use suid; then
+ if ! use suid; then
+ mv doc html || die
+ dodoc -r html
+ else
+ ewarn "Building documentation with SUID not supported yet!"
+ fi
+ fi
+ if use examples; then
+ docompress -x "${EPREFIX}/usr/share/doc/${PF}/examples"
+ dodoc -r examples
+ fi
+ rm -rf "${ED}/usr/share/doc/charliecloud" || die
+}
+
+src_test() {
+ cd "${S}/test" || die
+ export CH_TEST_TARDIR="${T}/tarballs"
+ export CH_TEST_IMGDIR="${T}/images"
+
+ # Do not run tests requiring root.
+ export CH_TEST_PERMDIRS="skip"
+ export CH_TEST_SKIP_DOCKER=yes
+ sed -i 's/CHTEST_HAVE_SUDO=yes/CHTEST_HAVE_SUDO=no/' "${S}/test/common.bash" || die
+
+ emake test-quick
+}
diff --git a/sys-cluster/charliecloud/metadata.xml b/sys-cluster/charliecloud/metadata.xml
new file mode 100644
index 000000000000..717eef3ca7a4
--- /dev/null
+++ b/sys-cluster/charliecloud/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>o.freyermuth@googlemail.com</email>
+ <name>Oliver Freyermuth</name>
+ <description>Proxy-maintainer, assign bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">hpc/charliecloud</remote-id>
+ </upstream>
+</pkgmetadata>