diff options
author | dim <dim@FreeBSD.org> | 2016-01-28 03:52:04 +0800 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-01-28 03:52:04 +0800 |
commit | c73c4f4a502180af8a91dd6eb5f037b0e1672a0b (patch) | |
tree | c9c9425f6f17449a52b81f3dd48403b717fcbd5d /x11 | |
parent | e2e0ab892bf3b521393ae0a81e0a93c2368fe165 (diff) | |
download | freebsd-ports-gnome-c73c4f4a502180af8a91dd6eb5f037b0e1672a0b.tar.gz freebsd-ports-gnome-c73c4f4a502180af8a91dd6eb5f037b0e1672a0b.tar.zst freebsd-ports-gnome-c73c4f4a502180af8a91dd6eb5f037b0e1672a0b.zip |
In x11/leechcraft, change the syntax of C++11 braced initializers with
multiple elements to correspond to C++ WG paper N3922. E.g, instead of:
auto foo { 1, 2, 3, 4 };
one should write:
auto foo = { 1, 2, 3, 4 };
This makes the port compile with clang 3.8.0 and higher, or gcc 5.0 and
higher.
Approved by: vg (maintainer)
PR: 206650
MFH: 2016Q1
Diffstat (limited to 'x11')
3 files changed, 40 insertions, 0 deletions
diff --git a/x11/leechcraft/files/patch-plugins_azoth_plugins_otroid_otrhandler.cpp b/x11/leechcraft/files/patch-plugins_azoth_plugins_otroid_otrhandler.cpp new file mode 100644 index 000000000000..f57c9a8bf2da --- /dev/null +++ b/x11/leechcraft/files/patch-plugins_azoth_plugins_otroid_otrhandler.cpp @@ -0,0 +1,11 @@ +--- plugins/azoth/plugins/otroid/otrhandler.cpp.orig 2014-07-28 20:35:44.000000000 +0200 ++++ plugins/azoth/plugins/otroid/otrhandler.cpp 2016-01-26 13:30:45.499740000 +0100 +@@ -510,7 +510,7 @@ namespace OTRoid + auto list = proxy->GetReturnValue ().toList (); + + const auto& actionsStruct = Entry2Action_.value (entry); +- const auto actions ++ const auto actions = + { + actionsStruct.ToggleOtr_.get (), + actionsStruct.ToggleOtrCtx_.get (), diff --git a/x11/leechcraft/files/patch-util_network_addresses.cpp b/x11/leechcraft/files/patch-util_network_addresses.cpp new file mode 100644 index 000000000000..4c3ae0d99dc6 --- /dev/null +++ b/x11/leechcraft/files/patch-util_network_addresses.cpp @@ -0,0 +1,11 @@ +--- util/network/addresses.cpp.orig 2014-07-28 20:35:44.000000000 +0200 ++++ util/network/addresses.cpp 2016-01-26 12:58:09.726934000 +0100 +@@ -38,7 +38,7 @@ namespace Util + AddrList_t GetLocalAddresses (int defaultPort) + { + AddrList_t defaultAddrs; +- const auto locals ++ const auto locals = + { + QHostAddress::parseSubnet ("10.0.0.0/8"), + QHostAddress::parseSubnet ("172.16.0.0/12"), diff --git a/x11/leechcraft/files/patch-util_xdg_xdg.cpp b/x11/leechcraft/files/patch-util_xdg_xdg.cpp new file mode 100644 index 000000000000..a12ff6a4f31b --- /dev/null +++ b/x11/leechcraft/files/patch-util_xdg_xdg.cpp @@ -0,0 +1,18 @@ +--- util/xdg/xdg.cpp.orig 2014-07-28 20:35:44.000000000 +0200 ++++ util/xdg/xdg.cpp 2016-01-26 13:01:00.517701000 +0100 +@@ -44,13 +44,13 @@ namespace XDG + + QPixmap GetAppPixmap (const QString& name) + { +- const auto prefixes ++ const auto prefixes = + { + "/usr/share/pixmaps/", + "/usr/local/share/pixmaps/" + }; + +- const auto sizes { "192", "128", "96", "72", "64", "48", "36", "32" }; ++ const auto sizes = { "192", "128", "96", "72", "64", "48", "36", "32" }; + const QStringList themes + { + "/usr/local/share/icons/hicolor/", |