aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-04-05 11:28:15 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-04-05 11:28:15 +0000
commit53063dd58908606eeda2d61456059f782c7ad8a3 (patch)
treedbd48dfcbff76bdc3b140f79a0c68ceca5d9597e /irc
parent96ecb23693dcef90973a6212888068edc539cb6b (diff)
downloadports-53063dd58908606eeda2d61456059f782c7ad8a3.tar.gz
ports-53063dd58908606eeda2d61456059f782c7ad8a3.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/lostirc/Makefile3
-rw-r--r--irc/lostirc/files/patch-src_gtkmm_MainWindow.cpp11
-rw-r--r--irc/lostirc/files/patch-src_gtkmm_TextWidget.cpp16
-rw-r--r--irc/lostirc/files/patch-src_libirc_ServerConnection.cpp11
4 files changed, 40 insertions, 1 deletions
diff --git a/irc/lostirc/Makefile b/irc/lostirc/Makefile
index bf06ccd9aa25..de415e98403d 100644
--- a/irc/lostirc/Makefile
+++ b/irc/lostirc/Makefile
@@ -15,7 +15,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgtkmm-2.4.so:x11-toolkits/gtkmm24
-USES= pathfix pkgconfig gettext
+USES= compiler:c++11-lang pathfix pkgconfig gettext
+USE_CXXSTD= c++11
USE_GNOME= gnomeprefix
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-kde
diff --git a/irc/lostirc/files/patch-src_gtkmm_MainWindow.cpp b/irc/lostirc/files/patch-src_gtkmm_MainWindow.cpp
new file mode 100644
index 000000000000..a514dee73b81
--- /dev/null
+++ b/irc/lostirc/files/patch-src_gtkmm_MainWindow.cpp
@@ -0,0 +1,11 @@
+--- src/gtkmm/MainWindow.cpp.orig 2017-04-05 11:24:58 UTC
++++ src/gtkmm/MainWindow.cpp
+@@ -485,7 +485,7 @@ void MainWindow::openAboutWindow()
+ if (_aboutwin.get()) {
+ _aboutwin->present();
+ } else {
+- std::auto_ptr<Gtk::MessageDialog> dialog(new Gtk::MessageDialog(_("LostIRC "VERSION), false, Gtk::MESSAGE_INFO, Gtk::BUTTONS_OK, false));
++ std::auto_ptr<Gtk::MessageDialog> dialog(new Gtk::MessageDialog(_("LostIRC " VERSION), false, Gtk::MESSAGE_INFO, Gtk::BUTTONS_OK, false));
+
+ dialog->signal_response().connect(sigc::mem_fun(*this, &MainWindow::hideAboutWindow));
+ dialog->show();
diff --git a/irc/lostirc/files/patch-src_gtkmm_TextWidget.cpp b/irc/lostirc/files/patch-src_gtkmm_TextWidget.cpp
new file mode 100644
index 000000000000..410d5a194211
--- /dev/null
+++ b/irc/lostirc/files/patch-src_gtkmm_TextWidget.cpp
@@ -0,0 +1,16 @@
+--- src/gtkmm/TextWidget.cpp.orig 2017-04-05 11:26:59 UTC
++++ src/gtkmm/TextWidget.cpp
+@@ -210,11 +210,11 @@ void TextWidget::insertText(const TextProperties& tp,
+ std::vector< Glib::RefPtr<Gtk::TextTag> > tags;
+
+ Glib::RefPtr<Gtk::TextTag> fg = buffer->get_tag_table()->lookup(Glib::ustring("f")+crop(tp.fgnumber));
+- if (fg == 0)
++ if (!fg)
+ fg = buffer->get_tag_table()->lookup("f0");
+
+ Glib::RefPtr<Gtk::TextTag> bg = buffer->get_tag_table()->lookup(Glib::ustring("b")+crop(tp.bgnumber));
+- if (bg == 0)
++ if (!bg)
+ bg = buffer->get_tag_table()->lookup("b0");
+
+ tags.push_back(fg);
diff --git a/irc/lostirc/files/patch-src_libirc_ServerConnection.cpp b/irc/lostirc/files/patch-src_libirc_ServerConnection.cpp
new file mode 100644
index 000000000000..e1f6daae7d92
--- /dev/null
+++ b/irc/lostirc/files/patch-src_libirc_ServerConnection.cpp
@@ -0,0 +1,11 @@
+--- src/libirc/ServerConnection.cpp.orig 2017-04-05 11:23:15 UTC
++++ src/libirc/ServerConnection.cpp
+@@ -322,7 +322,7 @@ bool ServerConnection::sendVersion(const ustring& to)
+ ustring r("");
+ ustring m("");
+ #endif
+- ustring vstring("LostIRC "VERSION" on " + s + " " + r + " [" + m + "]");
++ ustring vstring("LostIRC " VERSION" on " + s + " " + r + " [" + m + "]");
+ ustring msg("NOTICE " + to + " :\001VERSION " + vstring + "\001\r\n");
+
+ return _socket.send(msg);