aboutsummaryrefslogtreecommitdiffstats
path: root/print/scribus
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-06-20 05:37:29 +0800
committerbsam <bsam@FreeBSD.org>2013-06-20 05:37:29 +0800
commit5ac5e4679eb5223700d3f4c2e21998e733668ec9 (patch)
tree057decae05a0eb680c0b10a6c8fb8669131312b5 /print/scribus
parent48e8288a9959435a1333075f0bf36423f1a56854 (diff)
downloadfreebsd-ports-gnome-5ac5e4679eb5223700d3f4c2e21998e733668ec9.tar.gz
freebsd-ports-gnome-5ac5e4679eb5223700d3f4c2e21998e733668ec9.tar.zst
freebsd-ports-gnome-5ac5e4679eb5223700d3f4c2e21998e733668ec9.zip
Fix build with latest clang:
----- /usr/ports/print/scribus/work/scribus-1.4.2/scribus/plugins/scriptplugin/runscriptdialog.cpp:13:43: error: addition of default argument on redeclaration makes this constructor a default constructor RunScriptDialog::RunScriptDialog(QWidget* parent = 0, bool extEnable = false) : ^ ~ /usr/ports/print/scribus/work/scribus-1.4.2/scribus/plugins/scriptplugin/runscriptdialog.h:24:3: note: previous declaration is here RunScriptDialog(QWidget* parent, bool extEnable); ^ 1 error generated. *** Error code 1 ----- PR: ports/179042 Submitted by: "O. Hartmann" <ohartman@zedat.fu-berlin.de> Patch by: bsam (me) Tested by: "O. Hartmann" <ohartman@zedat.fu-berlin.de> Approved by: sylvio (maintainer, timeout 3+ weeks)
Diffstat (limited to 'print/scribus')
-rw-r--r--print/scribus/Makefile2
-rw-r--r--print/scribus/files/patch-scribus_plugins_scriptplugin_runscriptdialog.cpp14
2 files changed, 15 insertions, 1 deletions
diff --git a/print/scribus/Makefile b/print/scribus/Makefile
index 6a33b0fb6f1a..d2c5d80aa701 100644
--- a/print/scribus/Makefile
+++ b/print/scribus/Makefile
@@ -34,7 +34,7 @@ USE_PYTHON= yes
USES= cmake desktop-file-utils pkgconfig shared-mime-info
USE_LDCONFIG= yes
-CMAKE_ARGS+= -DWITH_ASPELL=NO -DWANT_HUNSPELL=YES
+CMAKE_ARGS+= -DWITH_ASPELL=NO -DWANT_HUNSPELL=YES -Wno-ferror-limit
MAN1= scribus.1
MANLANG= "" pl de
diff --git a/print/scribus/files/patch-scribus_plugins_scriptplugin_runscriptdialog.cpp b/print/scribus/files/patch-scribus_plugins_scriptplugin_runscriptdialog.cpp
new file mode 100644
index 000000000000..c348f48e7400
--- /dev/null
+++ b/print/scribus/files/patch-scribus_plugins_scriptplugin_runscriptdialog.cpp
@@ -0,0 +1,14 @@
+--- scribus/plugins/scriptplugin/runscriptdialog.cpp.orig 2008-03-15 04:36:48.000000000 +0400
++++ scribus/plugins/scriptplugin/runscriptdialog.cpp 2013-06-20 00:15:32.226597355 +0400
+@@ -10,9 +10,10 @@ for which a new license (GPL+exception)
+
+ QString RunScriptDialog::m_lastScriptDir;
+
+-RunScriptDialog::RunScriptDialog(QWidget* parent = 0, bool extEnable = false) :
++RunScriptDialog::RunScriptDialog(QWidget* parent, bool extEnable = false) :
+ QDialog(parent)
+ {
++ parent=0;
+ setupUi(this);
+
+ m_extEnable = extEnable;