Skip to content

Commit 254f2be

Browse files
RPeschkerpeschkeBillyONeal
authored
[ntuples] Add header-only C++ ntuples library 0.1.2 added port of NTUPLES library (#46932)
Co-authored-by: rpeschke <[email protected]> Co-authored-by: Billy Robert O'Neal III <[email protected]>
1 parent eb2266e commit 254f2be

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

ports/rp-ntuples/portfile.cmake

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO RPeschke/ntuples
4+
REF "v${VERSION}"
5+
SHA512 0cd390e79640f0b03b5ac7b58ab52996a0a69f13cd52b404acf06601c2cf5788fe6ef8c082c35ed734fa4094a0b9543a6c07a1f6deaffd8a69475abbae7268dc
6+
)
7+
8+
file(INSTALL "${SOURCE_PATH}/core/include" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
9+
10+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/ntuples")
11+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/ntuples/ntuples-config.cmake"
12+
[[if (TARGET ntuples::ntuples)
13+
return()
14+
endif()
15+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
16+
add_library(ntuples INTERFACE)
17+
add_library(ntuples::ntuples ALIAS ntuples)
18+
target_include_directories(ntuples INTERFACE "${_IMPORT_PREFIX}/include")
19+
target_compile_features(ntuples INTERFACE cxx_std_20)
20+
]])
21+
22+
vcpkg_install_copyright(FILE_LIST
23+
"${SOURCE_PATH}/LICENSE"
24+
)
25+
26+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
27+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
28+
29+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/ntuples/usage"
30+
[[rp-ntuples provides CMake targets:
31+
32+
find_package(ntuples CONFIG REQUIRED)
33+
target_link_libraries(main PRIVATE ntuples::ntuples)
34+
]])

ports/rp-ntuples/vcpkg.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "rp-ntuples",
3+
"version": "0.1.2",
4+
"description": "A C++ ntuple library for structured data storage and processing",
5+
"homepage": "https://github.com/RPeschke/ntuples",
6+
"license": "MIT",
7+
"dependencies": [
8+
"vcpkg-cmake",
9+
"vcpkg-cmake-config"
10+
]
11+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8464,6 +8464,10 @@
84648464
"baseline": "10.4.2",
84658465
"port-version": 0
84668466
},
8467+
"rp-ntuples": {
8468+
"baseline": "0.1.2",
8469+
"port-version": 0
8470+
},
84678471
"rpclib": {
84688472
"baseline": "2.3.0",
84698473
"port-version": 2

versions/r-/rp-ntuples.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "afd4279ed872c3a026b31768100409ebaeb5c5e5",
5+
"version": "0.1.2",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)