diff --git a/srcpkgs/dialogbox/patches/fix-cxx11-string_literals.patch b/srcpkgs/dialogbox/patches/fix-cxx11-string_literals.patch new file mode 100644 index 0000000000..a16ad32667 --- /dev/null +++ b/srcpkgs/dialogbox/patches/fix-cxx11-string_literals.patch @@ -0,0 +1,41 @@ +Compiling with -std=c++11 requires blanks between string literals +and macros defining strings. + +--- dialogmain.cpp 2016-03-02 20:31:01.000000000 +0100 ++++ dialogmain.cpp 2016-12-27 22:03:26.774405881 +0100 +@@ -28,7 +28,7 @@ + #define VERSION "1.0" + + static const char* about_message= +-PROGRAM_NAME" v"VERSION"\n\ ++PROGRAM_NAME " v" VERSION "\n\ + Copyright (C) 2015, 2016 Andriy Martynets \n\ + License GPLv3+: GNU GPL version 3 or later .\n\ + This program comes with ABSOLUTELY NO WARRANTY.\n\ +@@ -37,7 +37,7 @@ + More information on .\n"; + + static const char* about_html_message= +-"

"PROGRAM_NAME" version "VERSION"

\ ++"

" PROGRAM_NAME " version " VERSION "

\ +

Copyright (C) 2015, 2016 Andriy Martynets martynets@volia.ua

\ +

License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.

\ +

This program comes with ABSOLUTELY NO WARRANTY. \ +@@ -45,7 +45,7 @@ + under certain conditions. See the GNU GPL for details.

\ +

More information on https://github.com/martynets/dialogbox/.

"; + +-static const char* default_title=PROGRAM_NAME" v"VERSION; ++static const char* default_title=PROGRAM_NAME " v" VERSION; + + static void help(); + static void version(); +@@ -104,7 +104,7 @@ + static void help() + { + const char* usage= +-"Usage: "PROGRAM_NAME" [options]\n\ ++"Usage: " PROGRAM_NAME " [options]\n\ + Translate commands on stdin into widgets of GUI dialogbox and output user\n\ + actions to stdout.\n\ + \n\ diff --git a/srcpkgs/dialogbox/patches/fix-missing_headers.patch b/srcpkgs/dialogbox/patches/fix-missing_headers.patch new file mode 100644 index 0000000000..dfbec53bd6 --- /dev/null +++ b/srcpkgs/dialogbox/patches/fix-missing_headers.patch @@ -0,0 +1,28 @@ +For Qt5 the header files of widgets have to be explicitly included. + +--- dialogbox.hpp 2016-03-02 20:31:01.000000000 +0100 ++++ dialogbox.hpp 2016-12-27 21:54:05.335465144 +0100 +@@ -22,6 +22,23 @@ + #define DIALOGBOX_H + + #include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include + + #define BUFFER_SIZE 1024 + diff --git a/srcpkgs/dialogbox/patches/fix-qt_add_widgets.patch b/srcpkgs/dialogbox/patches/fix-qt_add_widgets.patch new file mode 100644 index 0000000000..ac999d4a6e --- /dev/null +++ b/srcpkgs/dialogbox/patches/fix-qt_add_widgets.patch @@ -0,0 +1,11 @@ +For Qt5 the project file needs to add QT += widgets. + +--- dialogbox.pro 2016-03-02 20:31:01.000000000 +0100 ++++ dialogbox.pro 2016-12-27 22:06:17.270398461 +0100 +@@ -1,5 +1,6 @@ + TEMPLATE = app + TARGET = dialogbox ++QT += widgets + DEPENDPATH += . + INCLUDEPATH += . + diff --git a/srcpkgs/dialogbox/template b/srcpkgs/dialogbox/template new file mode 100644 index 0000000000..3e01916a2c --- /dev/null +++ b/srcpkgs/dialogbox/template @@ -0,0 +1,13 @@ +# Template file for 'dialogbox' +pkgname=dialogbox +version=1.0 +revision=1 +build_style=qmake +hostmakedepends="qt5-host-tools qt5-devel" +makedepends="qt5-devel" +short_desc="Scriptable engine with customizable GUI for shell scripts" +maintainer="Jürgen Buchmüller " +license="GPL-3" +homepage="https://github.com/martynets/dialogbox" +distfiles="https://github.com/martynets/dialogbox/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" +checksum=554e59712a616772cff5734206e2a223171ad57c0e922421d8383a763b11640e