mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
sys-cluster/spath: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
sys-cluster/spath/Manifest
Normal file
1
sys-cluster/spath/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST spath-0.0.2.tar.gz 21719 BLAKE2B eb55c5d5129f11b43cd2c76985e85b89fe1044b76ec54cd60a62eb7615918b89eace7051ec55a03e063ab50a84a2285d5e14354ab16f6727d8548b3fc7f4255d SHA512 fbe7c14c581eaefab2d0760ceb80623393113a0f00cf0c7c4996c92c752b78a3a66022ca5f9b479e02e82cd1426b000510d5a2f83154131ef1fb188a19d97882
|
||||
33
sys-cluster/spath/files/spath-0.0.2-no-static.patch
Normal file
33
sys-cluster/spath/files/spath-0.0.2-no-static.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -36,16 +36,6 @@
|
||||
SET_TARGET_PROPERTIES(spath PROPERTIES OUTPUT_NAME spath CLEAN_DIRECT_OUTPUT 1)
|
||||
INSTALL(TARGETS spath DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
-ADD_LIBRARY(spath-static STATIC $<TARGET_OBJECTS:spath_o>)
|
||||
-IF(SPATH_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(spath-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(spath-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(SPATH_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(spath-static ${SPATH_EXTERNAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(spath-static PROPERTIES OUTPUT_NAME spath CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS spath-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
# SPATH Library
|
||||
ADD_LIBRARY(spath_base_o OBJECT ${libspath_noMPI_srcs})
|
||||
|
||||
@@ -53,13 +43,3 @@
|
||||
TARGET_LINK_LIBRARIES(spath_base ${SPATH_SERIAL_LIBS})
|
||||
SET_TARGET_PROPERTIES(spath_base PROPERTIES OUTPUT_NAME spath_base CLEAN_DIRECT_OUTPUT 1)
|
||||
INSTALL(TARGETS spath_base DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
-ADD_LIBRARY(spath_base-static STATIC $<TARGET_OBJECTS:spath_base_o>)
|
||||
-IF(SPATH_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(spath_base-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(spath_base-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(SPATH_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(spath_base-static ${SPATH_SERIAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(spath_base-static PROPERTIES OUTPUT_NAME spath_base CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS spath_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
19
sys-cluster/spath/metadata.xml
Normal file
19
sys-cluster/spath/metadata.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/ECP-VeloC/spath/issues</bugs-to>
|
||||
<remote-id type="github">ECP-VeloC/spath</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
The spath libary defines a data structure and a number of functions to manipulate paths, including combining, slicing, simplification, computing relative paths, and converting to/from character strings.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="lsf">Use LFS (Load Sharing Facility) as resource manager</flag>
|
||||
<flag name="slurm">Use <pkg>sys-cluster/slurm</pkg> as resource manager</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
50
sys-cluster/spath/spath-0.0.2.ebuild
Normal file
50
sys-cluster/spath/spath-0.0.2.ebuild
Normal file
@@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Path manipulation functions"
|
||||
HOMEPAGE="https://github.com/ECP-VeloC/spath"
|
||||
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="lsf +mpi slurm test"
|
||||
|
||||
#remove zlib in the next release (not used) https://github.com/ECP-VeloC/spath/issues/12
|
||||
RDEPEND="
|
||||
mpi? ( virtual/mpi )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
sys-libs/zlib
|
||||
test? ( slurm? ( sys-cluster/slurm ) )
|
||||
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
?? ( lsf slurm )
|
||||
test? ( mpi )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local vrm="NONE"
|
||||
use lsf && vrm="LSF"
|
||||
use slurm && vrm="SLURM"
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DSPATH_LINK_STATIC=OFF
|
||||
-DTVDISPLAY=OFF
|
||||
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
-DMPI=$(usex mpi)
|
||||
-DVELOC_RESOURCE_MANAGER="${vrm}"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user