Add Plasma Wayland Protocols recipe

This commit is contained in:
Volker Krause
2020-07-04 17:06:24 +02:00
parent e1a4d0cb34
commit 4935a087d2
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
DESCRIPTION = "Plasma KWayland Protocols"
HOMEPAGE = ""
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
PR = "r0"
SRC_URI = " \
git://invent.kde.org/libraries/${BPN};nobranch=1;protocol=https \
file://0001-relocatable-installation.patch \
"
S = "${WORKDIR}/git"
inherit cmake_plasma
FILES_${PN}-dev += " \
${datadir}/plasma-wayland-protocols \
"

View File

@@ -0,0 +1,22 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4b4b099..8d21422 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,7 @@ set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/PlasmaWaylandProtocol
configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/PlasmaWaylandProtocolsConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/PlasmaWaylandProtocolsConfig.cmake"
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
+ PATH_VARS KDE_INSTALL_DATADIR
)
ecm_setup_version(PROJECT VARIABLE_PREFIX PLASMA_WAYLAND_PROTOCOLS
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/plasma_wayland_protocols_version.h"
diff --git a/PlasmaWaylandProtocolsConfig.cmake.in b/PlasmaWaylandProtocolsConfig.cmake.in
index c3e0b1f..3b5c41b 100644
--- a/PlasmaWaylandProtocolsConfig.cmake.in
+++ b/PlasmaWaylandProtocolsConfig.cmake.in
@@ -2,4 +2,4 @@
include(CMakeFindDependencyMacro)
-set(PLASMA_WAYLAND_PROTOCOLS_DIR ${KDE_INSTALL_FULL_DATAROOTDIR}/plasma-wayland-protocols)
+set(PLASMA_WAYLAND_PROTOCOLS_DIR @PACKAGE_KDE_INSTALL_DATADIR@/plasma-wayland-protocols)

View File

@@ -0,0 +1,2 @@
require ${PN}.inc
SRCREV = "v${PV}"