diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/kdsoap | |
Diffstat (limited to 'vcpkg/ports/kdsoap')
| -rw-r--r-- | vcpkg/ports/kdsoap/fix-license-text.patch | 10 | ||||
| -rw-r--r-- | vcpkg/ports/kdsoap/portfile.cmake | 49 | ||||
| -rw-r--r-- | vcpkg/ports/kdsoap/usage | 7 | ||||
| -rw-r--r-- | vcpkg/ports/kdsoap/vcpkg.json | 25 |
4 files changed, 91 insertions, 0 deletions
diff --git a/vcpkg/ports/kdsoap/fix-license-text.patch b/vcpkg/ports/kdsoap/fix-license-text.patch new file mode 100644 index 0000000..7222a28 --- /dev/null +++ b/vcpkg/ports/kdsoap/fix-license-text.patch @@ -0,0 +1,10 @@ +diff --git a/LICENSE.txt b/LICENSE.txt +index 50ea704..bf81343 100644 +--- a/LICENSE.txt ++++ b/LICENSE.txt +@@ -11,4 +11,4 @@ available under any license. + Various other freely distributable files are contained in the unittests + and are not used in the library code itself. + +-See the full license texts in the LICENSES folder. ++See the full license texts provided below in this file. diff --git a/vcpkg/ports/kdsoap/portfile.cmake b/vcpkg/ports/kdsoap/portfile.cmake new file mode 100644 index 0000000..ebbc752 --- /dev/null +++ b/vcpkg/ports/kdsoap/portfile.cmake @@ -0,0 +1,49 @@ +vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/KDAB/KDSoap/releases/download/kdsoap-${VERSION}/kdsoap-${VERSION}.tar.gz"
+ FILENAME "kdsoap-${VERSION}.tar.gz"
+ SHA512 6ed5cd6a0d02a9faf6881facbd28391c553b3671512153ecd058ab53bfbe9d3f0afa3704d580e66010ddf6a3de7e578a632339f8c1ae7529c28f9d5fd7d1eb5f
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+ PATCHES "fix-license-text.patch"
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KDSoap_STATIC)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DKDSoap_QT6=ON
+ -DKDSoap_STATIC=${KDSoap_STATIC}
+ -DKDSoap_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME KDSoap-qt6 CONFIG_PATH lib/cmake/KDSoap-qt6)
+
+vcpkg_copy_tools(TOOL_NAMES kdwsdl2cpp-qt6 AUTO_CLEAN)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(
+ FILE_LIST
+ "${SOURCE_PATH}/LICENSE.txt"
+ "${SOURCE_PATH}/LICENSES/BSD-3-Clause.txt"
+ "${SOURCE_PATH}/LICENSES/GPL-2.0-only.txt"
+ "${SOURCE_PATH}/LICENSES/LicenseRef-Microsoft.txt"
+ "${SOURCE_PATH}/LICENSES/LicenseRef-Novell.txt"
+ "${SOURCE_PATH}/LICENSES/LicenseRef-OASIS.txt"
+ "${SOURCE_PATH}/LICENSES/LicenseRef-SportingExchange.txt"
+ "${SOURCE_PATH}/LICENSES/MIT.txt"
+ "${SOURCE_PATH}/LICENSES/W3C.txt"
+)
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/kdsoap/usage b/vcpkg/ports/kdsoap/usage new file mode 100644 index 0000000..113f7b8 --- /dev/null +++ b/vcpkg/ports/kdsoap/usage @@ -0,0 +1,7 @@ +kdsoap provides CMake targets: + + find_package(KDSoap-qt6 CONFIG REQUIRED) + # kdsoap library + target_link_libraries(main PRIVATE KDSoap::kdsoap) + # kdsoap-server library + target_link_libraries(main PRIVATE KDSoap::kdsoap-server) diff --git a/vcpkg/ports/kdsoap/vcpkg.json b/vcpkg/ports/kdsoap/vcpkg.json new file mode 100644 index 0000000..61bdcb5 --- /dev/null +++ b/vcpkg/ports/kdsoap/vcpkg.json @@ -0,0 +1,25 @@ +{ + "name": "kdsoap", + "version": "2.2.0", + "port-version": 1, + "description": "A Qt-based client-side and server-side SOAP component", + "homepage": "https://www.kdab.com/products/kd-soap", + "license": "MIT", + "dependencies": [ + { + "name": "qtbase", + "default-features": false, + "features": [ + "network" + ] + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |