diff options
author | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2018-10-04 19:06:30 +0200 |
---|---|---|
committer | Nicolas Bock <nicolasbock@gentoo.org> | 2018-10-04 11:50:17 -0600 |
commit | 71964eb2da165f13224a5cdfa6dfc7fd8f0d837f (patch) | |
tree | 6a2c065086b975a6824c48af34e05c1b224093d1 /sys-cluster/charliecloud/charliecloud-0.9.3.ebuild | |
parent | dev-python/sshtunnel: Initial commit (diff) | |
download | gentoo-71964eb2da165f13224a5cdfa6dfc7fd8f0d837f.tar.gz gentoo-71964eb2da165f13224a5cdfa6dfc7fd8f0d837f.tar.bz2 gentoo-71964eb2da165f13224a5cdfa6dfc7fd8f0d837f.zip |
sys-cluster/charliecloud: version bump to 0.9.3.
Package-Manager: Portage-2.3.50, Repoman-2.3.10
Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
Signed-off-by: Nicolas Bock <nicolasbock@gentoo.org>
Diffstat (limited to 'sys-cluster/charliecloud/charliecloud-0.9.3.ebuild')
-rw-r--r-- | sys-cluster/charliecloud/charliecloud-0.9.3.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/sys-cluster/charliecloud/charliecloud-0.9.3.ebuild b/sys-cluster/charliecloud/charliecloud-0.9.3.ebuild new file mode 100644 index 000000000000..f7d1882d07be --- /dev/null +++ b/sys-cluster/charliecloud/charliecloud-0.9.3.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# 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" +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 +pv test" + +RDEPEND="" +DEPEND="${RDEPEND} + pv? ( sys-apps/pv ) + doc? ( dev-python/sphinx + dev-python/sphinx_rtd_theme + net-misc/rsync ) + test? ( app-arch/pigz )" + +DOCS=( + README.rst +) + +src_compile() { + emake + use doc && emake -C doc-src +} + +src_install() { + emake install PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" + if use doc; then + mv doc html || die + local HTML_DOCS=(html/.) + fi + if use examples; then + docompress -x "${EPREFIX}/usr/share/doc/${PF}/examples" + DOCS+=(examples) + fi + rm -rf "${ED}/usr/share/doc/charliecloud" || die + einstalldocs +} + +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 +} |