Skip to content

Commit

Permalink
[via-httplib] add new port (microsoft#40351)
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele Zavallone <[email protected]>
Co-authored-by: Lily Wang <[email protected]>
Co-authored-by: data-queue <[email protected]>
  • Loading branch information
4 people authored Aug 21, 2024
1 parent a00ea19 commit bb002e6
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ports/via-httplib/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO kenba/via-httplib
REF ${VERSION}
SHA512 3a36d251b6dfe9ad40d798761169a70877c6d12a94ea2799670d701a4449e2fe15558bc9f50fa46e17e3f2a53b91eb233254efd5000eeece07890e1a804f301d
HEAD_REF master
)

vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(PACKAGE_NAME ViaHttpLib CONFIG_PATH lib/cmake/ViaHttpLib)

vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/ViaHttpLib/ViaHttpLibConfig.cmake"
"find_dependency(Boost 1.51)"
[[find_dependency(Boost COMPONENTS system)]])

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt")
19 changes: 19 additions & 0 deletions ports/via-httplib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "via-httplib",
"version": "1.9.0",
"description": "C++ HTTP Library",
"homepage": "https://github.com/kenba/via-httplib",
"license": "GPL-2.0-or-later",
"dependencies": [
"boost-asio",
"json-spirit",
{
"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 @@ -9288,6 +9288,10 @@
"baseline": "1.4.0",
"port-version": 0
},
"via-httplib": {
"baseline": "1.9.0",
"port-version": 0
},
"vili": {
"baseline": "1.0.0+20221123",
"port-version": 1
Expand Down
9 changes: 9 additions & 0 deletions versions/v-/via-httplib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "b8d9653408119df7140ccacc79ac7f75caddeea2",
"version": "1.9.0",
"port-version": 0
}
]
}

0 comments on commit bb002e6

Please sign in to comment.