7 |
7 |
|
8 |
8 |
inherit cmake wxwidgets xdg
|
9 |
9 |
|
10 |
|
MY_P="Audacity-${PV}"
|
11 |
|
DOC_PV="${PV}"
|
12 |
10 |
DESCRIPTION="Free crossplatform audio editor"
|
13 |
11 |
HOMEPAGE="https://www.audacityteam.org/"
|
14 |
12 |
|
... | ... | |
17 |
15 |
# cmake-proxies/CMakeLists.txt and search for "ThreadPool".
|
18 |
16 |
MY_THREADPOOL_DATE=20140926
|
19 |
17 |
MY_THREADPOOL="https://raw.githubusercontent.com/progschj/ThreadPool/9a42ec1329f259a5f4881a291db1dcb8f2ad9040/ThreadPool.h -> progschj-ThreadPool-${MY_THREADPOOL_DATE}.h"
|
20 |
|
SRC_URI="https://github.com/audacity/audacity/archive/${MY_P}.tar.gz
|
21 |
|
doc? ( https://github.com/audacity/audacity-manual/releases/download/v${PV}/audacity-manual-${PV}.tar.gz )
|
22 |
|
audiocom? ( ${MY_THREADPOOL} )"
|
23 |
|
S="${WORKDIR}/${PN}-${MY_P}"
|
|
18 |
|
|
19 |
if [[ ${PV} = 9999* ]]; then
|
|
20 |
inherit git-r3
|
|
21 |
EGIT_REPO_URI="https://github.com/audacity/audacity.git"
|
|
22 |
else
|
|
23 |
KEYWORDS="~amd64 ~riscv"
|
|
24 |
MY_P="Audacity-${PV}"
|
|
25 |
S="${WORKDIR}/${PN}-${MY_P}"
|
|
26 |
SRC_URI="https://github.com/audacity/audacity/archive/${MY_P}.tar.gz"
|
|
27 |
fi
|
|
28 |
|
|
29 |
SRC_URI+=" audiocom? ( ${MY_THREADPOOL} )"
|
24 |
30 |
|
25 |
31 |
# GPL-2+, GPL-3 - Audacity itself
|
26 |
32 |
# ZLIB - The ThreadPool single-header library
|
27 |
33 |
# CC-BY-3.0 - Documentation
|
28 |
34 |
LICENSE="GPL-2+
|
29 |
35 |
GPL-3
|
30 |
|
doc? ( CC-BY-3.0 )
|
31 |
36 |
audiocom? ( ZLIB )
|
32 |
37 |
"
|
33 |
38 |
SLOT="0"
|
34 |
|
KEYWORDS="amd64 ~riscv"
|
35 |
|
IUSE="alsa audiocom doc ffmpeg +flac id3tag +ladspa +lv2 mad mpg123 ogg
|
|
39 |
IUSE="alsa audiocom ffmpeg +flac id3tag +ladspa +lv2 mad mpg123 ogg
|
36 |
40 |
opus +portmixer sbsms twolame vamp +vorbis wavpack"
|
37 |
41 |
|
38 |
42 |
# The testsuite consists of two tests, 50% of which fail.
|
... | ... | |
114 |
118 |
# Equivalent to previous versions
|
115 |
119 |
"${FILESDIR}/${PN}-3.2.3-disable-ccache.patch"
|
116 |
120 |
# From Debian
|
117 |
|
"${FILESDIR}/${PN}-3.2.3-fix-rpaths.patch"
|
|
121 |
"${FILESDIR}/${PN}-3.3.3-fix-rpaths.patch"
|
118 |
122 |
|
119 |
123 |
# Disables some header-based detection
|
120 |
124 |
"${FILESDIR}/${PN}-3.2.3-allow-overriding-alsa-jack.patch"
|
121 |
125 |
|
122 |
126 |
# For has_networking
|
123 |
|
"${FILESDIR}/${PN}-3.2.3-remove-conan-threadpool.patch"
|
124 |
|
"${FILESDIR}/${PN}-3.2.3-allow-finding-rapidjson-pkgconfig.patch"
|
|
127 |
"${FILESDIR}/${PN}-3.3.3-local-threadpool-libraries.patch"
|
|
128 |
"${FILESDIR}/${PN}-3.3.3-upstream-fix-rapidjson.patch"
|
|
129 |
|
|
130 |
# Add Findlibmad.cmake
|
|
131 |
"${FILESDIR}/${PN}-3.3.3-Findlibmad.patch"
|
125 |
132 |
|
126 |
|
# GCC 13
|
127 |
|
"${FILESDIR}/${PN}-3.2.5-gcc13-deux.patch"
|
|
133 |
# Fix includes
|
|
134 |
"${FILESDIR}/${PN}-3.3.3-fix-includes.patch"
|
128 |
135 |
|
129 |
136 |
# gettext 0.22
|
130 |
|
"${FILESDIR}/${PN}-3.2.5-gettext-0.22.patch"
|
|
137 |
"${FILESDIR}/${PN}-3.3.3-gettext-0.22.patch"
|
131 |
138 |
)
|
132 |
139 |
|
133 |
140 |
src_prepare() {
|
... | ... | |
169 |
176 |
# Not useful on Gentoo.
|
170 |
177 |
-Daudacity_has_updates_check=OFF
|
171 |
178 |
-Daudacity_has_audiocom_upload=$(usex audiocom on off)
|
172 |
|
-Daudacity_has_threadpool=local
|
173 |
179 |
|
174 |
180 |
# The VST3 SDK is unpackaged, and it appears to be under a breed
|
175 |
181 |
# of a proprietary license and the GPL.
|
... | ... | |
219 |
225 |
|
220 |
226 |
# Remove bad doc install
|
221 |
227 |
rm -r "${ED}"/usr/share/doc || die
|
222 |
|
|
223 |
|
if use doc ; then
|
224 |
|
docinto html
|
225 |
|
dodoc -r "${WORKDIR}"/help/manual/{m,man}
|
226 |
|
dodoc "${WORKDIR}"/help/manual/{favicon.ico,index.html,quick_help.html}
|
227 |
|
dosym ../../doc/${PF}/html /usr/share/${PN}/help/manual
|
228 |
|
fi
|
229 |
228 |
}
|