Skip to content

Commit e5cdefb

Browse files
authored
[randomstr] New port (#22921)
* [ports/randomstr] Init * `./vcpkg x-add-version --all --overwrite-version`
1 parent c06dfc0 commit e5cdefb

4 files changed

Lines changed: 47 additions & 0 deletions

File tree

ports/randomstr/portfile.cmake

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO offscale/c89randomstr
4+
REF 9d577c4343913a330ef32b93ed12b8942808bbbc
5+
SHA512 7adfac8000d9057b9ca230f794bff82e1628864140e08d393e3faff890848606fff72c3dd2b296a20bf3003ed035e9e4273a0599764f515b7a6ac7091e9d2949
6+
HEAD_REF master
7+
)
8+
9+
vcpkg_cmake_configure(
10+
SOURCE_PATH "${SOURCE_PATH}"
11+
OPTIONS
12+
"-DBUILD_TESTING=OFF"
13+
)
14+
vcpkg_cmake_install()
15+
file(INSTALL "${SOURCE_PATH}/COPYING"
16+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
17+
RENAME copyright)
18+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")

ports/randomstr/vcpkg.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "randomstr",
3+
"version-date": "2022-02-03",
4+
"description": "Simple randomstr function in a header-only C89 library",
5+
"license": "0BSD",
6+
"dependencies": [
7+
{
8+
"name": "vcpkg-cmake",
9+
"host": true
10+
},
11+
{
12+
"name": "vcpkg-cmake-config",
13+
"host": true
14+
}
15+
]
16+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5952,6 +5952,10 @@
59525952
"baseline": "6.10",
59535953
"port-version": 4
59545954
},
5955+
"randomstr": {
5956+
"baseline": "2022-02-03",
5957+
"port-version": 0
5958+
},
59555959
"rang": {
59565960
"baseline": "3.2",
59575961
"port-version": 0

versions/r-/randomstr.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": "231d69b973b9219271281ebe6d125c4c31380b87",
5+
"version-date": "2022-02-03",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)