From 30cff779fcc76203f0694cf517b7d96d1f7f3603 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 1 Jan 2018 16:06:32 +0100 Subject: qedit: add a qt5 text editor Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- ...-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch | 33 ++++++++++++++++++++++ recipes-qt/qedit/files/qedit.desktop | 9 ++++++ recipes-qt/qedit/qedit_2.8.2.bb | 33 ++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch create mode 100644 recipes-qt/qedit/files/qedit.desktop create mode 100644 recipes-qt/qedit/qedit_2.8.2.bb diff --git a/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch b/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch new file mode 100644 index 0000000..7c7f563 --- /dev/null +++ b/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch @@ -0,0 +1,33 @@ +From 0c9e80df71bde69179edcb6847eb381eeec5cf7c Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Tue, 26 Dec 2017 20:05:37 +0100 +Subject: [PATCH] Options.cpp: provide default for + SIDE_PANEL_TOOLBAR_TEXT_POSITION + +prevents the following: + +| # qedit +| 2017/12/26 17:24:23 Options::_find - invalid option: SIDE_PANEL_TOOLBAR_TEXT_POSITION +| Segmentation fault (core dumped) + +Signed-off-by: Max Krummenacher +--- + base/Options.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/base/Options.cpp b/base/Options.cpp +index 2fb2c9f..cd099c6 100644 +--- a/base/Options.cpp ++++ b/base/Options.cpp +@@ -62,6 +62,8 @@ void Options::installDefaultOptions() + set( "FIXED_FONT_NAME", "Sans Serif,10" ); + set( "FONT_NAME", "Monospace,10" ); + ++ set( "SIDE_PANEL_TOOLBAR_TEXT_POSITION", 0 ); ++ + // toolbars default configuration + set( "TOOLBUTTON_ICON_SIZE", 0 ); + set( "TOOLBUTTON_TEXT_POSITION", -1 ); +-- +2.13.6 + diff --git a/recipes-qt/qedit/files/qedit.desktop b/recipes-qt/qedit/files/qedit.desktop new file mode 100644 index 0000000..14f5669 --- /dev/null +++ b/recipes-qt/qedit/files/qedit.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=QEdit +Comment=A Qt Text editor +Exec=qedit %F +Terminal=false +Type=Application +MimeType=text/plain; +Icon=qedit +Categories=Utility;TextEditor;Qt; \ No newline at end of file diff --git a/recipes-qt/qedit/qedit_2.8.2.bb b/recipes-qt/qedit/qedit_2.8.2.bb new file mode 100644 index 0000000..112a8c0 --- /dev/null +++ b/recipes-qt/qedit/qedit_2.8.2.bb @@ -0,0 +1,33 @@ +SUMMARY = "QEdit Text Editor" +HOMEPAGE = "http://hugo.pereira.free.fr/software/index.php?page=package&package_list=software_list_qt&package=qedit&full=0" +SECTION = "x11" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=81bcece21748c91ba9992349a91ec11d" + +DEPENDS = "qtbase qtx11extras" + +inherit cmake_qt5 + +SRC_URI = " \ + http://hugo.pereira.free.fr/software/tgz/qedit-2.8.2.tar.gz \ + file://qedit.desktop \ + file://0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch \ +" +SRC_URI[md5sum] = "7cca177ea042b230678ba0bb36269665" +SRC_URI[sha256sum] = "cc0686927ec8ffe44527f682b3a8d9585f753d643543fae061cb023a3b71ddb0" + +EXTRA_OECMAKE = "-DUSE_QT5=ON" +#export EXTRA_OECMAKE = "-DCMAKE_INSTALL_PREFIX=/usr" +do_configure() { + # Ensure we get the cmake configure and not qmake + cmake_do_configure +} + +do_install_append () { + install -d ${D}/${datadir}/applications + install -m 755 ${WORKDIR}/qedit.desktop ${D}/${datadir}/applications/ +} + +FILES_${PN} += "" +FILES_${PN}-dev += "" -- cgit v1.2.3