diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-02-26 19:30:14 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-02-28 13:26:13 +0100 |
commit | ed213b992db438a99f8384133b7e183c3b3e2b6a (patch) | |
tree | 6f7712d953129b4150b2d87f6cc9586dbf2e0a15 /media-sound/pamix/files | |
parent | media-gfx/hugin: Drop 2019.2.0 (diff) | |
download | gentoo-ed213b992db438a99f8384133b7e183c3b3e2b6a.tar.gz gentoo-ed213b992db438a99f8384133b7e183c3b3e2b6a.tar.bz2 gentoo-ed213b992db438a99f8384133b7e183c3b3e2b6a.zip |
media-sound/pamix: Various upstream fixes and port 1.6 to EAPI-7
Disable running git in release version.
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-sound/pamix/files')
3 files changed, 91 insertions, 0 deletions
diff --git a/media-sound/pamix/files/pamix-1.6-fix-ncurses-freezing.patch b/media-sound/pamix/files/pamix-1.6-fix-ncurses-freezing.patch new file mode 100644 index 000000000000..61c34f0a4202 --- /dev/null +++ b/media-sound/pamix/files/pamix-1.6-fix-ncurses-freezing.patch @@ -0,0 +1,23 @@ +From 1e45f226ef35b649cb2889e23ad90ad39d0db947 Mon Sep 17 00:00:00 2001 +From: Joshua Jensch <jenschjoshua@gmail.com> +Date: Sat, 14 Mar 2020 03:11:58 +0100 +Subject: [PATCH] Use 25ms as escdelay + +By default ncurses will use 1000ms, which will cause freezing. +Fixes #44 +--- + src/pamix.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/pamix.cpp b/src/pamix.cpp +index d5f7ead..368639d 100644 +--- a/src/pamix.cpp ++++ b/src/pamix.cpp +@@ -206,6 +206,7 @@ int main(int argc, char **argv) { + initscr(); + init_colors(); + nodelay(stdscr, true); ++ set_escdelay(25); + curs_set(0); + keypad(stdscr, true); + meta(stdscr, true); diff --git a/media-sound/pamix/files/pamix-1.6-fix-output-scrolling.patch b/media-sound/pamix/files/pamix-1.6-fix-output-scrolling.patch new file mode 100644 index 000000000000..6e4b94d05669 --- /dev/null +++ b/media-sound/pamix/files/pamix-1.6-fix-output-scrolling.patch @@ -0,0 +1,23 @@ +From c15831c99bbef1a25710e5a34208809dc9160e86 Mon Sep 17 00:00:00 2001 +From: Joshua Jensch <jenschjoshua@gmail.com> +Date: Sun, 1 Dec 2019 16:23:12 +0100 +Subject: [PATCH] fix bug preventing entries from being scrolled. + +resolves #41 +--- + src/pamix_ui.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/pamix_ui.cpp b/src/pamix_ui.cpp +index 16a2e34..c1acb2b 100644 +--- a/src/pamix_ui.cpp ++++ b/src/pamix_ui.cpp +@@ -265,7 +265,7 @@ pamix_entry_iter_t pamix_ui::getSelectedEntryIterator() { + } + + void pamix_ui::adjustDisplayedEntries() { +- if (!m_Entries->empty()) ++ if (m_Entries->empty()) + return; + if (m_SelectedEntry >= m_NumSkippedEntries && m_SelectedEntry < m_NumSkippedEntries + m_NumDrawnEntries) + return; diff --git a/media-sound/pamix/files/pamix-1.6-xdgconfigdir.patch b/media-sound/pamix/files/pamix-1.6-xdgconfigdir.patch new file mode 100644 index 000000000000..7de00460316d --- /dev/null +++ b/media-sound/pamix/files/pamix-1.6-xdgconfigdir.patch @@ -0,0 +1,45 @@ +From 72d8189b942f6e95d8c946fea2faaee9a74f4b35 Mon Sep 17 00:00:00 2001 +From: nilninull <nilninull@gmail.com> +Date: Wed, 3 Jan 2018 16:32:27 +0900 +Subject: [PATCH] FIX: default XDG_CONFIG_DIRS directory + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 38605f2..7677e43 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -25,7 +25,7 @@ ELSE () + ENDIF () + + add_executable(pamix ${pamix_SRC}) +-install(FILES pamix.conf DESTINATION /etc) ++install(FILES pamix.conf DESTINATION /etc/xdg) + install(TARGETS pamix DESTINATION bin) + install(FILES man/pamix.1 DESTINATION share/man/man1) + +From e3bf53d9a841c3559880863c8c29c2919ab5b425 Mon Sep 17 00:00:00 2001 +From: Joshua Jensch <jenschjoshua@gmail.com> +Date: Sat, 6 Jan 2018 07:05:23 +0100 +Subject: [PATCH] change default XDG_CONFIG_DIRS value when searching config + file + +--- + src/pamix.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/pamix.cpp b/src/pamix.cpp +index 3ea2730..d5f7ead 100644 +--- a/src/pamix.cpp ++++ b/src/pamix.cpp +@@ -130,7 +130,7 @@ void loadConfiguration() { + + char *xdg_config_dirs = getenv("XDG_CONFIG_DIRS"); + +- path = xdg_config_dirs ? xdg_config_dirs : "/etc"; ++ path = xdg_config_dirs ? xdg_config_dirs : "/etc/xdg"; + path += "/pamix.conf"; + size_t cpos = path.find(':'); + while (cpos != std::string::npos) { |