diff options
| author | myd7349 <myd7349@gmail.com> | 2020-07-09 05:02:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-08 14:02:58 -0700 |
| commit | 82797496cabc0ca34a36cbb70156924c491e6204 (patch) | |
| tree | 9b297aa6aff40fc3bf706ec7774a5706282fde70 | |
| parent | 5e8bcc9d391205824cc5a369a86c68a071847612 (diff) | |
| download | vcpkg-82797496cabc0ca34a36cbb70156924c491e6204.tar.gz vcpkg-82797496cabc0ca34a36cbb70156924c491e6204.zip | |
[libfort] Add new port (#12305)
| -rw-r--r-- | ports/libfort/portfile.cmake | 25 | ||||
| -rw-r--r-- | ports/libfort/vcpkg.json | 7 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/libfort/portfile.cmake b/ports/libfort/portfile.cmake new file mode 100644 index 000000000..1ff014765 --- /dev/null +++ b/ports/libfort/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO seleznevae/libfort
+ REF ccb892f77dc30c2ebc42916a3f862a965e8c097f # v0.4.1
+ SHA512 0397e52985b56b6740d22533c48039bf1d61fb90795e97a6153e9360702d1e89b5353ba74de92005bbc874822766d157de21d175387ffd00d0a5294e531d2d8b
+ HEAD_REF main
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DFORT_ENABLE_TESTING=OFF
+ -DFORT_ENABLE_ASTYLE=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/libfort/vcpkg.json b/ports/libfort/vcpkg.json new file mode 100644 index 000000000..613042cb6 --- /dev/null +++ b/ports/libfort/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "libfort", + "version-string": "0.4.1", + "description": "A simple crossplatform library to create formatted text tables", + "homepage": "https://github.com/seleznevae/libfort", + "license": "MIT" +} |
