diff options
author | Karel Kočí <cynerd@email.cz> | 2020-11-18 13:48:40 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-11-18 13:48:40 +0100 |
commit | 109de7c750062b30e90862e74899b40cd61fbb9f (patch) | |
tree | 7f7d5223994645c657a6e1a33e41f178f3081069 | |
parent | efdbe4e78e88978ddb8dc46d26d7f718a8eb4b21 (diff) | |
download | gentoo-personal-overlay-109de7c750062b30e90862e74899b40cd61fbb9f.tar.gz gentoo-personal-overlay-109de7c750062b30e90862e74899b40cd61fbb9f.tar.bz2 gentoo-personal-overlay-109de7c750062b30e90862e74899b40cd61fbb9f.zip |
mail-client/astroid: add new package
-rw-r--r-- | mail-client/astroid/Manifest | 1 | ||||
-rw-r--r-- | mail-client/astroid/astroid-0.15-r1.ebuild | 27 | ||||
-rw-r--r-- | mail-client/astroid/files/astroid-0.15-use-std-placeholders-everywhere.patch | 160 |
3 files changed, 188 insertions, 0 deletions
diff --git a/mail-client/astroid/Manifest b/mail-client/astroid/Manifest new file mode 100644 index 0000000..7457748 --- /dev/null +++ b/mail-client/astroid/Manifest @@ -0,0 +1 @@ +DIST v0.15.tar.gz 3365732 BLAKE2B f06297c0a4c1c4dae6b5d5c77be76d0547ffb8a47e0dda0402df75f623266485e88565958a8302faf00201b2c2929ffadcb247ca572d7867267bbb9a9551c69a SHA512 e8bb8d7b32d5f443615d21ce639e59bf93b11e790d8a6ef7d63919c36aba2bcf3841b3f3a36cc34e15bc668bee47e0b525271f8f7b8dc38071a8e3bed19fce0d diff --git a/mail-client/astroid/astroid-0.15-r1.ebuild b/mail-client/astroid/astroid-0.15-r1.ebuild new file mode 100644 index 0000000..c82bed7 --- /dev/null +++ b/mail-client/astroid/astroid-0.15-r1.ebuild @@ -0,0 +1,27 @@ +EAPI=7 + +inherit cmake + +DESCRIPTION="Mail User Agent that provides a graphical for Notmuch" +HOMEPAGE="https://github.com/astroidmail/astroid" +SRC_URI="https://github.com/astroidmail/${PN}/archive/v${PV}.tar.gz" +#S="${WORKDIR}/Bear-${PV}" + +LICENSE="GPLv3" +KEYWORDS="amd64 ~x86" +SLOT="0" +IUSE="" + +DEPEND="dev-util/cmake" +RDEPEND=" + dev-cpp/gtkmm + dev-cpp/glibmm + net-libs/webkit-gtk + dev-libs/libsass + net-libs/libsoup + net-mail/notmuch +" + +PATCHES=( + "${FILESDIR}/${P}-use-std-placeholders-everywhere.patch" +) diff --git a/mail-client/astroid/files/astroid-0.15-use-std-placeholders-everywhere.patch b/mail-client/astroid/files/astroid-0.15-use-std-placeholders-everywhere.patch new file mode 100644 index 0000000..465b877 --- /dev/null +++ b/mail-client/astroid/files/astroid-0.15-use-std-placeholders-everywhere.patch @@ -0,0 +1,160 @@ +From 0723bf78587eb9c36fa304e33e53b0dfae112589 Mon Sep 17 00:00:00 2001 +From: "Alex Xu (Hello71)" <alex_y_xu@yahoo.ca> +Date: Tue, 15 Sep 2020 20:27:59 -0400 +Subject: [PATCH] use std::placeholders everywhere + +before this was silently relying on boost placeholders, but those +default off now. +--- + src/config.cc | 2 +- + src/main_window.cc | 20 +++++++++---------- + src/modes/keybindings.cc | 2 +- + .../thread_index/thread_index_list_view.cc | 14 ++++++------- + 4 files changed, 19 insertions(+), 19 deletions(-) + +diff --git a/src/config.cc b/src/config.cc +index bb967b4..5d62ee5 100644 +--- a/src/config.cc ++++ b/src/config.cc +@@ -488,7 +488,7 @@ namespace Astroid { + void Config::merge_ptree(const ptree &pt) { + function<void(const ptree &, + const ptree::path_type &, +- const ptree&)> method = bind (&Config::merge, this, _1, _2, _3); ++ const ptree&)> method = bind (&Config::merge, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3); + + traverse(pt, method); + } +diff --git a/src/main_window.cc b/src/main_window.cc +index 7b5b826..2b885c7 100644 +--- a/src/main_window.cc ++++ b/src/main_window.cc +@@ -260,52 +260,52 @@ namespace Astroid { + keys.register_key ("M-1", + "main_window.jump_to_page_1", + "Jump to page 1", +- bind (&MainWindow::jump_to_page, this, _1, 1)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 1)); + + keys.register_key ("M-2", + "main_window.jump_to_page_2", + "Jump to page 2", +- bind (&MainWindow::jump_to_page, this, _1, 2)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 2)); + + keys.register_key ("M-3", + "main_window.jump_to_page_3", + "Jump to page 3", +- bind (&MainWindow::jump_to_page, this, _1, 3)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 3)); + + keys.register_key ("M-4", + "main_window.jump_to_page_4", + "Jump to page 4", +- bind (&MainWindow::jump_to_page, this, _1, 4)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 4)); + + keys.register_key ("M-5", + "main_window.jump_to_page_5", + "Jump to page 5", +- bind (&MainWindow::jump_to_page, this, _1, 5)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 5)); + + keys.register_key ("M-6", + "main_window.jump_to_page_6", + "Jump to page 6", +- bind (&MainWindow::jump_to_page, this, _1, 6)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 6)); + + keys.register_key ("M-7", + "main_window.jump_to_page_7", + "Jump to page 7", +- bind (&MainWindow::jump_to_page, this, _1, 7)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 7)); + + keys.register_key ("M-8", + "main_window.jump_to_page_8", + "Jump to page 8", +- bind (&MainWindow::jump_to_page, this, _1, 8)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 8)); + + keys.register_key ("M-9", + "main_window.jump_to_page_9", + "Jump to page 9", +- bind (&MainWindow::jump_to_page, this, _1, 9)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 9)); + + keys.register_key ("M-0", + "main_window.jump_to_page_0", + "Jump to page 0", +- bind (&MainWindow::jump_to_page, this, _1, 0)); ++ bind (&MainWindow::jump_to_page, this, std::placeholders::_1, 0)); + + keys.register_key ("C-w", "main_window.close_page", + "Close mode (or window if other windows are open)", +diff --git a/src/modes/keybindings.cc b/src/modes/keybindings.cc +index 65e8cd8..08f1e40 100644 +--- a/src/modes/keybindings.cc ++++ b/src/modes/keybindings.cc +@@ -561,7 +561,7 @@ namespace Astroid { + register_key (b->first, + b->first.name, + ustring::compose ("Run hook: %1,%2", b->second.first, b->second.second), +- bind (cb, _1, b->second.first, b->second.second) ++ bind (cb, std::placeholders::_1, b->second.first, b->second.second) + ); + + b++; +diff --git a/src/modes/thread_index/thread_index_list_view.cc b/src/modes/thread_index/thread_index_list_view.cc +index d716db1..b32c378 100644 +--- a/src/modes/thread_index/thread_index_list_view.cc ++++ b/src/modes/thread_index/thread_index_list_view.cc +@@ -477,38 +477,38 @@ namespace Astroid { + multi_keys.register_key ("N", + "thread_index.multi.mark_unread", + "Toggle unread", +- bind (&ThreadIndexListView::multi_key_handler, this, MUnread, _1)); ++ bind (&ThreadIndexListView::multi_key_handler, this, MUnread, std::placeholders::_1)); + + multi_keys.register_key ("*", + "thread_index.multi.flag", + "Toggle flagged", +- bind (&ThreadIndexListView::multi_key_handler, this, MFlag, _1)); ++ bind (&ThreadIndexListView::multi_key_handler, this, MFlag, std::placeholders::_1)); + + multi_keys.register_key ("a", + "thread_index.multi.archive", + "Toggle archive", +- bind (&ThreadIndexListView::multi_key_handler, this, MArchive, _1)); ++ bind (&ThreadIndexListView::multi_key_handler, this, MArchive, std::placeholders::_1)); + + multi_keys.register_key ("S", + "thread_index.multi.mark_spam", + "Toggle spam", +- bind (&ThreadIndexListView::multi_key_handler, this, MSpam, _1)); ++ bind (&ThreadIndexListView::multi_key_handler, this, MSpam, std::placeholders::_1)); + + multi_keys.register_key ("+", + "thread_index.multi.tag", + "Tag", +- bind (&ThreadIndexListView::multi_key_handler, this, MTag, _1)); ++ bind (&ThreadIndexListView::multi_key_handler, this, MTag, std::placeholders::_1)); + + + multi_keys.register_key ("C-m", + "thread_index.multi.mute", + "Toggle mute", +- bind (&ThreadIndexListView::multi_key_handler, this, MMute, _1)); ++ bind (&ThreadIndexListView::multi_key_handler, this, MMute, std::placeholders::_1)); + + multi_keys.register_key ("t", + "thread_index.multi.toggle", + "Toggle marked", +- bind (&ThreadIndexListView::multi_key_handler, this, MToggle, _1)); ++ bind (&ThreadIndexListView::multi_key_handler, this, MToggle, std::placeholders::_1)); + + keys->register_key (Key (GDK_KEY_semicolon), + "thread_index.multi", +-- +2.29.2 + |