1 |
commit: 5a8d2f6d2fd27971422031f4a8311b5317288540 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 2 10:54:24 2020 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 2 10:54:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a8d2f6d |
7 |
|
8 |
media-sound/audacity: bump to 2.4.2 + switched to cmake |
9 |
|
10 |
Closes: https://bugs.gentoo.org/725268 |
11 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
12 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
13 |
|
14 |
media-sound/audacity/Manifest | 2 + |
15 |
media-sound/audacity/audacity-2.4.2.ebuild | 124 +++++++++++++++++++++ |
16 |
.../files/audacity-2.4.2-fix-gettimeofday.patch | 12 ++ |
17 |
.../files/audacity-2.4.2-fix-metainfo.patch | 12 ++ |
18 |
...udacity-2.4.2-fix-vertical-track-resizing.patch | 14 +++ |
19 |
media-sound/audacity/metadata.xml | 2 + |
20 |
6 files changed, 166 insertions(+) |
21 |
|
22 |
diff --git a/media-sound/audacity/Manifest b/media-sound/audacity/Manifest |
23 |
index 910df0fff27..8242e7c042b 100644 |
24 |
--- a/media-sound/audacity/Manifest |
25 |
+++ b/media-sound/audacity/Manifest |
26 |
@@ -1,6 +1,8 @@ |
27 |
DIST Audacity-2.3.2.tar.gz 61972597 BLAKE2B 968c3d877392af92e2a23d8357fe65c3eb608122185d037e741ed6165d1acb3af70fc15dce63140eff14cd032fb3e3dc1b8b4f7bca9016f8e0e56aaef8a27802 SHA512 a59d6e9e974d5f78f5ca561e3bea31fc1b3e88f9ea60b2df7ce8bcec264d886f3fdc8f20030e11a86daff8ffeb735850b5e5f73c45fbef0bfcc58692423e7cd0 |
28 |
DIST Audacity-2.3.3.tar.gz 62073352 BLAKE2B a87f9ada8dd2ffeda86fecd194333dc53b5f1fe086c179dd904cebc912f5bff5a7d4be0c2584a6633a7dc4dadabc3ad438b45ab5fbbee573cc39ee91dfd62846 SHA512 0789d5bc27933c688b8c99e0d9d9ca65f3b0c59cf74a235feee094a1815bdb59a32a4f50d2938b8fb9d72b0c5ba88451d02f90c5163931774a2088463562c5ef |
29 |
+DIST Audacity-2.4.2.tar.gz 61248430 BLAKE2B bb7e31e22d2a09c38767b019ed5c2c2be31741594715d73452fc4622d171a6209e87009b6f820873cc1cff2f6b85547a3dea0a2d8d4dd7195617509e571ee9b8 SHA512 0d9cdabf5ba2c7207e8d8e4a8bdfc3e7d32277386436ecb480e3ff781720f5449a56b310ba91c78ca67afb752e2ab736abd5b7ce40d19d153bfc4a2067343a3d |
30 |
DIST audacity-manual-2.2.2.zip 13501474 BLAKE2B f0289f22dc4134b31f38d4acee3bda9f915829842030f8454cce1801377d177c32a7f35077673ce7db0a0f059a644d8146457e6a6377c5f6abc01c11da6a4f53 SHA512 a34ded796157d763fa024e0a235ecce7c67a68bcce86b487f8c022d45d8337fe550e40f56df4155a16293b974511d0bcf130cb086b3594bc0c42d9d0f84f1e86 |
31 |
DIST audacity-manual-2.3.2.zip 21163508 BLAKE2B 6a0ec89567db63164e897aad21af6fb31557e2519640788c781b21e885c0f704174529d9abf3e8645ccb3bca0f7b987fa708b1ce64597b282357b823e8addd44 SHA512 5e541065236badfdc2331681e43dee2564f933c33a3a588806f189acc8d8285a2c60bf9bc0c7052c6cb23fa1ee29a9f5e0428540cd556901dcf896def1c7c0ac |
32 |
DIST audacity-manual-2.3.3.zip 15135177 BLAKE2B f281fea3344513152f0841e11e5dcdfea591d7dced046028fd67954e6a34a0f7bad41cb37215d4b784d92c6ee64038918e521e1117dc0ccbc0101404d1388c84 SHA512 2612396ef61aa6e07e0ff1cc5f473dcdc34d8a166f95a9e4986bf491e8b0502c08641d9ef4c64adc19c1b22fe21514afcc5c3bed585b49e7e7c3c851fe532cd4 |
33 |
+DIST audacity-manual-2.4.2.zip 22459298 BLAKE2B 001ca56f73c3c48f9b49b3b6478c6de6fb4c305fb869b11d93e41d5aee7ee45133bd7047c4d281fed4859d6c6061352dfaeb995e7b2602e42e09ab04e05e00dc SHA512 8afc7faffb0da87efe0c2cb64f8593777357252b4893ae0522ec7b37b4f7806ad9582ca9e4b751d085c2598aba6b580dacd805daa00b236a4ff8f6663a80135c |
34 |
DIST audacity-minsrc-2.2.2.tar.xz 8210700 BLAKE2B b887cff6994f2d5315b5d22b47d460a6b7c7b7af4f212585740a7534dc1345a8b3cda701a8541fabeef1aedf30cd336466798b2da4ef62ed010152540ee02d26 SHA512 8e52b4456a3a328a9933961746722ab5c545d17f7c05f3ae4aa83ba5d4f8323590ffa070de9462163362032b372aa48bc61fc96459e5565eec29a146b7a0351c |
35 |
|
36 |
diff --git a/media-sound/audacity/audacity-2.4.2.ebuild b/media-sound/audacity/audacity-2.4.2.ebuild |
37 |
new file mode 100644 |
38 |
index 00000000000..833ff268bdc |
39 |
--- /dev/null |
40 |
+++ b/media-sound/audacity/audacity-2.4.2.ebuild |
41 |
@@ -0,0 +1,124 @@ |
42 |
+# Copyright 1999-2020 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=7 |
46 |
+WX_GTK_VER="3.0-gtk3" |
47 |
+ |
48 |
+inherit cmake flag-o-matic wxwidgets xdg |
49 |
+ |
50 |
+MY_P="Audacity-${PV}" |
51 |
+DOC_PV="${PV}" |
52 |
+DESCRIPTION="Free crossplatform audio editor" |
53 |
+HOMEPAGE="https://web.audacityteam.org/" |
54 |
+# wget doesn't seem to work on FossHub links, so we mirror |
55 |
+SRC_URI="https://github.com/audacity/audacity/archive/${MY_P}.tar.gz |
56 |
+ doc? ( https://dev.gentoo.org/~fordfrog/distfiles/${PN}-manual-${DOC_PV}.zip )" |
57 |
+S="${WORKDIR}/${PN}-${MY_P}" |
58 |
+ |
59 |
+LICENSE="GPL-2" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~amd64 ~mips ~x86" |
62 |
+IUSE="alsa cpu_flags_x86_sse doc ffmpeg +flac id3tag jack +ladspa +lame |
63 |
+ +lv2 mad midi nls ogg oss portmidi +portmixer portsmf sbsms +soundtouch twolame vamp +vorbis +vst" |
64 |
+ |
65 |
+RESTRICT="test" |
66 |
+ |
67 |
+RDEPEND="dev-libs/expat |
68 |
+ media-libs/libsndfile |
69 |
+ media-libs/libsoundtouch |
70 |
+ media-libs/portaudio[alsa?] |
71 |
+ media-libs/soxr |
72 |
+ media-sound/lame |
73 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X] |
74 |
+ alsa? ( media-libs/alsa-lib ) |
75 |
+ ffmpeg? ( media-video/ffmpeg:= ) |
76 |
+ flac? ( media-libs/flac[cxx] ) |
77 |
+ id3tag? ( media-libs/libid3tag ) |
78 |
+ jack? ( virtual/jack ) |
79 |
+ lv2? ( |
80 |
+ dev-libs/serd |
81 |
+ dev-libs/sord |
82 |
+ media-libs/lilv |
83 |
+ media-libs/lv2 |
84 |
+ media-libs/sratom |
85 |
+ media-libs/suil |
86 |
+ ) |
87 |
+ mad? ( >=media-libs/libmad-0.15.1b ) |
88 |
+ ogg? ( media-libs/libogg ) |
89 |
+ portmidi? ( media-libs/portmidi ) |
90 |
+ sbsms? ( media-libs/libsbsms ) |
91 |
+ twolame? ( media-sound/twolame ) |
92 |
+ vamp? ( media-libs/vamp-plugin-sdk ) |
93 |
+ vorbis? ( media-libs/libvorbis ) |
94 |
+" |
95 |
+DEPEND="${RDEPEND}" |
96 |
+BDEPEND="app-arch/unzip |
97 |
+ virtual/pkgconfig |
98 |
+ nls? ( sys-devel/gettext ) |
99 |
+" |
100 |
+ |
101 |
+PATCHES=( |
102 |
+ "${FILESDIR}"/${PN}-2.3.3-Fix-building-against-system-portaudio.patch |
103 |
+ "${FILESDIR}/${P}-fix-vertical-track-resizing.patch" |
104 |
+ "${FILESDIR}/${P}-fix-gettimeofday.patch" |
105 |
+ "${FILESDIR}/${P}-fix-metainfo.patch" |
106 |
+) |
107 |
+ |
108 |
+src_prepare() { |
109 |
+ cmake_src_prepare |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ setup-wxwidgets |
114 |
+ append-cxxflags -std=gnu++14 |
115 |
+ |
116 |
+ # * always use system libraries if possible |
117 |
+ # * options listed in the order that cmake-gui lists them |
118 |
+ local mycmakeargs=( |
119 |
+# --disable-dynamic-loading |
120 |
+ -Daudacity_lib_preference=system |
121 |
+ -Daudacity_use_expat=system |
122 |
+ -Daudacity_use_ffmpeg=$(usex ffmpeg loaded off) |
123 |
+ -Daudacity_use_flac=$(usex flac system off) |
124 |
+ -Daudacity_use_id3tag=$(usex id3tag system off) |
125 |
+ -Daudacity_use_ladspa=$(usex ladspa) |
126 |
+ -Daudacity_use_lame=system |
127 |
+ -Daudacity_use_lv2=$(usex lv2 system off) |
128 |
+ -Daudacity_use_mad=$(usex mad system off) |
129 |
+ -Daudacity_use_midi=$(usex portmidi system off) |
130 |
+ -Daudacity_use_nyquist=local |
131 |
+ -Daudacity_use_ogg=$(usex ogg system off) |
132 |
+ -Daudacity_use_pa_alsa=$(usex alsa) |
133 |
+ -Daudacity_use_pa_jack=$(usex jack linked off) |
134 |
+ -Daudacity_use_pa_oss=$(usex oss) |
135 |
+ -Daudacity_use_pch=ON |
136 |
+ -Daudacity_use_portaudio=local # only 'local' option is present |
137 |
+ -Daudacity_use_portmixer=$(usex portmixer local off) |
138 |
+ -Daudacity_use_portsmf=$(usex portsmf local off) |
139 |
+ -Daudacity_use_sbsms=$(usex sbsms local off) # no 'system' option in configuration? |
140 |
+ -Daudacity_use_sndfile=system |
141 |
+ -Daudacity_use_soundtouch=system |
142 |
+ -Daudacity_use_soxr=system |
143 |
+ -Daudacity_use_twolame=$(usex twolame system off) |
144 |
+ -Daudacity_use_vamp=$(usex vamp system off) |
145 |
+ -Daudacity_use_vorbis=$(usex vorbis system off) |
146 |
+ -Daudacity_use_vst=$(usex vst) |
147 |
+ -Daudacity_use_wxwidgets=system |
148 |
+ ) |
149 |
+ |
150 |
+ cmake_src_configure |
151 |
+} |
152 |
+ |
153 |
+src_install() { |
154 |
+ cmake_src_install |
155 |
+ |
156 |
+ # Remove bad doc install |
157 |
+ rm -r "${ED}"/usr/share/doc || die |
158 |
+ |
159 |
+ if use doc ; then |
160 |
+ docinto html |
161 |
+ dodoc -r "${WORKDIR}"/help/manual/{m,man,manual} |
162 |
+ dodoc "${WORKDIR}"/help/manual/{favicon.ico,index.html,quick_help.html} |
163 |
+ dosym ../../doc/${PF}/html /usr/share/${PN}/help/manual |
164 |
+ fi |
165 |
+} |
166 |
|
167 |
diff --git a/media-sound/audacity/files/audacity-2.4.2-fix-gettimeofday.patch b/media-sound/audacity/files/audacity-2.4.2-fix-gettimeofday.patch |
168 |
new file mode 100644 |
169 |
index 00000000000..0e6e3e5d8cb |
170 |
--- /dev/null |
171 |
+++ b/media-sound/audacity/files/audacity-2.4.2-fix-gettimeofday.patch |
172 |
@@ -0,0 +1,12 @@ |
173 |
+diff --git a/src/AudioIO.cpp b/src/AudioIO.cpp |
174 |
+index 0187e39..28a5348 100644 |
175 |
+--- a/src/AudioIO.cpp |
176 |
++++ b/src/AudioIO.cpp |
177 |
+@@ -427,6 +427,7 @@ time warp info and AudioIOListener and whether the playback is looped. |
178 |
+ #include <math.h> |
179 |
+ #include <stdlib.h> |
180 |
+ #include <algorithm> |
181 |
++#include <sys/time.h> |
182 |
+ |
183 |
+ #ifdef __WXMSW__ |
184 |
+ #include <malloc.h> |
185 |
|
186 |
diff --git a/media-sound/audacity/files/audacity-2.4.2-fix-metainfo.patch b/media-sound/audacity/files/audacity-2.4.2-fix-metainfo.patch |
187 |
new file mode 100644 |
188 |
index 00000000000..09b9fd0e868 |
189 |
--- /dev/null |
190 |
+++ b/media-sound/audacity/files/audacity-2.4.2-fix-metainfo.patch |
191 |
@@ -0,0 +1,12 @@ |
192 |
+diff --git a/help/CMakeLists.txt b/help/CMakeLists.txt |
193 |
+index 43a7714..0e8a3d8 100755 |
194 |
+--- a/help/CMakeLists.txt |
195 |
++++ b/help/CMakeLists.txt |
196 |
+@@ -40,6 +40,6 @@ if( NOT "${CMAKE_GENERATOR}" MATCHES "Xcode|Visual Studio*" ) |
197 |
+ install( FILES "${_SRCDIR}/audacity.1" |
198 |
+ DESTINATION "${_MANDIR}/man1" ) |
199 |
+ install( FILES "${_SRCDIR}/audacity.appdata.xml" |
200 |
+- DESTINATION "${_DATADIR}/appdata" ) |
201 |
++ DESTINATION "${_DATADIR}/metainfo" ) |
202 |
+ endif() |
203 |
+ |
204 |
|
205 |
diff --git a/media-sound/audacity/files/audacity-2.4.2-fix-vertical-track-resizing.patch b/media-sound/audacity/files/audacity-2.4.2-fix-vertical-track-resizing.patch |
206 |
new file mode 100644 |
207 |
index 00000000000..71160b4365e |
208 |
--- /dev/null |
209 |
+++ b/media-sound/audacity/files/audacity-2.4.2-fix-vertical-track-resizing.patch |
210 |
@@ -0,0 +1,14 @@ |
211 |
+--- a/src/menus/ViewMenus.cpp 2020-05-27 17:49:20.645538517 +0500 |
212 |
++++ b/src/menus/ViewMenus.cpp 2020-05-27 17:49:26.844538493 +0500 |
213 |
+@@ -4,10 +4,10 @@ |
214 |
+ #include "../CommonCommandFlags.h" |
215 |
+ #include "../Menus.h" |
216 |
+ #include "../Prefs.h" |
217 |
++#include "../ProjectWindow.h" |
218 |
+ #include "../Project.h" |
219 |
+ #include "../ProjectHistory.h" |
220 |
+ #include "../ProjectSettings.h" |
221 |
+-#include "../ProjectWindow.h" |
222 |
+ #include "../Track.h" |
223 |
+ #include "../TrackInfo.h" |
224 |
+ #include "../TrackPanel.h" |
225 |
|
226 |
diff --git a/media-sound/audacity/metadata.xml b/media-sound/audacity/metadata.xml |
227 |
index b7c2db3a2bd..7f3a6ec835a 100644 |
228 |
--- a/media-sound/audacity/metadata.xml |
229 |
+++ b/media-sound/audacity/metadata.xml |
230 |
@@ -14,7 +14,9 @@ |
231 |
<flag name="id3tag">Enables ID3 tagging with id3tag library</flag> |
232 |
<flag name="lv2">Add support for Ladspa V2</flag> |
233 |
<flag name="midi">Enables MIDI support</flag> |
234 |
+ <flag name="portmidi">Enable support for MIDI via media-libs/portmidi</flag> |
235 |
<flag name="portmixer">Enable the internal portmixer feature</flag> |
236 |
+ <flag name="portsmf">Enable support for Portable Standard Midi File Library</flag> |
237 |
<flag name="sbsms">Enables sbsms library support for slower, more accurate |
238 |
pitch and tempo changing</flag> |
239 |
<flag name="soundtouch">Enables soundtouch library support for pitch and |