1 |
commit: 2756b165ad00e4e78bfe5b02a3c0f5bd6f6be82c |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 21 11:08:36 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 21 11:08:51 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2756b165 |
7 |
|
8 |
media-sound/audacity: Fixed compilation with USE="-portmixer" |
9 |
|
10 |
Closes: https://bugs.gentoo.org/624264 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
|
13 |
media-sound/audacity/audacity-2.2.2.ebuild | 9 +++- |
14 |
.../audacity/files/audacity-2.2.1-portmixer.patch | 36 ++++++++++++++++ |
15 |
.../audacity/files/audacity-2.2.2-automake.patch | 48 ++++++++++++++++++++++ |
16 |
3 files changed, 91 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/media-sound/audacity/audacity-2.2.2.ebuild b/media-sound/audacity/audacity-2.2.2.ebuild |
19 |
index cb2b8ea861f..5c71e713a5d 100644 |
20 |
--- a/media-sound/audacity/audacity-2.2.2.ebuild |
21 |
+++ b/media-sound/audacity/audacity-2.2.2.ebuild |
22 |
@@ -2,7 +2,7 @@ |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=5 |
26 |
-inherit eutils gnome2-utils wxwidgets xdg-utils |
27 |
+inherit autotools eutils gnome2-utils wxwidgets xdg-utils |
28 |
|
29 |
MY_P="${PN}-minsrc-${PV}" |
30 |
DOC_PV="${PV}" |
31 |
@@ -50,11 +50,16 @@ REQUIRED_USE="soundtouch? ( midi )" |
32 |
S="${WORKDIR}/${MY_P}-rc1" |
33 |
|
34 |
PATCHES=( |
35 |
- "${FILESDIR}/${PN}-2.2.2-midi.patch" |
36 |
+ "${FILESDIR}/${PN}-2.2.1-portmixer.patch" #624264 |
37 |
+ "${FILESDIR}/${PN}-2.2.2-automake.patch" # or else eautoreconf breaks |
38 |
+ "${FILESDIR}/${PN}-2.2.2-midi.patch" #637110 |
39 |
) |
40 |
|
41 |
src_prepare() { |
42 |
epatch "${PATCHES[@]}" |
43 |
+ |
44 |
+ # needed because of portmixer patch |
45 |
+ eautoreconf |
46 |
} |
47 |
|
48 |
src_configure() { |
49 |
|
50 |
diff --git a/media-sound/audacity/files/audacity-2.2.1-portmixer.patch b/media-sound/audacity/files/audacity-2.2.1-portmixer.patch |
51 |
new file mode 100644 |
52 |
index 00000000000..0df43f5c07a |
53 |
--- /dev/null |
54 |
+++ b/media-sound/audacity/files/audacity-2.2.1-portmixer.patch |
55 |
@@ -0,0 +1,36 @@ |
56 |
+https://bugs.gentoo.org/624264 |
57 |
+ |
58 |
+Patch by Vladimir |
59 |
+ |
60 |
+--- audacity-minsrc-2.2.1-rc3/configure.ac |
61 |
++++ audacity-minsrc-2.2.1-rc3/configure.ac |
62 |
+@@ -540,7 +540,7 @@ |
63 |
+ [compile with PortMixer [default=yes]])], |
64 |
+ use_portmixer=$withval, |
65 |
+ use_portmixer="yes") |
66 |
+- |
67 |
++AM_CONDITIONAL([USE_PORTMIXER], [test "$use_portmixer" = yes]) |
68 |
+ |
69 |
+ AC_CANONICAL_HOST |
70 |
+ |
71 |
+--- audacity-minsrc-2.2.1-rc3/lib-src/Makefile.am |
72 |
++++ audacity-minsrc-2.2.1-rc3/lib-src/Makefile.am |
73 |
+@@ -92,7 +92,6 @@ |
74 |
+ libsoxr \ |
75 |
+ lib-widget-extra \ |
76 |
+ lv2 \ |
77 |
+- portmixer \ |
78 |
+ portsmf \ |
79 |
+ sbsms \ |
80 |
+ $(NULL) |
81 |
+@@ -156,8 +155,10 @@ |
82 |
+ SUBDIRS += portaudio-v19 |
83 |
+ endif |
84 |
+ |
85 |
++if USE_PORTMIXER |
86 |
+ # Note: portmixer needs to be linked against (the local or system) portaudio. |
87 |
+ SUBDIRS += portmixer |
88 |
++endif |
89 |
+ |
90 |
+ if USE_LOCAL_PORTSMF |
91 |
+ SUBDIRS += portsmf |
92 |
|
93 |
diff --git a/media-sound/audacity/files/audacity-2.2.2-automake.patch b/media-sound/audacity/files/audacity-2.2.2-automake.patch |
94 |
new file mode 100644 |
95 |
index 00000000000..56343e3ede2 |
96 |
--- /dev/null |
97 |
+++ b/media-sound/audacity/files/audacity-2.2.2-automake.patch |
98 |
@@ -0,0 +1,48 @@ |
99 |
+Remove subdirs that are non-exisitng in the tarball |
100 |
+or else autoreconf breaks. |
101 |
+ |
102 |
+--- audacity-minsrc-2.2.2-rc1/lib-src/Makefile.am |
103 |
++++ audacity-minsrc-2.2.2-rc1/lib-src/Makefile.am |
104 |
+@@ -107,18 +107,6 @@ |
105 |
+ SUBDIRS = FileDialog |
106 |
+ OPTIONAL_SUBDIRS = |
107 |
+ |
108 |
+-if USE_LOCAL_EXPAT |
109 |
+-OPTIONAL_SUBDIRS += expat |
110 |
+-endif |
111 |
+- |
112 |
+-if USE_LOCAL_LIBID3TAG |
113 |
+-OPTIONAL_SUBDIRS += libid3tag |
114 |
+-endif |
115 |
+- |
116 |
+-if USE_LOCAL_LIBMAD |
117 |
+-OPTIONAL_SUBDIRS += libmad |
118 |
+-endif |
119 |
+- |
120 |
+ if USE_LOCAL_LIBNYQUIST |
121 |
+ SUBDIRS += libnyquist |
122 |
+ endif |
123 |
+@@ -131,23 +119,10 @@ |
124 |
+ OPTIONAL_SUBDIRS += libsoxr |
125 |
+ endif |
126 |
+ |
127 |
+-if USE_LOCAL_LIBSOUNDTOUCH |
128 |
+-OPTIONAL_SUBDIRS += soundtouch |
129 |
+-endif |
130 |
+- |
131 |
+ if USE_LOCAL_LIBTWOLAME |
132 |
+ OPTIONAL_SUBDIRS += twolame |
133 |
+ endif |
134 |
+ |
135 |
+-if USE_LOCAL_LIBVORBIS |
136 |
+-OPTIONAL_SUBDIRS += libogg libvorbis |
137 |
+-endif |
138 |
+- |
139 |
+-if USE_LOCAL_LIBFLAC |
140 |
+-# Note: libflac needs to be linked against (the local or system) libogg. |
141 |
+-OPTIONAL_SUBDIRS += libflac |
142 |
+-endif |
143 |
+- |
144 |
+ if USE_LOCAL_LV2 |
145 |
+ SUBDIRS += lv2 |
146 |
+ endif |