Skip to content

Commit ac6ef2f

Browse files
KineticTheoryLily Wang
andauthored
[random123] Add new port (#24716)
* Provide Deshaw Research's Random123 implementation * Convert CONTROL to vcpkg.json. * Update versions/baseline.json. * Remove call to deprecated function. * Address reviewer comments by using vcpkg_from_github. * Implement recommended changes from MR review. * Update x-add-version. * Random123 uses a proprietary license that is very similar to BSD. * Random123 uses a proprietary license that is very similar to BSD. * Update versions file. * format portfile.cmake * x-add-version * apply suggestion * x-add-version Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
1 parent a00906c commit ac6ef2f

4 files changed

Lines changed: 43 additions & 0 deletions

File tree

ports/random123/portfile.cmake

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Random123 - Header-only library
2+
3+
vcpkg_from_github(
4+
OUT_SOURCE_PATH SOURCE_PATH
5+
REPO "DEShawResearch/random123"
6+
REF "v1.14.0"
7+
SHA512 1c7d139193f5404e5d14d229f55e0a14b11de596a4cfbf0a39c1419f5ae146055dccc61e9430f724a2d7c1efb8bd01edb72866d4f4705508fcc6ebda6e90e91e
8+
HEAD_REF "main"
9+
)
10+
11+
# Copy the headers that define this package to the install location.
12+
file(GLOB header_files
13+
"${SOURCE_PATH}/include/Random123/*.h"
14+
"${SOURCE_PATH}/include/Random123/*.hpp")
15+
file(COPY ${header_files}
16+
"${SOURCE_PATH}/include/Random123/features"
17+
"${SOURCE_PATH}/include/Random123/conventional"
18+
DESTINATION "${CURRENT_PACKAGES_DIR}/include/Random123")
19+
20+
# Handle copyright
21+
file(INSTALL "${SOURCE_PATH}/LICENSE"
22+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
23+
RENAME copyright)

ports/random123/vcpkg.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "random123",
3+
"version": "1.14.0",
4+
"description": "Random123 is a library of 'counter-based' random number generators (CBRNGs), in which the Nth random number can be obtained by applying a stateless mixing function to N instead of the conventional approach of using N iterations of a stateful transformation.",
5+
"homepage": "http://www.deshawresearch.com/resources_random123.html",
6+
"license": "BSD-3-Clause"
7+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6108,6 +6108,10 @@
61086108
"baseline": "6.10",
61096109
"port-version": 4
61106110
},
6111+
"random123": {
6112+
"baseline": "1.14.0",
6113+
"port-version": 0
6114+
},
61116115
"randomstr": {
61126116
"baseline": "2022-02-03",
61136117
"port-version": 0

versions/r-/random123.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": "c4e7e093d8eabdc89b0634e4a361e4a982c7cbe5",
5+
"version": "1.14.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)