diff options
author | 2020-10-17 02:06:25 +0000 | |
---|---|---|
committer | 2020-10-17 02:06:25 +0000 | |
commit | 8f8d27afd4bab6150e07605abbdd30d6afc16d93 (patch) | |
tree | 5fc2add7998619737826cd39929ded670ba054f7 /sys-cluster | |
parent | dev-python/bokeh: version bump to 2.2.2 (diff) | |
download | sci-8f8d27afd4bab6150e07605abbdd30d6afc16d93.tar.gz sci-8f8d27afd4bab6150e07605abbdd30d6afc16d93.tar.bz2 sci-8f8d27afd4bab6150e07605abbdd30d6afc16d93.zip |
sys-cluster/spack: flexible package manager for env modules
goes well with Lmod and modules to create fast
swapping multi version installs of various packages
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/spack/files/99spack | 1 | ||||
-rw-r--r-- | sys-cluster/spack/metadata.xml | 12 | ||||
-rw-r--r-- | sys-cluster/spack/spack-0.15.4.ebuild | 54 |
3 files changed, 67 insertions, 0 deletions
diff --git a/sys-cluster/spack/files/99spack b/sys-cluster/spack/files/99spack new file mode 100644 index 000000000..e3b3acdaa --- /dev/null +++ b/sys-cluster/spack/files/99spack @@ -0,0 +1 @@ +SPACK_ROOT="/opt/spack" diff --git a/sys-cluster/spack/metadata.xml b/sys-cluster/spack/metadata.xml new file mode 100644 index 000000000..2f2c0b51c --- /dev/null +++ b/sys-cluster/spack/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gentoo@aisha.cc</email> + <name>Aisha Tammy</name> + </maintainer> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> +</pkgmetadata> diff --git a/sys-cluster/spack/spack-0.15.4.ebuild b/sys-cluster/spack/spack-0.15.4.ebuild new file mode 100644 index 000000000..9346d9ec1 --- /dev/null +++ b/sys-cluster/spack/spack-0.15.4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) +inherit python-single-r1 git-r3 + +DESCRIPTION="flexible package manager supporting mutiple package version" +HOMEPAGE="https://spack.io/" +# we need the .git folder during runtime for command +# $ spack pkg +EGIT_REPO_URI="https://github.com/spack/spack" +EGIT_COMMIT="v${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-vcs/git +" + +src_prepare() { + sed -e "s:^#!/bin/sh:#!/usr/bin/env ${EPYTHON}:" \ + -i bin/spack || die + + default +} + +src_test() { + local -x SPACK_ROOT="${S}" + local -x PATH="${S}/bin:${PATH}" + ${EPYTHON} bin/spack test -k "not ci and \ + not compiler_bootstrap and \ + not test_prs_update_old_api and \ + not test_first_accessible_path and \ + not test_get_stage_root_in_spack" || \ + die "tests failed for ${EPYTHON}" +} + +src_install() { + dodir /opt/spack + cp -r "${S}"/. "${ED}"/opt/spack || die + + doenvd "${FILESDIR}"/99spack +} + +pkg_postinst() { + elog "Spack has been installed to /opt/spack ." + elog "To load spack into your environment, run" + elog "\t . /opt/spack/share/spack/setup-env.sh" +} |