1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
8 inherit python-single-r1
10 if [[ ${PV} == "9999" ]] ; then
12 EGIT_REPO_URI="https://github.com/hpc/${PN}.git"
15 SRC_URI="https://github.com/hpc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19 DESCRIPTION="Lightweight user-defined software stacks for high-performance computing"
20 HOMEPAGE="https://hpc.github.io/charliecloud/"
24 IUSE="doc examples +pv"
26 # Extensive test suite exists, but downloads container images
27 # directly and via Docker and installs packages inside using apt/yum.
28 # Additionally, clashes with portage namespacing and sandbox.
31 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
33 RDEPEND="${PYTHON_DEPS}
37 dev-python/sphinx[${PYTHON_USEDEP}]
38 dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
43 "${FILESDIR}"/"${PN}-${PV}"-fix-flags.patch
44 "${FILESDIR}"/"${PN}-${PV}"-fix-hardcoded-gcc.patch
49 use doc && emake -C doc-src
53 emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}" LIBEXEC_DIR="libexec/${PF}"
55 local HTML_DOCS=(doc/.)
58 docompress -x "/usr/share/doc/${PF}/examples"
61 rm -rf "${ED}/usr/share/doc/charliecloud" || die