[oe] [meta-qt5][PATCH] qtchooser: add new recipe
Jonathan Liu
net147 at gmail.com
Mon May 2 08:37:47 UTC 2016
Hi Li,
On 29 April 2016 at 15:58, Li Xin <lixin.fnst at cn.fujitsu.com> wrote:
> qtchooser is a wrapper used to select between Qt binary versions.
>
> Signed-off-by: Li Xin <lixin.fnst at cn.fujitsu.com>
> ---
> .../0001-Makefile-install-the-man-dir.patch | 35 ++++++++++++++++++++++
> recipes-qt/qtchooser/qtchooser_39.bb | 24 +++++++++++++++
> 2 files changed, 59 insertions(+)
> create mode 100644 recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch
> create mode 100644 recipes-qt/qtchooser/qtchooser_39.bb
>
> diff --git a/recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch b/recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch
> new file mode 100644
> index 0000000..8e8e1c6
> --- /dev/null
> +++ b/recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch
> @@ -0,0 +1,35 @@
> +From 3f142e100cc3dd69b816ce79152760c823cb86e9 Mon Sep 17 00:00:00 2001
> +From: Li Xin <lixin.fnst at cn.fujitsu.com>
> +Date: Fri, 29 Apr 2016 12:41:34 +0900
> +Subject: [PATCH] Makefile: install the man dir
> +
> +upstream-status: backported
> +
> +Signed-off-by: Li Xin <lixin.fnst at cn.fujitsu.com>
> +---
> + Makefile | 3 +++
> + 1 file changed, 3 insertions(+)
> +
> +diff --git a/Makefile b/Makefile
> +index 20b9100..1fd8cd3 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -1,5 +1,6 @@
> + prefix = /usr
> + bindir = $(prefix)/bin
> ++MKDIR = mkdir -p
> + TOOLS = assistant \
> + designer \
> + lconvert \
> +@@ -56,6 +57,8 @@ install:
> + case `uname -s` in Darwin) \
> + for tool in $(MACTOOLS); do ln -sf qtchooser "$(INSTALL_ROOT)$(bindir)/$$tool"; done \
> + ;; esac
> ++ $(MKDIR) $(INSTALL_ROOT)$(prefix)/share/man/man1
> ++ install -m 644 -p doc/qtchooser.1 $(INSTALL_ROOT)$(prefix)/share/man/man1
> +
> + uninstall:
> + cd src/qtchooser && $(MAKE) uninstall
> +--
> +1.8.4.2
> +
> diff --git a/recipes-qt/qtchooser/qtchooser_39.bb b/recipes-qt/qtchooser/qtchooser_39.bb
> new file mode 100644
> index 0000000..7fceb9c
> --- /dev/null
> +++ b/recipes-qt/qtchooser/qtchooser_39.bb
> @@ -0,0 +1,24 @@
> +DESCRIPTION = "Wrapper to select between Qt development binary versions"
> +HOMEPAGE = "http://macieira.org/qtchooser"
> +LICENSE = "LGPLv2 | GPLv3"
> +SRC_URI = "http://macieira.org/qtchooser/${BP}-g4717841.tar.gz \
> + file://0001-Makefile-install-the-man-dir.patch"
> +SRC_URI[md5sum] = "fcf1b5e8373147e48ce72b9c1ffe3d10"
> +SRC_URI[sha256sum] = "4681d0561bf96599bf9bf5eb25103d07ee8f045f31576dc2e72b8529587a67c6"
> +
> +LIC_FILES_CHKSUM = " \
> + file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \
> + file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \
> + file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \
> +"
> +S = "${WORKDIR}/${BP}-g4717841"
> +
> +inherit pkgconfig
> +
> +do_compile() {
> + oe_runmake
> +}
> +
> +do_install() {
> + oe_runmake install INSTALL_ROOT=${D}
> +}
> --
> 1.8.4.2
Wouldn't it be better to use the latest version from
http://code.qt.io/cgit/qt/qtchooser.git/?
Regards,
Jonathan
More information about the Openembedded-devel
mailing list