1 |
commit: 94e42c7ad4ce63ee3c85d7a6aa136992dd9a0e07 |
2 |
Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 26 12:35:14 2022 +0000 |
4 |
Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 26 12:36:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94e42c7a |
7 |
|
8 |
media-sound/deadbeef: 1.9.1 version bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/851687 |
11 |
Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org> |
12 |
|
13 |
media-sound/deadbeef/Manifest | 1 + |
14 |
media-sound/deadbeef/deadbeef-1.9.1.ebuild | 191 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 192 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/deadbeef/Manifest b/media-sound/deadbeef/Manifest |
18 |
index 0ca8958aee29..315ce3f2e738 100644 |
19 |
--- a/media-sound/deadbeef/Manifest |
20 |
+++ b/media-sound/deadbeef/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST deadbeef-1.8.8.tar.bz2 5083407 BLAKE2B 69fd2cbaf131b3e44b426163ce6a83479bb1aff0e088c4beea09d747750f6f20b1e297eab1dd1ae0446d2af0aaf28fe0cc7c9f9e3e73fe031d369ba2f5d809ca SHA512 399f0e70eca5e102a9e73ff03199c89c6f28f3e0da96e793316d1af83f00e71f09f6cc81a3fd0b0f0d52fe9e0195a3b9ffb0cf7e7708c3ea7085f33a5ec08b47 |
23 |
+DIST deadbeef-1.9.1.tar.bz2 5136384 BLAKE2B 6e8314728b824b182ecb356d9a9cb09364650f6ca6b5e5d2f7077fc048fe62284e4959910a4cf982fd79893c503044d02417633713d0dcf34e93128aff22692e SHA512 2f959fb139078bbde3c1183019545ed3979b3c5dfc051794ea7a5ccf166156acc8d5dface3169ec705059f487d47c9b314c5400770a7572c22fbd0b903eefc5a |
24 |
|
25 |
diff --git a/media-sound/deadbeef/deadbeef-1.9.1.ebuild b/media-sound/deadbeef/deadbeef-1.9.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..4ff8f9b85bef |
28 |
--- /dev/null |
29 |
+++ b/media-sound/deadbeef/deadbeef-1.9.1.ebuild |
30 |
@@ -0,0 +1,191 @@ |
31 |
+# Copyright 2021-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit autotools xdg flag-o-matic toolchain-funcs plocale |
37 |
+ |
38 |
+DESCRIPTION="DeaDBeeF is a modular audio player similar to foobar2000" |
39 |
+HOMEPAGE="https://deadbeef.sourceforge.io/" |
40 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
41 |
+ |
42 |
+LICENSE=" |
43 |
+ GPL-2 |
44 |
+ LGPL-2.1 |
45 |
+ wavpack? ( BSD ) |
46 |
+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~riscv ~x86" |
49 |
+IUSE="aac alsa cdda converter cover dts ffmpeg flac +hotkeys lastfm mp3 musepack nls notify nullout opus oss pulseaudio sc68 shellexec +supereq threads vorbis wavpack" |
50 |
+ |
51 |
+REQUIRED_USE=" |
52 |
+ || ( alsa oss pulseaudio nullout ) |
53 |
+" |
54 |
+ |
55 |
+DEPEND=" |
56 |
+ x11-libs/gtk+:3 |
57 |
+ net-misc/curl:0= |
58 |
+ dev-libs/jansson:= |
59 |
+ aac? ( media-libs/faad2 ) |
60 |
+ alsa? ( media-libs/alsa-lib ) |
61 |
+ cdda? ( |
62 |
+ dev-libs/libcdio:0= |
63 |
+ media-libs/libcddb |
64 |
+ dev-libs/libcdio-paranoia:0= |
65 |
+ ) |
66 |
+ cover? ( |
67 |
+ media-libs/imlib2[jpeg,png] |
68 |
+ ) |
69 |
+ dts? ( media-libs/libdca ) |
70 |
+ ffmpeg? ( media-video/ffmpeg ) |
71 |
+ flac? ( |
72 |
+ media-libs/flac |
73 |
+ media-libs/libogg |
74 |
+ ) |
75 |
+ mp3? ( media-sound/mpg123 ) |
76 |
+ musepack? ( media-sound/musepack-tools ) |
77 |
+ nls? ( virtual/libintl ) |
78 |
+ notify? ( |
79 |
+ sys-apps/dbus |
80 |
+ ) |
81 |
+ opus? ( media-libs/opusfile ) |
82 |
+ pulseaudio? ( media-sound/pulseaudio ) |
83 |
+ vorbis? ( media-libs/libvorbis ) |
84 |
+ wavpack? ( media-sound/wavpack ) |
85 |
+ dev-libs/libdispatch |
86 |
+" |
87 |
+ |
88 |
+RDEPEND="${DEPEND}" |
89 |
+BDEPEND=" |
90 |
+ dev-util/intltool |
91 |
+ sys-devel/gettext |
92 |
+ sys-devel/clang |
93 |
+ sys-devel/llvm |
94 |
+ virtual/pkgconfig |
95 |
+" |
96 |
+ |
97 |
+PATCHES=( |
98 |
+ "${FILESDIR}/deadbeef-use-ffmpeg-plugin-for-ape-by-default.patch" |
99 |
+) |
100 |
+ |
101 |
+src_prepare() { |
102 |
+ default |
103 |
+ |
104 |
+ drop_from_linguas() { |
105 |
+ sed "/${1}/d" -i "${S}/po/LINGUAS" || die |
106 |
+ } |
107 |
+ |
108 |
+ drop_and_stub() { |
109 |
+ rm -rf "${1}" |
110 |
+ mkdir "${1}" |
111 |
+ cat > "${1}/Makefile.in" <<-EOF |
112 |
+ all: nothing |
113 |
+ install: nothing |
114 |
+ nothing: |
115 |
+ EOF |
116 |
+ } |
117 |
+ |
118 |
+ plocale_for_each_disabled_locale drop_from_linguas || die |
119 |
+ |
120 |
+ eautopoint --force |
121 |
+ eautoreconf |
122 |
+ |
123 |
+ # Get rid of bundled gettext. |
124 |
+ drop_and_stub "${S}/intl" |
125 |
+ |
126 |
+ # Plugins that are undesired for whatever reason, candidates for unbundling and such. |
127 |
+ for i in adplug alac dumb ffap mms gme mono2stereo psf shn sid soundtouch wma; do |
128 |
+ drop_and_stub "${S}/plugins/${i}" |
129 |
+ done |
130 |
+ |
131 |
+ rm -rf "${S}/plugins/rg_scanner/ebur128" |
132 |
+} |
133 |
+ |
134 |
+src_configure () { |
135 |
+ if ! tc-is-clang; then |
136 |
+ AR=llvm-ar |
137 |
+ CC=${CHOST}-clang |
138 |
+ CXX=${CHOST}-clang++ |
139 |
+ NM=llvm-nm |
140 |
+ RANLIB=llvm-ranlib |
141 |
+ |
142 |
+ strip-unsupported-flags |
143 |
+ fi |
144 |
+ |
145 |
+ export HOST_CC="$(tc-getBUILD_CC)" |
146 |
+ export HOST_CXX="$(tc-getBUILD_CXX)" |
147 |
+ tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG |
148 |
+ |
149 |
+ local myconf=( |
150 |
+ "--disable-static" |
151 |
+ "--disable-staticlink" |
152 |
+ "--disable-portable" |
153 |
+ "--disable-rpath" |
154 |
+ |
155 |
+ "--disable-libmad" |
156 |
+ "--disable-gtk2" |
157 |
+ "--disable-adplug" |
158 |
+ "--disable-coreaudio" |
159 |
+ "--disable-dumb" |
160 |
+ "--disable-alac" |
161 |
+ "--disable-ffap" |
162 |
+ "--disable-gme" |
163 |
+ "--disable-mms" |
164 |
+ "--disable-mono2stereo" |
165 |
+ "--disable-psf" |
166 |
+ "--disable-rgscanner" |
167 |
+ "--disable-shn" |
168 |
+ "--disable-sid" |
169 |
+ "--disable-sndfile" |
170 |
+ "--disable-soundtouch" |
171 |
+ "--disable-src" |
172 |
+ "--disable-tta" |
173 |
+ "--disable-vfs-zip" |
174 |
+ "--disable-vtx" |
175 |
+ "--disable-wildmidi" |
176 |
+ "--disable-wma" |
177 |
+ |
178 |
+ "$(use_enable alsa)" |
179 |
+ "$(use_enable oss)" |
180 |
+ "$(use_enable pulseaudio pulse)" |
181 |
+ "$(use_enable mp3)" |
182 |
+ "$(use_enable mp3 libmpg123)" |
183 |
+ "$(use_enable nls)" |
184 |
+ "$(use_enable vorbis)" |
185 |
+ "$(use_enable threads)" |
186 |
+ "$(use_enable flac)" |
187 |
+ "$(use_enable supereq)" |
188 |
+ "$(use_enable cdda)" |
189 |
+ "$(use_enable cdda cdda-paranoia)" |
190 |
+ "$(use_enable aac)" |
191 |
+ "$(use_enable cover artwork)" |
192 |
+ "$(use_enable cover artwork-network)" |
193 |
+ "$(use_enable dts dca)" |
194 |
+ "$(use_enable ffmpeg)" |
195 |
+ "$(use_enable converter)" |
196 |
+ "$(use_enable musepack)" |
197 |
+ "$(use_enable notify)" |
198 |
+ "$(use_enable nullout)" |
199 |
+ "$(use_enable opus)" |
200 |
+ "$(use_enable pulseaudio pulse)" |
201 |
+ "$(use_enable sc68)" |
202 |
+ "$(use_enable shellexec)" |
203 |
+ "$(use_enable shellexec shellexecui)" |
204 |
+ "$(use_enable lastfm lfm)" |
205 |
+ "$(use_enable wavpack)" |
206 |
+ |
207 |
+ "--enable-gtk3" |
208 |
+ "--enable-vfs-curl" |
209 |
+ "--enable-shared" |
210 |
+ "--enable-m3u" |
211 |
+ "--enable-pltbrowser" |
212 |
+ ) |
213 |
+ |
214 |
+ econf "${myconf[@]}" |
215 |
+} |
216 |
+ |
217 |
+src_install() { |
218 |
+ default |
219 |
+ |
220 |
+ find "${ED}" -name '*.la' -delete || die |
221 |
+} |