Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/audacity/
Date: Fri, 30 Oct 2015 15:21:15
Message-Id: 1446213318.4d6221c436747e6dfd39db9c91bb168b1f6d7f36.aballier@gentoo
1 commit: 4d6221c436747e6dfd39db9c91bb168b1f6d7f36
2 Author: Marc Joliet <marcec <AT> gmx <DOT> de>
3 AuthorDate: Mon Oct 26 10:17:31 2015 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 30 13:55:18 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d6221c4
7
8 media-sound/audacity: fix libsamplerate/libsox dep
9
10 Starting with audacity 2.0.3, only *one* resampling library can be enabled at a
11 time. Due to this, the way the USE flags are currently handled make it
12 impossible to use the libsoxr library. This commit does two things to remedy
13 this:
14
15 - never enable libresample (which isn't recommended anymore), and
16 - drop the libsoxr USE flag so that the libsamplerate/libsoxr choice is
17 controlled only through the libsamplerate USE flag, thus allowing only one
18 choice, which reflects the way the build system works.
19
20 These two minimal changes make it possible to properly select between the two
21 recommended resampling libraries.
22
23 Gentoo-bug: 536208
24 Signed-off-by: Marc Joliet <marcec <AT> gmx.de>
25
26 media-sound/audacity/audacity-2.0.5-r1.ebuild | 101 ++++++++++++++++++++++++++
27 1 file changed, 101 insertions(+)
28
29 diff --git a/media-sound/audacity/audacity-2.0.5-r1.ebuild b/media-sound/audacity/audacity-2.0.5-r1.ebuild
30 new file mode 100644
31 index 0000000..50f9262
32 --- /dev/null
33 +++ b/media-sound/audacity/audacity-2.0.5-r1.ebuild
34 @@ -0,0 +1,101 @@
35 +# Copyright 1999-2015 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=5
40 +
41 +inherit eutils wxwidgets autotools versionator
42 +
43 +MY_PV=$(replace_version_separator 3 -)
44 +MY_P="${PN}-src-${MY_PV}"
45 +MY_T="${PN}-minsrc-${MY_PV}"
46 +DESCRIPTION="Free crossplatform audio editor"
47 +HOMEPAGE="http://web.audacityteam.org/"
48 +SRC_URI="mirror://gentoo/${MY_T}.tar.xz"
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86"
53 +IUSE="alsa ffmpeg flac id3tag jack ladspa libsamplerate midi mp3 sbsms soundtouch twolame vamp vorbis"
54 +RESTRICT="test"
55 +
56 +COMMON_DEPEND="x11-libs/wxGTK:2.8[X]
57 + >=app-arch/zip-2.3
58 + >=media-libs/libsndfile-1.0.0
59 + dev-libs/expat
60 + libsamplerate? ( >=media-libs/libsamplerate-0.1.2 )
61 + !libsamplerate? ( media-libs/soxr )
62 + vorbis? ( >=media-libs/libvorbis-1.0 )
63 + mp3? ( >=media-libs/libmad-0.14.2b )
64 + flac? ( >=media-libs/flac-1.2.0[cxx] )
65 + id3tag? ( media-libs/libid3tag )
66 + sbsms? ( media-libs/libsbsms )
67 + soundtouch? ( >=media-libs/libsoundtouch-1.3.1 )
68 + vamp? ( >=media-libs/vamp-plugin-sdk-2.0 )
69 + twolame? ( media-sound/twolame )
70 + ffmpeg? ( virtual/ffmpeg )
71 + alsa? ( media-libs/alsa-lib )
72 + jack? ( >=media-sound/jack-audio-connection-kit-0.103.0 )"
73 +# Crashes at startup here...
74 +# lv2? ( >=media-libs/slv2-0.6.0 )
75 +# Disabled upstream ATM
76 +# ladspa? ( >=media-libs/liblrdf-0.4.0 )
77 +
78 +RDEPEND="${COMMON_DEPEND}
79 + mp3? ( >=media-sound/lame-3.70 )"
80 +DEPEND="${COMMON_DEPEND}
81 + app-arch/xz-utils
82 + virtual/pkgconfig"
83 +
84 +REQUIRED_USE="soundtouch? ( midi )"
85 +
86 +S=${WORKDIR}/${MY_P}
87 +
88 +src_prepare() {
89 + epatch "${FILESDIR}"/${PN}-1.3.13-automagic.patch
90 +
91 + AT_M4DIR="${S}/m4" eautoreconf
92 +}
93 +
94 +src_configure() {
95 + WX_GTK_VER="2.8"
96 + need-wxwidgets unicode
97 +
98 + # * always use system libraries if possible
99 + # * options listed in the order that configure --help lists them
100 + # * use libsoxr if libsamplerate is not requested
101 + econf \
102 + --enable-unicode \
103 + --enable-nyquist \
104 + --disable-dynamic-loading \
105 + $(use_enable ladspa) \
106 + --with-libsndfile=system \
107 + --with-expat=system \
108 + $(use_with libsamplerate) \
109 + $(use_with !libsamplerate libsoxr) \
110 + $(use_with vorbis libvorbis) \
111 + $(use_with mp3 libmad) \
112 + $(use_with flac libflac) \
113 + $(use_with id3tag libid3tag) \
114 + $(use_with sbsms) \
115 + $(use_with soundtouch) \
116 + $(use_with vamp libvamp) \
117 + $(use_with twolame libtwolame) \
118 + $(use_with ffmpeg) \
119 + $(use_with midi) \
120 + $(use_with alsa) \
121 + $(use_with jack)
122 +}
123 +
124 +# $(use_with lv2 slv2) \
125 +# $(use_with ladspa liblrdf) \
126 +
127 +src_install() {
128 + emake DESTDIR="${D}" install
129 +
130 + # Remove bad doc install
131 + rm -rf "${D}"/usr/share/doc
132 +
133 + # Install our docs
134 + dodoc README.txt
135 +}