sys-cluster/KVTree: bump

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri 2021-04-08 03:06:34 +02:00
parent 2ca8088bb8
commit 9da6c17b3d
No known key found for this signature in database
GPG Key ID: 75DFA720D0EF7660
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,56 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit cmake
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="KVTree provides a fully extensible C data structure modeled after Perl hashes"
HOMEPAGE="https://github.com/ECP-VeloC/KVTree"
LICENSE="MIT"
SLOT="0"
IUSE="fcntl +flock mpi test"
REQUIRED_USE="
?? ( fcntl flock )
"
RESTRICT="test? ( userpriv ) !test? ( test )"
RDEPEND="
mpi? ( virtual/mpi )
sys-libs/zlib
"
DEPEND="${RDEPEND}"
BDEPEND="
>=dev-util/cmake-2.8
app-admin/chrpath
"
src_prepare() {
#do not build static library
sed -i '/kvtree-static/d' src/CMakeLists.txt || die
sed -i '/kvtree_base-static/d' src/CMakeLists.txt || die
#do not install README.md automatically
sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die
default
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DMPI="$(usex mpi ON OFF)"
-DKVTREE_FILE_LOCK="$(usex flock FLOCK $(usex fcntl FCNTL NONE))"
-DKVTREE_LINK_STATIC=FALSE
)
cmake_src_configure
}
src_install() {
chrpath -d "${BUILD_DIR}/src/kvtree_print" || die
cmake_src_install
chrpath -d "${ED}/usr/$(get_libdir)/libkvtree.so" || die
chrpath -d "${ED}/usr/$(get_libdir)/libkvtree_base.so" || die
dodoc doc/rst/*.rst
docinto "${DOCSDIR}/users"
dodoc -r doc/rst/users/.
}

View File

@ -1 +1,2 @@
DIST KVTree-1.1.0.tar.gz 61555 BLAKE2B 250634e9c13335ae3cfd51b6159b5f6b20c68fb7cd0804f2712f79f7a914669cc65a2bbeac6c84020c744e7ee00ab12d1621f91f8bb816d72f65427c3b574760 SHA512 84885d62fe52f4ee13d8c78472b57f32b1422c275623192c2b0114e7925865912455e76459aaed7888f98acae418325e4e833c6e979e668323b96b65baecaf91
DIST KVTree-1.1.1.tar.gz 61667 BLAKE2B 26a5bf968b51d9ad9579563f144199243304040fb3c4f0d72cb4aa465292bb73ef8f85dd4e86a8ad9e5092550e97632b72ac7e632f30d10d668bca96a37b4c8f SHA512 229bd0bb1145aa38c244b4fd10da7a78fe37bf7aae93affb8401955ac0053218a6970a2459c043e46bdc74b0f8c2db421ea0d9f6a989cac24fe0ed31a2bb4d03