mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[GTL] Add new port (#23400)
* [parallel-hashmap] update version to 1.34 * run `vcpkg x-add-version --all` and change `version-string` to `version` * make suggested changes * add changes suggested by @JonLui1993 * ran `vcpkg x-add-version --all ` as suggested * update version * update parallel-hashmap.json * initial version * finish adding gtl port * add suggested changes (quotes around paths) * Update gtl.json * add quotes to paths as suggested. * Update vcpkg.json * fix error: Error: String `1.00` is not a valid Relaxed version string (semver with arbitrary numeric identifiers) * Revert "add quotes to paths as suggested." This reverts commit 3b3f8daa0f449de3d699b844823e97e08591c124. * Update gtl.json * remove old version as suggested by @Thomas1664 Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
parent
75d2a36b8e
commit
fa93152c9b
21
ports/gtl/portfile.cmake
Normal file
21
ports/gtl/portfile.cmake
Normal file
@ -0,0 +1,21 @@
|
||||
#header-only library
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO greg7mdp/gtl
|
||||
REF 1.00
|
||||
SHA512 842a5e2634919a04fdd87995a8ada2f949c51a070a7c175043e0f9105a93248325023f85b28f9406276c2912a0fb4015a2e9ba30113d4a0214492da0dc5e5716
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
# Use greg7mdp/gtl's own build process, skipping examples and tests
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
|
||||
# Delete redundant directories
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/share/doc")
|
||||
|
||||
# Put the licence file where vcpkg expects it
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
12
ports/gtl/vcpkg.json
Normal file
12
ports/gtl/vcpkg.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "gtl",
|
||||
"version": "1.0.0",
|
||||
"description": "Greg's Template Library of useful classes.",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -2640,6 +2640,10 @@
|
||||
"baseline": "4.6.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"gtl": {
|
||||
"baseline": "1.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"gts": {
|
||||
"baseline": "0.7.6",
|
||||
"port-version": 4
|
||||
|
9
versions/g-/gtl.json
Normal file
9
versions/g-/gtl.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "52665bb6e7f0bbe30ffabc59521a937072ecc9e2",
|
||||
"version": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user