mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
sys-cluster/scr: fix RPATH
Closes: https://bugs.gentoo.org/836250 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
123
sys-cluster/scr/scr-3.0-r1.ebuild
Normal file
123
sys-cluster/scr/scr-3.0-r1.ebuild
Normal file
@@ -0,0 +1,123 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DOCS_AUTODOC=0
|
||||
DOCS_BUILDER="sphinx"
|
||||
DOCS_DIR="${S}/doc/rst"
|
||||
FORTRAN_NEEDED="fortran"
|
||||
MYPV="${PV/_pre/rc}"
|
||||
PYTHON_COMPAT=( python3_{8..11} 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}"
|
||||
BDEPEND="
|
||||
app-admin/chrpath
|
||||
app-misc/pax-utils
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.0_pre2-shared-libscr_base.patch"
|
||||
"${FILESDIR}/${PN}-3.0_pre2-no-static.patch"
|
||||
"${FILESDIR}/${P}-add-YOGRT_LIBRARIES-to-SCR_EXTERNAL_SERIAL_LIBS.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
|
||||
for i in $(scanelf -RBF %F "${ED}/usr/bin/") ; do
|
||||
chrpath -d "${i}" || die
|
||||
done
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user