kf5-modemmanager-qt: new package
authorPierre Ducroquet <pinaraf@pinaraf.info>
Thu, 15 Feb 2018 20:48:14 +0000 (21:48 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 2 Jul 2018 21:20:34 +0000 (23:20 +0200)
modemmanager-qt is a simple Qt wrapper on the ModemManager API.

Signed-off-by: Pierre Ducroquet <pinaraf@pinaraf.info>
[Thomas:
 - fix commit title
 - update to 5.47
 - add hash for license file
 - add missing dependency on qt5base
 - add missing dependency on Qt5 DBus module
 - use "depends on" instead of "select" for modemmanager dependency]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/kf5/Config.in
package/kf5/kf5-modemmanager-qt/Config.in [new file with mode: 0644]
package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.hash [new file with mode: 0644]
package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk [new file with mode: 0644]

index 5a2d2cca2a9a9ad765a3a741da7cd2850994c924..075b2462694badfdc005bbf95fe0d8a3f77a2a9b 100644 (file)
@@ -8,5 +8,6 @@ menuconfig BR2_PACKAGE_KF5
 
 if BR2_PACKAGE_KF5
 source "package/kf5/kf5-extra-cmake-modules/Config.in"
+source "package/kf5/kf5-modemmanager-qt/Config.in"
 source "package/kf5/kf5-networkmanager-qt/Config.in"
 endif
diff --git a/package/kf5/kf5-modemmanager-qt/Config.in b/package/kf5/kf5-modemmanager-qt/Config.in
new file mode 100644 (file)
index 0000000..c291b88
--- /dev/null
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_KF5_MODEMMANAGER_QT
+       bool "kf5-modemmanager-qt"
+       depends on BR2_USE_MMU # qt5dbus
+       depends on BR2_TOOLCHAIN_HAS_THREADS # qt5dbus
+       depends on BR2_PACKAGE_MODEM_MANAGER
+       select BR2_PACKAGE_QT5BASE_DBUS
+       select BR2_PACKAGE_KF5_EXTRA_CMAKE_MODULES
+       help
+         KF5 is a set of Qt framework addons, extending Qt in various
+         ways, not only restricted in helping integration in KDE.
+
+         This package contains the ModemManager Qt5 bindings from the
+         KF5 project.
+
+         https://api.kde.org/frameworks/modemmanager-qt/html/index.html
+
+comment "kf5-modemmanager-qt needs toolchain w/ threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.hash b/package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.hash
new file mode 100644 (file)
index 0000000..408eb0c
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 8b6ab15ce82b7a30b26814178ac33380056ec4398707481aa5ce95cf09d39d03 modemmanager-qt-5.47.0.tar.xz
+sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LIB
diff --git a/package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk b/package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk
new file mode 100644 (file)
index 0000000..9bbeeaa
--- /dev/null
@@ -0,0 +1,16 @@
+################################################################################
+#
+# kf5-modemmanager-qt
+#
+################################################################################
+
+KF5_MODEMMANAGER_QT_VERSION = $(KF5_VERSION)
+KF5_MODEMMANAGER_QT_SITE = $(KF5_SITE)
+KF5_MODEMMANAGER_QT_SOURCE = modemmanager-qt-$(KF5_MODEMMANAGER_QT_VERSION).tar.xz
+KF5_MODEMMANAGER_QT_LICENSE = LGPL-2.1+
+KF5_MODEMMANAGER_QT_LICENSE_FILE = COPYING.LIB
+
+KF5_MODEMMANAGER_QT_DEPENDENCIES = kf5-extra-cmake-modules modem-manager qt5base
+KF5_MODEMMANAGER_QT_INSTALL_STAGING = YES
+
+$(eval $(cmake-package))