diff options
Diffstat (limited to 'vcpkg/ports/plasma-wayland-protocols')
| -rw-r--r-- | vcpkg/ports/plasma-wayland-protocols/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/plasma-wayland-protocols/vcpkg.json | 18 |
2 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/plasma-wayland-protocols/portfile.cmake b/vcpkg/ports/plasma-wayland-protocols/portfile.cmake new file mode 100644 index 0000000..647fb0f --- /dev/null +++ b/vcpkg/ports/plasma-wayland-protocols/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO KDE/plasma-wayland-protocols + REF "v${VERSION}" + SHA512 3cb5ea1c5c69384181005520c9999b0f1548ec91f2894204ab9a103dd6d76621932f4d6c536664797ab2d24df4e1f182a353bd9be802565ec48dec657cc59276 + HEAD_REF master +) + +# Prevent KDEClangFormat from writing to source effectively blocking parallel configure +file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME PlasmaWaylandProtocols CONFIG_PATH lib/cmake/PlasmaWaylandProtocols) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*") +vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES}) + +# Allow empty include directory +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
\ No newline at end of file diff --git a/vcpkg/ports/plasma-wayland-protocols/vcpkg.json b/vcpkg/ports/plasma-wayland-protocols/vcpkg.json new file mode 100644 index 0000000..f93b2bb --- /dev/null +++ b/vcpkg/ports/plasma-wayland-protocols/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "plasma-wayland-protocols", + "version": "1.14.0", + "description": "The non-standard Wayland protocols use by KDE Plasma", + "homepage": "https://invent.kde.org/libraries/plasma-wayland-protocols/-/tree/master/", + "supports": "linux", + "dependencies": [ + "ecm", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |