Skip to content

Commit

Permalink
Update versioning in vcpkg.json to official release version 3.0.3.
Browse files Browse the repository at this point in the history
Simplify CMake install rules
Removed no longer needed patches
  • Loading branch information
JoergAtGithub committed Dec 26, 2024
1 parent 80d54ff commit 5e548cf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 161 deletions.
90 changes: 0 additions & 90 deletions ports/date/0001-fix-uwp.patch

This file was deleted.

63 changes: 0 additions & 63 deletions ports/date/0002-fix-cmake-install.patch

This file was deleted.

14 changes: 8 additions & 6 deletions ports/date/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO HowardHinnant/date
REF 1ead6715dec030d340a316c927c877a3c4e5a00c
SHA512 a0b5dd2d94788929a2ba98bd629d64d188ff0ae40affd9338d3d7a94c848ae4d6addc72613964e7fad7f62e4ee20b7170b2133cb39d4e018c604ba35c68d1cff
REF "v${VERSION}"
SHA512 e11d7f230ecc431d94c4b58fe7394dd57a9ec0baa9de52496578479b51bbf885566d6666882916d84d388060fa36065b3fa8dd3a8bc14f720b38d1c943f06700
HEAD_REF master
PATCHES
0001-fix-uwp.patch
0002-fix-cmake-install.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand All @@ -29,7 +26,12 @@ vcpkg_cmake_configure(
)

vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/date)

if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
else()
vcpkg_cmake_config_fixup(CONFIG_PATH "${CMAKE_INSTALL_LIBDIR}/cmake/date")
endif()

vcpkg_copy_pdbs()

Expand Down
2 changes: 1 addition & 1 deletion ports/date/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "date",
"version-date": "2024-05-14",
"version": "3.0.3",
"description": "A date and time library based on the C++17 <chrono> header",
"homepage": "https://github.com/HowardHinnant/date",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2213,7 +2213,7 @@
"port-version": 0
},
"date": {
"baseline": "2024-05-14",
"baseline": "3.0.3",
"port-version": 0
},
"datraw": {
Expand Down
5 changes: 5 additions & 0 deletions versions/d-/date.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b8d63fd4c7ecb91f04fb815187bdf3df4f02b0ce",
"version": "3.0.3",
"port-version": 0
},
{
"git-tree": "52f7b2f3a6398c0aa4a073a06c55c1a513b478bb",
"version-date": "2024-05-14",
Expand Down

0 comments on commit 5e548cf

Please sign in to comment.