New package: dialogbox-1.0
This commit is contained in:
parent
d8c963f850
commit
52eb45a00f
4 changed files with 93 additions and 0 deletions
srcpkgs/dialogbox
41
srcpkgs/dialogbox/patches/fix-cxx11-string_literals.patch
Normal file
41
srcpkgs/dialogbox/patches/fix-cxx11-string_literals.patch
Normal file
|
@ -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 <martynets@volia.ua>\n\
|
||||
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n\
|
||||
This program comes with ABSOLUTELY NO WARRANTY.\n\
|
||||
@@ -37,7 +37,7 @@
|
||||
More information on <https://github.com/martynets/dialogbox/>.\n";
|
||||
|
||||
static const char* about_html_message=
|
||||
-"<h3>"PROGRAM_NAME" version "VERSION"</h3>\
|
||||
+"<h3>" PROGRAM_NAME " version " VERSION "</h3>\
|
||||
<p><b>Copyright (C) 2015, 2016 Andriy Martynets </b><a href=\"mailto:martynets@volia.ua\">martynets@volia.ua</a></p>\
|
||||
<p><b>License GPLv3+:</b> GNU GPL version 3 or later <a href=\"http://gnu.org/licenses/gpl.html\">http://gnu.org/licenses/gpl.html</a>.</p>\
|
||||
<p>This program comes with ABSOLUTELY NO WARRANTY. \
|
||||
@@ -45,7 +45,7 @@
|
||||
under certain conditions. See the GNU GPL for details.</p>\
|
||||
<p>More information on <a href=\"https://github.com/martynets/dialogbox/\">https://github.com/martynets/dialogbox/</a>.</p>";
|
||||
|
||||
-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\
|
28
srcpkgs/dialogbox/patches/fix-missing_headers.patch
Normal file
28
srcpkgs/dialogbox/patches/fix-missing_headers.patch
Normal file
|
@ -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 <QtGui>
|
||||
+#include <QApplication>
|
||||
+#include <QDir>
|
||||
+#include <QFile>
|
||||
+#include <QDialog>
|
||||
+#include <QTabWidget>
|
||||
+#include <QListWidget>
|
||||
+#include <QBoxLayout>
|
||||
+#include <QLayoutItem>
|
||||
+#include <QLabel>
|
||||
+#include <QCheckBox>
|
||||
+#include <QGroupBox>
|
||||
+#include <QRadioButton>
|
||||
+#include <QPushButton>
|
||||
+#include <QProgressBar>
|
||||
+#include <QComboBox>
|
||||
+#include <QLineEdit>
|
||||
+#include <QTextEdit>
|
||||
|
||||
#define BUFFER_SIZE 1024
|
||||
|
11
srcpkgs/dialogbox/patches/fix-qt_add_widgets.patch
Normal file
11
srcpkgs/dialogbox/patches/fix-qt_add_widgets.patch
Normal file
|
@ -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 += .
|
||||
|
13
srcpkgs/dialogbox/template
Normal file
13
srcpkgs/dialogbox/template
Normal file
|
@ -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 <pullmoll@t-online.de>"
|
||||
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
|
Loading…
Reference in a new issue