From 322e3e152a8310f7842c8f568dd3747017a93e48 Mon Sep 17 00:00:00 2001 From: eli Date: Thu, 19 Aug 2021 09:14:24 +0900 Subject: [zug] Add port (#19539) * add zug port * run `vcpkg x-add-version --all` * add missing docs feature to zug * run `vcpkg x-add-version --all --overwrite-version` * Apply suggestions from code review Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * format vcpkg.json * update version Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Jonliu1993 <13720414433@163.com> --- ports/zug/portfile.cmake | 27 +++++++++++++++++++++++++++ ports/zug/vcpkg.json | 21 +++++++++++++++++++++ versions/baseline.json | 4 ++++ versions/z-/zug.json | 9 +++++++++ 4 files changed, 61 insertions(+) create mode 100644 ports/zug/portfile.cmake create mode 100644 ports/zug/vcpkg.json create mode 100644 versions/z-/zug.json diff --git a/ports/zug/portfile.cmake b/ports/zug/portfile.cmake new file mode 100644 index 000000000..d222436fe --- /dev/null +++ b/ports/zug/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO arximboldi/zug + REF 033dadbed463ff3430b7ebc36df8a46f4f0f5078 + SHA512 a8067a90f7a427775872f8198419aa791b647e273ed148b93c189d3b81a4564a19b9321b4bb8cd5681627d8ab13e40be09ed1d75c7b65d74078f21daddaef929 + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + docs zug_BUILD_DOCS +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Dzug_BUILD_EXAMPLES=OFF + -Dzug_BUILD_TESTS=OFF + ${FEATURE_OPTIONS} +) + + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Zug) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/zug/vcpkg.json b/ports/zug/vcpkg.json new file mode 100644 index 000000000..ac59f865e --- /dev/null +++ b/ports/zug/vcpkg.json @@ -0,0 +1,21 @@ +{ + "name": "zug", + "version-date": "2021-04-23", + "description": "Transducers for C++", + "homepage": "https://sinusoid.es/zug/", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "docs": { + "description": "Build documentation" + } + } +} diff --git a/versions/baseline.json b/versions/baseline.json index 7c493d08a..6aeb14c61 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6964,6 +6964,10 @@ "baseline": "1.0.4", "port-version": 0 }, + "zug": { + "baseline": "2021-04-23", + "port-version": 0 + }, "zxing-cpp": { "baseline": "2020-12-2", "port-version": 0 diff --git a/versions/z-/zug.json b/versions/z-/zug.json new file mode 100644 index 000000000..687ab2d8f --- /dev/null +++ b/versions/z-/zug.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "2213b3d809f8a99994484b626896f6cf6e3858c3", + "version-date": "2021-04-23", + "port-version": 0 + } + ] +} -- cgit v1.2.3