Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[random123] Add new port #24716

Merged
merged 15 commits into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions ports/random123/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Random123 - Header-only library

set(VERSION 1.14.0)

LilyWangLL marked this conversation as resolved.
Show resolved Hide resolved
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO "DEShawResearch/random123"
REF "v${VERSION}"
LilyWangLL marked this conversation as resolved.
Show resolved Hide resolved
SHA512 1c7d139193f5404e5d14d229f55e0a14b11de596a4cfbf0a39c1419f5ae146055dccc61e9430f724a2d7c1efb8bd01edb72866d4f4705508fcc6ebda6e90e91e
HEAD_REF "main"
)

# Copy the headers that define this package to the install location.
file(GLOB header_files
${SOURCE_PATH}/include/Random123/*.h
${SOURCE_PATH}/include/Random123/*.hpp )
file(COPY ${header_files}
DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT} )
KineticTheory marked this conversation as resolved.
Show resolved Hide resolved
file(COPY ${SOURCE_PATH}/include/Random123/conventional
DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT} )
KineticTheory marked this conversation as resolved.
Show resolved Hide resolved
file(COPY ${SOURCE_PATH}/include/Random123/features
DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT} )
KineticTheory marked this conversation as resolved.
Show resolved Hide resolved

# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
KineticTheory marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 6 additions & 0 deletions ports/random123/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "random123",
"version": "1.14.0",
"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.",
"homepage": "http://www.deshawresearch.com/resources_random123.html"
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6068,6 +6068,10 @@
"baseline": "6.10",
"port-version": 4
},
"random123": {
"baseline": "1.14.0",
"port-version": 0
},
"randomstr": {
"baseline": "2022-02-03",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/r-/random123.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "9d69861e68b75fce62181c9e990556a4c8a3774c",
"version-string": "1.14.0",
"port-version": 0
}
]
}