diff options
Diffstat (limited to 'sys-cluster/scr/scr-3.0_pre2.ebuild')
-rw-r--r-- | sys-cluster/scr/scr-3.0_pre2.ebuild | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/sys-cluster/scr/scr-3.0_pre2.ebuild b/sys-cluster/scr/scr-3.0_pre2.ebuild new file mode 100644 index 000000000..4812b3799 --- /dev/null +++ b/sys-cluster/scr/scr-3.0_pre2.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOCS_BUILDER="sphinx" +DOCS_DIR="${S}/doc/rst" +FORTRAN_NEEDED="fortran" +MYPV="${PV/_pre/rc}" +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit cmake python-single-r1 fortran-2 docs + +DESCRIPTION="Scalable Checkpoint / Restart Library" +HOMEPAGE=" + https://computing.llnl.gov/projects/scalable-checkpoint-restart-for-mpi + https://github.com/LLNL/scr +" +SRC_URI="https://github.com/LLNL/scr/archive/refs/tags/v${MYPV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MYPV}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples fcntl +flock +fortran mysql slurm syslog test txt-log +yogrt" + +RDEPEND=" + ${PYTHON_DEPS} + + app-shells/pdsh + >=sys-cluster/AXL-0.5.0 + sys-cluster/dtcmp + sys-cluster/er + sys-cluster/KVTree + sys-cluster/rankstr + sys-cluster/redset + sys-cluster/spath + sys-libs/zlib + virtual/mpi + + mysql? ( dev-db/mysql-connector-c ) + slurm? ( sys-cluster/slurm ) + yogrt? ( sys-cluster/libyogrt[slurm?] ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-shared-libscr_base.patch" + "${FILESDIR}/${P}-no-static.patch" +) +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + + ?? ( fcntl flock ) +" +RESTRICT="!test? ( test )" + +pkg_setup() { + fortran-2_pkg_setup +} + +src_configure() { + local lock="NONE" + use fcntl && lock="FCNTL" + use flock && lock="FLOCK" + + local log="0" + use syslog && log="1" + use txt-log && log="1" + + local resman="NONE" + use slurm && resman="SLURM" + + local mycmakeargs=( + -DBUILD_PDSH=OFF + -DBUILD_SHARED_LIBS=ON + -DENABLE_CRAY_DW=OFF + -DENABLE_IBM_BBAPI=OFF + -DENABLE_PDSH=ON + -DSCR_LINK_STATIC=OFF + + -DSCR_FILE_LOCK="${lock}" + -DSCR_LOG_ENABLE="${log}" + -DSCR_RESOURCE_MANAGER="${resman}" + + -DENABLE_EXAMPLES=$(usex examples) + -DENABLE_FORTRAN=$(usex fortran) + -DENABLE_TESTS=$(usex test) + -DENABLE_YOGRT=$(usex yogrt) + -DSCR_LOG_SYSLOG_ENABLE=$(usex syslog 0 1) + -DSCR_LOG_TXT_ENABLE=$(usex txt-log 0 1) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + docs_compile +} + +src_install() { + cmake_src_install +# find "${ED}" -name '*.a' -delete || die +} |