[date] set correct license and use vcpkg_install_copyright() (#32549)

This commit is contained in:
JonLiu1993 2023-07-13 11:36:02 -07:00 committed by GitHub
parent 2418d414eb
commit d751358003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 4 deletions

View File

@ -8,7 +8,7 @@ endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO HowardHinnant/date
REF v3.0.1
REF "v${VERSION}"
SHA512 6bdc7cba821d66e17a559250cc0ce0095808e9db81cec9e16eaa4c31abdfa705299c67b72016d9b06b302bc306d063e83a374eb00728071b83a5ad650d59034f
HEAD_REF master
PATCHES
@ -41,4 +41,4 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")

View File

@ -1,9 +1,10 @@
{
"name": "date",
"version": "3.0.1",
"port-version": 2,
"port-version": 3,
"description": "A date and time library based on the C++17 <chrono> header",
"homepage": "https://github.com/HowardHinnant/date",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",

View File

@ -2018,7 +2018,7 @@
},
"date": {
"baseline": "3.0.1",
"port-version": 2
"port-version": 3
},
"dav1d": {
"baseline": "1.2.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b3ca1bdc08676cd1bb802421bd94a18872305737",
"version": "3.0.1",
"port-version": 3
},
{
"git-tree": "14d5c6822908ad2fd1d700cca2067ae4b8ef4404",
"version": "3.0.1",