diff --git a/ports/thrift/portfile.cmake b/ports/thrift/portfile.cmake index 6bb7c1add6..31509decf7 100644 --- a/ports/thrift/portfile.cmake +++ b/ports/thrift/portfile.cmake @@ -9,15 +9,18 @@ endif() vcpkg_find_acquire_program(FLEX) vcpkg_find_acquire_program(BISON) -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO apache/thrift - REF "v${VERSION}" - SHA512 6dedcf48a8900e3a1dabfa73a4577a4d2482527b45ad8b77fec3fa7fdd8ea21b9249b3602c1e3e54bcee98143a9bb325b59e345423dc6dd8c9365889095615e2 - HEAD_REF master +vcpkg_download_distfile(ARCHIVE + URLS "https://archive.apache.org/dist/thrift/${VERSION}/thrift-${VERSION}.tar.gz" + FILENAME "thrift-${VERSION}.tar.gz" + SHA512 beb37ee2a295fae7df12cce6449c92799076771bae515fafcc790a62ac6e76ac5584f102315d466b8f5f98e236c9dc4a244695bdcd9f1392d6e9a13d365ddadc +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" PATCHES - "pc-suffix.patch" - "fix_missing_quotes_in_config_and_bin_path.patch" + pc-suffix.patch + fix_missing_quotes_in_config_and_bin_path.patch ) if (VCPKG_TARGET_IS_OSX) diff --git a/ports/thrift/vcpkg.json b/ports/thrift/vcpkg.json index 7cd5e20a61..cc5fc9f7a0 100644 --- a/ports/thrift/vcpkg.json +++ b/ports/thrift/vcpkg.json @@ -1,6 +1,7 @@ { "name": "thrift", "version": "0.22.0", + "port-version": 1, "description": "Apache Thrift is a software project spanning a variety of programming languages and use cases. Our goal is to make reliable, performant communication and data serialization across languages as efficient and seamless as possible.", "homepage": "https://github.com/apache/thrift", "license": "Apache-2.0", diff --git a/versions/baseline.json b/versions/baseline.json index acdf4db353..5bab184a06 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -9834,7 +9834,7 @@ }, "thrift": { "baseline": "0.22.0", - "port-version": 0 + "port-version": 1 }, "tidy-html5": { "baseline": "5.8.0", diff --git a/versions/t-/thrift.json b/versions/t-/thrift.json index fe08b0067b..5a889ed283 100644 --- a/versions/t-/thrift.json +++ b/versions/t-/thrift.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "37ecae27a996313cbd6862b3c33aa026eda52692", + "version": "0.22.0", + "port-version": 1 + }, { "git-tree": "4c4faad4f1e351534a8114aa84d5ab1dee2e025f", "version": "0.22.0",