diff --git a/ports/via-httplib/portfile.cmake b/ports/via-httplib/portfile.cmake new file mode 100644 index 0000000000..8cc6cc08c9 --- /dev/null +++ b/ports/via-httplib/portfile.cmake @@ -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") diff --git a/ports/via-httplib/vcpkg.json b/ports/via-httplib/vcpkg.json new file mode 100644 index 0000000000..0bac2f2790 --- /dev/null +++ b/ports/via-httplib/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index d5fa46f204..d85d9c426b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/v-/via-httplib.json b/versions/v-/via-httplib.json new file mode 100644 index 0000000000..aa2eb14feb --- /dev/null +++ b/versions/v-/via-httplib.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "b8d9653408119df7140ccacc79ac7f75caddeea2", + "version": "1.9.0", + "port-version": 0 + } + ] +}