diff options
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/ghc-filesystem/portfile.cmake | 22 | ||||
| -rw-r--r-- | ports/ghc-filesystem/vcpkg.json | 16 |
2 files changed, 38 insertions, 0 deletions
diff --git a/ports/ghc-filesystem/portfile.cmake b/ports/ghc-filesystem/portfile.cmake new file mode 100644 index 000000000..2f580fba2 --- /dev/null +++ b/ports/ghc-filesystem/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO gulrak/filesystem + REF v1.5.4 + HEAD_REF master + SHA512 01fb69ce46259d25d152667943c20e013c90e005647ca1c9c64e0721882236079bac160c04b5edf310e1163bdf8cb6fc0343680de686a1329777027008c301bf +) + +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DGHC_FILESYSTEM_BUILD_TESTING=OFF + -DGHC_FILESYSTEM_BUILD_EXAMPLES=OFF + -DGHC_FILESYSTEM_WITH_INSTALL=ON +) +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ghc_filesystem) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug + ${CURRENT_PACKAGES_DIR}/lib +) diff --git a/ports/ghc-filesystem/vcpkg.json b/ports/ghc-filesystem/vcpkg.json new file mode 100644 index 000000000..71aa2b1ae --- /dev/null +++ b/ports/ghc-filesystem/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "ghc-filesystem", + "version": "1.5.4", + "description": "An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD", + "homepage": "https://github.com/gulrak/filesystem", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |
