Skip to content

Commit

Permalink
[fmt] create a new port with 10.2.1
Browse files Browse the repository at this point in the history
* https://github.com/fmtlib/fmt/releases/tag/10.2.1
* Always 'static' library linkage
  • Loading branch information
luncliff committed Oct 4, 2024
1 parent e374835 commit a61ce60
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
29 changes: 29 additions & 0 deletions ports/fmt/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO fmtlib/fmt
REF "${VERSION}"
SHA512 27df90c681ec37e55625062a79e3b83589b6d7e94eff37a3b412bb8c1473f757a8adb727603acc9185c3490628269216843b7d7bd5a3cb37f0029da5d1495ffa
HEAD_REF master
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
GENERATOR Ninja
OPTIONS
-DFMT_CMAKE_DIR=share/fmt
-DFMT_TEST=OFF
-DFMT_DOC=OFF
)

vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
17 changes: 17 additions & 0 deletions ports/fmt/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "fmt",
"version": "10.2.1",
"description": "{fmt} is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.",
"homepage": "https://github.com/fmtlib/fmt",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
"baseline": "1.0",
"port-version": 4
},
"fmt": {
"baseline": "10.2.1",
"port-version": 0
},
"fp16": {
"baseline": "2024-06-20",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/f-/fmt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "169f29c7a7cf058a0e348776ec1e853bbdf58ebf",
"version": "10.2.1",
"port-version": 0
}
]
}

0 comments on commit a61ce60

Please sign in to comment.