blob: 436162f740aae8994d0374cb68f0633417269f44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Copyright 1999-2022 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 threads 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}/${PN}-3.0_pre2-shared-libscr_base.patch"
"${FILESDIR}/${PN}-3.0_pre2-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_PTHREADS=$(usex threads)
-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
}
src_test() {
if mountpoint -q /dev/shm ; then
cmake_src_test
else
eerror "make sure to mount /dev/shm or tests will fail"
die
fi
}
|