aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPark DongHa <luncliff@gmail.com>2021-04-20 09:21:59 +0900
committerGitHub <noreply@github.com>2021-04-19 17:21:59 -0700
commitd3a67b0559fbb4fe7e64c54473475af8d6bbc1dd (patch)
tree5d3de21817f50ee2c1732080512ca460fe82d839
parent818cf25415aa0ee7f45d40d11d0b3b8e87bc0ac2 (diff)
downloadvcpkg-d3a67b0559fbb4fe7e64c54473475af8d6bbc1dd.tar.gz
vcpkg-d3a67b0559fbb4fe7e64c54473475af8d6bbc1dd.zip
[ghc-filesystem] create a new port (#16936)
* [ghc-filesystem] create a new port * [ghc-filesystem] update baseline and port SHA * Update ports/ghc-filesystem/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/ghc-filesystem/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [ghc-filesystem] update git-tree SHA * [ghc-filesystem] depends vcpkg-cmake ports Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
-rw-r--r--ports/ghc-filesystem/portfile.cmake22
-rw-r--r--ports/ghc-filesystem/vcpkg.json16
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/g-/ghc-filesystem.json9
4 files changed, 51 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
+ }
+ ]
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 849aa5d7e..3d35601df 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -2216,6 +2216,10 @@
"baseline": "2.2.2-1",
"port-version": 0
},
+ "ghc-filesystem": {
+ "baseline": "1.5.4",
+ "port-version": 0
+ },
"gherkin-c": {
"baseline": "2019-10-07-1",
"port-version": 0
diff --git a/versions/g-/ghc-filesystem.json b/versions/g-/ghc-filesystem.json
new file mode 100644
index 000000000..d4f2e6721
--- /dev/null
+++ b/versions/g-/ghc-filesystem.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "bacddfca1f950fd501d4774332039f9be3e4d620",
+ "version": "1.5.4",
+ "port-version": 0
+ }
+ ]
+}