Procházet zdrojové kódy

package/qt5/qt5doc: add package with qt quick demos

Since qt 5.12, quick demos are moved in the qt5doc package.
In order to use quick demos, qt5doc has to be built.
qt5doc is a bit misleading name for the package, while it's
basic content are the quick demos. qdoc tool itself is a part
of qt5tools.

The examples need to be enabled for this package to do anything (because
we don't build the docs themselves), so select it

Signed-off-by: Goran Rađenović <gradenovic@ultratronik.de>
[Arnout:
 - fix check-package warnings;
 - update to Jan 31 2022 version of kde/5.15 branch;
 - add select of BR2_PACKAGE_QT5BASE_EXAMPLES;
 - add hash for license file]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Goran Rađenović před 4 roky
rodič
revize
fa917d0ca9

+ 1 - 0
package/qt5/Config.in

@@ -40,6 +40,7 @@ source "package/qt5/qt5charts/Config.in"
 source "package/qt5/qt5coap/Config.in"
 source "package/qt5/qt5connectivity/Config.in"
 source "package/qt5/qt5declarative/Config.in"
+source "package/qt5/qt5doc/Config.in"
 source "package/qt5/qt5enginio/Config.in"
 source "package/qt5/qt5graphicaleffects/Config.in"
 source "package/qt5/qt5imageformats/Config.in"

+ 16 - 0
package/qt5/qt5doc/Config.in

@@ -0,0 +1,16 @@
+config BR2_PACKAGE_QT5DOC
+	bool "qt5doc (includes quick demos)"
+	select BR2_PACKAGE_QT5BASE_EXAMPLES
+	select BR2_PACKAGE_QT5DECLARATIVE
+	select BR2_PACKAGE_QT5DECLARATIVE_QUICK
+	help
+	  Qt is a cross-platform application and UI framework for
+	  developers using C++.
+
+	  Qtdoc contains the main Qt Reference Documentation, which
+	  includes overviews, Qt topics, and examples not specific to
+	  any Qt module. The configuration files are located in
+	  qtdoc/doc/config and the articles in qtdoc/doc/src. Note that
+	  QDoc itself is located in qtbase.
+
+	  https://doc.qt.io/qt-5/overviews.html

+ 3 - 0
package/qt5/qt5doc/qt5doc.hash

@@ -0,0 +1,3 @@
+# Locally computed
+sha256  87ef0ba72ede78148dfae8fbe78c839f0e9966e1ab4a58d7725041144c0de70f  qtdoc-897e90fe304d844beaf694b82a93a50237fa8b9e.tar.bz2
+sha256  ed8742a95cb9db653a09b050e27ccff5e67ba69c14aa2c3137f2a4e1892f6c0d  LICENSE.FDL

+ 28 - 0
package/qt5/qt5doc/qt5doc.mk

@@ -0,0 +1,28 @@
+################################################################################
+#
+# qt5doc
+#
+################################################################################
+
+QT5DOC_VERSION = 897e90fe304d844beaf694b82a93a50237fa8b9e
+QT5DOC_SITE = $(QT5_SITE)/qtdoc/-/archive/$(QT5DOC_VERSION)
+QT5DOC_SOURCE = qtdoc-$(QT5DOC_VERSION).tar.bz2
+QT5DOC_DEPENDENCIES = qt5declarative
+QT5DOC_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_QT5QUICKCONTROLS),y)
+QT5DOC_DEPENDENCIES += qt5quickcontrols
+endif
+
+ifeq ($(BR2_PACKAGE_QT5QUICKCONTROLS2),y)
+QT5DOC_DEPENDENCIES += qt5quickcontrols2
+endif
+
+ifeq ($(BR2_PACKAGE_QT5XMLPATTERNS),y)
+QT5DOC_DEPENDENCIES += qt5xmlpatterns
+endif
+
+QT5DOC_LICENSE = GFDL-1.3
+QT5DOC_LICENSE_FILES = LICENSE.FDL
+
+$(eval $(qmake-package))