* [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/KVTree/, sys-cluster/KVTree/files/
@ 2021-10-30 19:37 Alessandro Barbieri
0 siblings, 0 replies; only message in thread
From: Alessandro Barbieri @ 2021-10-30 19:37 UTC (permalink / raw
To: gentoo-commits
commit: 09e3d596dfe0014200eca1bad02156109dbecfe8
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Fri Oct 29 15:16:45 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Oct 30 19:37:44 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=09e3d596
sys-cluster/KVTree: add 1.2.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sys-cluster/KVTree/KVTree-1.2.0.ebuild | 58 ++++++++++++++++++++++
sys-cluster/KVTree/Manifest | 1 +
.../KVTree/files/KVTree-1.2.0-no-static.patch | 47 ++++++++++++++++++
.../KVTree/files/KVTree-no-install-readme.patch | 12 +++++
4 files changed, 118 insertions(+)
diff --git a/sys-cluster/KVTree/KVTree-1.2.0.ebuild b/sys-cluster/KVTree/KVTree-1.2.0.ebuild
new file mode 100644
index 000000000..9d7bfd9cb
--- /dev/null
+++ b/sys-cluster/KVTree/KVTree-1.2.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="KVTree provides a fully extensible C data structure modeled after Perl hashes"
+HOMEPAGE="https://github.com/ECP-VeloC/KVTree"
+SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64"
+LICENSE="MIT"
+SLOT="0"
+IUSE="fcntl +flock mpi test"
+
+RDEPEND="
+ mpi? ( virtual/mpi )
+ sys-libs/zlib
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ >=dev-util/cmake-2.8
+ app-admin/chrpath
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-no-install-readme.patch"
+ "${FILESDIR}/${P}-no-static.patch"
+)
+REQUIRED_USE="?? ( fcntl flock )"
+RESTRICT="test? ( userpriv ) !test? ( test )"
+
+src_configure() {
+ local flock="NONE"
+ use fcntl && flock="FCNTL"
+ use flock && flock="FLOCK"
+
+ local mycmakeargs=(
+ -DENABLE_TESTS=$(usex test)
+ -DMPI="$(usex mpi ON OFF)"
+ -DKVTREE_FILE_LOCK="${flock}"
+
+ -DBUILD_SHARED_LIBS=ON
+ -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/.
+}
diff --git a/sys-cluster/KVTree/Manifest b/sys-cluster/KVTree/Manifest
index a120d4ed3..5745aa5f6 100644
--- a/sys-cluster/KVTree/Manifest
+++ b/sys-cluster/KVTree/Manifest
@@ -1 +1,2 @@
DIST KVTree-1.1.1.tar.gz 61667 BLAKE2B 26a5bf968b51d9ad9579563f144199243304040fb3c4f0d72cb4aa465292bb73ef8f85dd4e86a8ad9e5092550e97632b72ac7e632f30d10d668bca96a37b4c8f SHA512 229bd0bb1145aa38c244b4fd10da7a78fe37bf7aae93affb8401955ac0053218a6970a2459c043e46bdc74b0f8c2db421ea0d9f6a989cac24fe0ed31a2bb4d03
+DIST KVTree-1.2.0.tar.gz 61844 BLAKE2B 4bd7a975f3c2f510b7ade983c393ac86cb9bcb7216776fd59db8cc258f869f1157f5a08aee3c19fb8e23c796928b6b44c9e3dd95eee13c7e4a4c1fdf3b5d8f00 SHA512 ddc6f2b32bcf8e1a369a17b238d4454679f3a8a4fc1a9fa18e5317418cf73c7d0db2169b53513e15ad05e1f22c80cdd9d66cddbc8aa2ad2a1c95d4910b3d7f88
diff --git a/sys-cluster/KVTree/files/KVTree-1.2.0-no-static.patch b/sys-cluster/KVTree/files/KVTree-1.2.0-no-static.patch
new file mode 100644
index 000000000..6c9ba59f3
--- /dev/null
+++ b/sys-cluster/KVTree/files/KVTree-1.2.0-no-static.patch
@@ -0,0 +1,47 @@
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -57,16 +57,6 @@
+ INSTALL(TARGETS kvtree DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ ENDIF()
+
+-ADD_LIBRARY(kvtree-static STATIC $<TARGET_OBJECTS:kvtree_o>)
+-IF(KVTREE_LINK_STATIC)
+- SET_TARGET_PROPERTIES(kvtree-static PROPERTIES LINK_SEARCH_START_STATIC 1)
+- SET_TARGET_PROPERTIES(kvtree-static PROPERTIES LINK_SEARCH_END_STATIC 1)
+-ENDIF(KVTREE_LINK_STATIC)
+-TARGET_LINK_LIBRARIES(kvtree-static ${KVTREE_EXTERNAL_LIBS})
+-
+-SET_TARGET_PROPERTIES(kvtree-static PROPERTIES OUTPUT_NAME kvtree CLEAN_DIRECT_OUTPUT 1)
+-INSTALL(TARGETS kvtree-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
+-
+ # KVTREE base Library (no MPI)
+ ADD_LIBRARY(kvtree_noMPI_o OBJECT ${libkvtree_noMPI_srcs})
+
+@@ -77,16 +67,6 @@
+ INSTALL(TARGETS kvtree_base DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ ENDIF(BUILD_SHARED_LIBS)
+
+-ADD_LIBRARY(kvtree_base-static STATIC $<TARGET_OBJECTS:kvtree_noMPI_o>)
+-IF(KVTREE_LINK_STATIC)
+- SET_TARGET_PROPERTIES(kvtree_base-static PROPERTIES LINK_SEARCH_START_STATIC 1)
+- SET_TARGET_PROPERTIES(kvtree_base-static PROPERTIES LINK_SEARCH_END_STATIC 1)
+-ENDIF(KVTREE_LINK_STATIC)
+-TARGET_LINK_LIBRARIES(kvtree_base-static ${KVTREE_SERIAL_LIBS})
+-
+-SET_TARGET_PROPERTIES(kvtree_base-static PROPERTIES OUTPUT_NAME kvtree_base CLEAN_DIRECT_OUTPUT 1)
+-INSTALL(TARGETS kvtree_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
+-
+ ###########
+ # CLI KVTREE #
+ ###########
+@@ -99,10 +79,6 @@
+ # Build and install C binaries
+ FOREACH(bin IN ITEMS ${clikvtree_c_bins})
+ ADD_EXECUTABLE(${bin} ${bin}.c)
+- IF(KVTREE_LINK_STATIC)
+- TARGET_LINK_LIBRARIES(${bin} kvtree-static)
+- ELSE()
+ TARGET_LINK_LIBRARIES(${bin} kvtree)
+- ENDIF()
+ INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${bin} DESTINATION ${CMAKE_INSTALL_BINDIR})
+ ENDFOREACH(bin IN ITEMS ${clikvtree_c_bins})
diff --git a/sys-cluster/KVTree/files/KVTree-no-install-readme.patch b/sys-cluster/KVTree/files/KVTree-no-install-readme.patch
new file mode 100644
index 000000000..96d58aabc
--- /dev/null
+++ b/sys-cluster/KVTree/files/KVTree-no-install-readme.patch
@@ -0,0 +1,12 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -87,9 +87,6 @@
+ SET_SOURCE_FILES_PROPERTIES(config.h.in PROPERTIES GENERATED FALSE)
+ SET_SOURCE_FILES_PROPERTIES(${PROJECT_BINARY_DIR}/config.h PROPERTIES GENERATED TRUE)
+
+-# Special Install Files
+-INSTALL(FILES README.md DESTINATION ${CMAKE_INSTALL_DATADIR}/kvtree)
+-
+ # Package
+ SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "KV Storage Library for Perl style hashes")
+ SET(CPACK_PACKAGE_VENDOR "Lawrence Livermore National Laboratory")
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-30 19:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-30 19:37 [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/KVTree/, sys-cluster/KVTree/files/ Alessandro Barbieri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox