media-sound/cmus: Add opus file support
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 20 Mar 2019 11:58:50 +0000 (12:58 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 20 Mar 2019 12:29:33 +0000 (13:29 +0100)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-sound/cmus/cmus-2.8.0.ebuild
media-sound/cmus/files/cmus-2.8.0-opus.patch [new file with mode: 0644]

index 22dddaf487371a1d348eba267cb2bf9d6a6c3554..7ad9b48909d2def4f2fb32df19987e5370087e4f 100644 (file)
@@ -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 (file)
index 0000000..ea95fa8
--- /dev/null
@@ -0,0 +1,22 @@
+From 0be981476e019e9fddb5529a73aadf004e94656b Mon Sep 17 00:00:00 2001
+From: tomty89 <tom.ty89@gmail.com>
+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