diff --git a/ports/xlnt/portfile.cmake b/ports/xlnt/portfile.cmake index b912d3a268..46aa3ded14 100644 --- a/ports/xlnt/portfile.cmake +++ b/ports/xlnt/portfile.cmake @@ -1,10 +1,16 @@ # Download the xlnt source code -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO xlnt-community/xlnt - REF "v${VERSION}" - SHA512 2d016416447b56c3902fc86c0441fd1d10cb86c3a542a2a38929e32f8f55470c33e4a3938f9c47b1a672ac4d6784a981c4738a61fd076622a2baa64dbc632810 - HEAD_REF master +set(ARCHIVE_NAME "xlnt-${VERSION}.tar.gz") +set(ARCHIVE_SHA512 2d016416447b56c3902fc86c0441fd1d10cb86c3a542a2a38929e32f8f55470c33e4a3938f9c47b1a672ac4d6784a981c4738a61fd076622a2baa64dbc632810) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/xlnt-community/xlnt/archive/v${VERSION}.tar.gz" + FILENAME "${ARCHIVE_NAME}" + SHA512 ${ARCHIVE_SHA512} +) + +# Extract the source archive +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" PATCHES fix-not-found-include.patch fix-configure-dependencies.patch diff --git a/ports/xlnt/vcpkg.json b/ports/xlnt/vcpkg.json index 7e28393e7b..a9db0f18c9 100644 --- a/ports/xlnt/vcpkg.json +++ b/ports/xlnt/vcpkg.json @@ -5,6 +5,7 @@ "homepage": "https://github.com/xlnt-community/xlnt", "documentation": "https://xlnt-community.gitbook.io/xlnt", "license": "MIT AND BSD-3-Clause AND BSD-2-Clause", + "supports": "windows & linux & osx", "dependencies": [ "fast-float", "fmt", diff --git a/versions/x-/xlnt.json b/versions/x-/xlnt.json index f2d593bae9..abb7d508af 100644 --- a/versions/x-/xlnt.json +++ b/versions/x-/xlnt.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "c28a307d002509a5664301322ebc75024146b299", + "git-tree": "255750540ce4c37678c62e64f10fbb0e411f59bc", "version": "1.6.1", "port-version": 0 },