commit: a39759e8a2d0d5b2398db5861e32106e4d273176
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 20 11:58:50 2019 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Mar 20 12:29:33 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a39759e8
media-sound/cmus: Add opus file support
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
media-sound/cmus/cmus-2.8.0.ebuild | 1 +
media-sound/cmus/files/cmus-2.8.0-opus.patch | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+)
diff --git a/media-sound/cmus/cmus-2.8.0.ebuild
b/media-sound/cmus/cmus-2.8.0.ebuild
index 22dddaf4873..7ad9b48909d 100644
--- a/media-sound/cmus/cmus-2.8.0.ebuild
+++ b/media-sound/cmus/cmus-2.8.0.ebuild
@@ -69,6 +69,7 @@ DOCS=( AUTHORS README.md )
PATCHES=(
"${FILESDIR}/${P}-elogind.patch"
"${FILESDIR}/${P}-ffmpeg-deprecations.patch"
+ "${FILESDIR}/${P}-opus.patch"
)
S="${WORKDIR}/${P/_/-}"
diff --git a/media-sound/cmus/files/cmus-2.8.0-opus.patch
b/media-sound/cmus/files/cmus-2.8.0-opus.patch
new file mode 100644
index 00000000000..ea95fa8536c
--- /dev/null
+++ b/media-sound/cmus/files/cmus-2.8.0-opus.patch
@@ -0,0 +1,22 @@
+From 0be981476e019e9fddb5529a73aadf004e94656b Mon Sep 17 00:00:00 2001
+From: tomty89 <[email protected]>
+Date: Tue, 12 Feb 2019 18:55:09 +0800
+Subject: [PATCH] ip/ffmpeg: enable opus support (#865)
+
+---
+ ip/ffmpeg.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ip/ffmpeg.c b/ip/ffmpeg.c
+index 04b916cc..427257c7 100644
+--- a/ip/ffmpeg.c
++++ b/ip/ffmpeg.c
+@@ -519,7 +519,7 @@ const int ip_priority = 30;
+ const char *const ip_extensions[] = {
+ "aa", "aac", "ac3", "aif", "aifc", "aiff", "ape", "au", "fla", "flac",
+ "m4a", "m4b", "mka", "mkv", "mp+", "mp2", "mp3", "mp4", "mpc", "mpp",
+- "ogg", "shn", "tak", "tta", "wav", "webm", "wma", "wv",
++ "ogg", "opus", "shn", "tak", "tta", "wav", "webm", "wma", "wv",
+ #ifdef USE_FALLBACK_IP
+ "*",
+ #endif