diff options
| author | Ambroise Petitgenêt <apetitgenet@free.fr> | 2019-03-22 08:00:55 +0100 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-03-22 00:00:55 -0700 |
| commit | 7eea85be2511e47153bb4ce5fa8e6ee459a32c5c (patch) | |
| tree | 2921c19cf952054432cf15f8e317e87126a975f6 | |
| parent | d88fa84c86a4abfc80c14be20e07028c08a3eeda (diff) | |
| download | vcpkg-7eea85be2511e47153bb4ce5fa8e6ee459a32c5c.tar.gz vcpkg-7eea85be2511e47153bb4ce5fa8e6ee459a32c5c.zip | |
[kdsoap] add package (#5750)
* create kd-saop port
Committer: PETITGENET AMBROISE <apetitgenet@free.fr>
* [kd-soap] remove extra comments
| -rw-r--r-- | ports/kd-soap/CONTROL | 4 | ||||
| -rw-r--r-- | ports/kd-soap/kd-saop.patch | 12 | ||||
| -rw-r--r-- | ports/kd-soap/portfile.cmake | 31 |
3 files changed, 47 insertions, 0 deletions
diff --git a/ports/kd-soap/CONTROL b/ports/kd-soap/CONTROL new file mode 100644 index 000000000..65b8419e6 --- /dev/null +++ b/ports/kd-soap/CONTROL @@ -0,0 +1,4 @@ +Source: kd-soap
+Version: 1.7.0
+Description: A Qt-based client-side and server-side SOAP component http://www.kdab.com/products/kd-soap
+Build-Depends: qt5-base
diff --git a/ports/kd-soap/kd-saop.patch b/ports/kd-soap/kd-saop.patch new file mode 100644 index 000000000..975a1c9f7 --- /dev/null +++ b/ports/kd-soap/kd-saop.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c3c824e..d7a1cce 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -168,6 +168,6 @@ if(${PROJECT_NAME}_IS_ROOT_PROJECT)
+ enable_testing()
+ add_subdirectory(testtools)
+ add_subdirectory(unittests)
++ add_subdirectory(examples)
+ endif()
+- add_subdirectory(examples)
+ endif()
diff --git a/ports/kd-soap/portfile.cmake b/ports/kd-soap/portfile.cmake new file mode 100644 index 000000000..2b49d114e --- /dev/null +++ b/ports/kd-soap/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO KDAB/KDSoap
+ REF 66a7804f157f51bc62c193b63a28918236bd7424
+ SHA512 e9e2ac3ef714ebd5a85972c0eed613f88cc36f213df4fb938d61b58947972524f26f54a226f8e28ce47385cd859030a560781b4aebe3a25e672ac82b5477eeb8
+ HEAD_REF master
+)
+vcpkg_apply_patches(
+ SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/8236bd7424-79789c62ed
+ PATCHES "${CMAKE_CURRENT_LIST_DIR}/kd-saop.patch"
+)
+
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/kd-soap RENAME copyright)
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools)
+file(RENAME ${CURRENT_PACKAGES_DIR}/bin/kdwsdl2cpp.exe ${CURRENT_PACKAGES_DIR}/tools/kdwsdl2cpp.exe)
+file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/kdwsdl2cpp.exe)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
