Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/ardour/
Date: Fri, 02 Jul 2021 19:32:35
Message-Id: 1625254346.b7a739e00c17aed95e77919efb3eef17516d960e.fordfrog@gentoo
1 commit: b7a739e00c17aed95e77919efb3eef17516d960e
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 2 19:32:13 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 2 19:32:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7a739e0
7
8 media-sound/ardour: bump to 6.8
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-sound/ardour/Manifest | 1 +
14 media-sound/ardour/ardour-6.8.ebuild | 180 +++++++++++++++++++++++++++++++++++
15 2 files changed, 181 insertions(+)
16
17 diff --git a/media-sound/ardour/Manifest b/media-sound/ardour/Manifest
18 index 20798aa982a..9b4b0fa1934 100644
19 --- a/media-sound/ardour/Manifest
20 +++ b/media-sound/ardour/Manifest
21 @@ -1 +1,2 @@
22 DIST Ardour-6.7.0.tar.bz2 12135868 BLAKE2B 3b217340187e16d3da9302e3505c499c3bba8da7e3be82ff12e8aa99e1c934d42e71c62ae357d7a1265e668293c933a2192ae2f6d6b97f21a2f7c379caf5e9be SHA512 73cf6fff40c838c42c3b29842e15d2e2b991f1e92d57ef0a8e68ef75b39ec8075906ac3ded322b521f2c5fd9fa9d1b7f9c7770b4cc6deee9efe1796889aeffe2
23 +DIST Ardour-6.8.0.tar.bz2 12152361 BLAKE2B 9f00a0eeae40fcb1f24e3138a639d1063a9cdbaecae2f17425bce133edee5e34ce4d0a1455be4da00725e52389bc1f9d829825b7ef5c591df2c5b0ce5538f463 SHA512 9f829df99fd6d857d54491e18a5c936b4a9b5e55715d71618454dc7c23fb3aaaaa2878a0ec87035c226a69da604111e27ddb00cd28087e34a46e24810c0ff403
24
25 diff --git a/media-sound/ardour/ardour-6.8.ebuild b/media-sound/ardour/ardour-6.8.ebuild
26 new file mode 100644
27 index 00000000000..c275eb05302
28 --- /dev/null
29 +++ b/media-sound/ardour/ardour-6.8.ebuild
30 @@ -0,0 +1,180 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python3_{7,8,9,10} )
36 +PYTHON_REQ_USE='threads(+)'
37 +PLOCALES="cs de el en_GB es eu fr it ja nn pl pt pt_PT ru sv zh"
38 +inherit eutils toolchain-funcs flag-o-matic l10n python-any-r1 waf-utils desktop xdg
39 +
40 +DESCRIPTION="Digital Audio Workstation"
41 +HOMEPAGE="https://ardour.org/"
42 +
43 +if [[ ${PV} == *9999* ]]; then
44 + EGIT_REPO_URI="https://git.ardour.org/ardour/ardour.git"
45 + inherit git-r3
46 +else
47 + KEYWORDS="~amd64 ~x86"
48 + SRC_URI="https://dev.gentoo.org/~fordfrog/distfiles/Ardour-${PV}.0.tar.bz2"
49 + S="${WORKDIR}/Ardour-${PV}.0"
50 +fi
51 +
52 +LICENSE="GPL-2"
53 +SLOT="6"
54 +IUSE="altivec doc jack nls phonehome pulseaudio cpu_flags_x86_sse cpu_flags_x86_mmx cpu_flags_x86_3dnow"
55 +
56 +RDEPEND="
57 + dev-cpp/glibmm:2
58 + dev-cpp/gtkmm:2.4
59 + dev-cpp/libgnomecanvasmm:2.6
60 + dev-libs/boost:=
61 + dev-libs/glib:2
62 + dev-libs/libsigc++:2
63 + dev-libs/libxml2:2
64 + dev-libs/libxslt
65 + >=gnome-base/libgnomecanvas-2
66 + media-libs/alsa-lib
67 + media-libs/aubio
68 + media-libs/flac
69 + media-libs/freetype:2
70 + media-libs/libart_lgpl
71 + media-libs/liblo
72 + media-libs/liblrdf
73 + media-libs/libsamplerate
74 + media-libs/libsndfile
75 + media-libs/libsoundtouch
76 + media-libs/raptor:2
77 + media-libs/rubberband
78 + media-libs/taglib
79 + media-libs/vamp-plugin-sdk
80 + net-misc/curl
81 + sys-libs/readline:0=
82 + sci-libs/fftw:3.0[threads]
83 + virtual/libusb:1
84 + x11-libs/cairo
85 + x11-libs/gtk+:2
86 + x11-libs/pango
87 + jack? ( virtual/jack )
88 + pulseaudio? ( media-sound/pulseaudio )
89 + media-libs/lilv
90 + media-libs/sratom
91 + dev-libs/sord
92 + media-libs/suil
93 + media-libs/lv2"
94 +# !bundled-libs? ( media-sound/fluidsynth ) at least libltc is missing to be able to unbundle...
95 +
96 +DEPEND="${RDEPEND}
97 + ${PYTHON_DEPS}
98 + dev-util/itstool
99 + sys-devel/gettext
100 + virtual/pkgconfig
101 + doc? ( app-doc/doxygen[dot] )
102 + jack? ( virtual/jack )"
103 +
104 +pkg_pretend() {
105 + [[ $(tc-getLD) == *gold* ]] && (has_version sci-libs/fftw[openmp] || has_version sci-libs/fftw[threads]) && \
106 + ewarn "Linking with gold linker might produce broken executable, see bug #733972"
107 +}
108 +
109 +pkg_setup() {
110 + if has_version \>=dev-libs/libsigc++-2.6 ; then
111 + append-cxxflags -std=c++11
112 + fi
113 + python-any-r1_pkg_setup
114 +}
115 +
116 +src_prepare() {
117 + default
118 + xdg_src_prepare
119 +
120 + sed 's/'full-optimization\'\ :\ \\[.*'/'full-optimization\'\ :\ \'\','/' -i "${S}"/wscript || die
121 + MARCH=$(get-flag march)
122 + OPTFLAGS=""
123 + if use cpu_flags_x86_sse; then
124 + if [[ ${MARCH} == "i686" ]] || [[ ${MARCH} == "i486" ]]; then
125 + elog "You enabled sse but use an march that does not support sse!"
126 + elog "We add -msse to the flags now, but please consider switching your march in make.conf!"
127 + fi
128 + OPTFLAGS="sse"
129 + fi
130 + if use cpu_flags_x86_mmx; then
131 + if [[ ${MARCH} == "i486" ]]; then
132 + elog "You enabled mmx with i486 set as march! You have been warned!"
133 + fi
134 + OPTFLAGS="${OPTFLAGS} mmx"
135 + fi
136 + if use cpu_flags_x86_3dnow; then
137 + OPTFLAGS="${OPTFLAGS} 3dnow"
138 + fi
139 + sed 's/flag_line\ =\ o.*/flag_line\ =\ \": '"${OPTFLAGS}"' just some place holders\"/' \
140 + -i "${S}"/wscript || die
141 + sed 's/cpu\ ==\ .*/cpu\ ==\ "LeaveMarchAsIs":/' -i "${S}"/wscript || die
142 + append-flags "-lboost_system"
143 + python_fix_shebang "${S}"/wscript
144 + python_fix_shebang "${S}"/waf
145 + my_lcmsg() {
146 + rm -f {gtk2_ardour,gtk2_ardour/appdata,libs/ardour,libs/gtkmm2ext}/po/${1}.po
147 + }
148 + l10n_for_each_disabled_locale_do my_lcmsg
149 +}
150 +
151 +src_configure() {
152 + local backends="alsa,dummy"
153 + use jack && backends+=",jack"
154 + use pulseaudio && backends+=",pulseaudio"
155 +
156 + tc-export CC CXX
157 + mkdir -p "${D}"
158 + local myconf=(
159 + --configdir=/etc
160 + --freedesktop
161 + --noconfirm
162 + --optimize
163 + --with-backends=${backends}
164 + $({ use altivec || use cpu_flags_x86_sse; } && echo "--fpu-optimization" || echo "--no-fpu-optimization")
165 + $(usex doc "--docs" '')
166 + $(usex nls "--nls" "--no-nls")
167 + $(usex phonehome "--phone-home" "--no-phone-home")
168 + # not possible right now --use-external-libs
169 + )
170 +
171 + waf-utils_src_configure "${myconf[@]}"
172 +}
173 +
174 +src_compile() {
175 + waf-utils_src_compile
176 + use nls && waf-utils_src_compile i18n
177 +}
178 +
179 +src_install() {
180 + local s
181 +
182 + waf-utils_src_install
183 +
184 + mv ${PN}.1 ${PN}${SLOT}.1 || die
185 + doman ${PN}${SLOT}.1
186 +
187 + for s in 16 22 32 48 256 512; do
188 + newicon -s ${s} gtk2_ardour/resources/Ardour-icon_${s}px.png ardour${SLOT}.png
189 + done
190 +
191 + sed -i \
192 + -e "s/\(^Name=\).*/\1Ardour ${SLOT}/" \
193 + -e 's/;AudioEditing;/;X-AudioEditing;/' \
194 + build/gtk2_ardour/ardour${SLOT}.desktop || die
195 + domenu build/gtk2_ardour/ardour${SLOT}.desktop
196 +
197 + insinto /usr/share/mime/packages
198 + newins build/gtk2_ardour/ardour.xml ardour${SLOT}.xml
199 +
200 + insinto /usr/share/metainfo
201 + doins build/gtk2_ardour/ardour${SLOT}.appdata.xml
202 +}
203 +
204 +pkg_postinst() {
205 + xdg_pkg_postinst
206 +
207 + elog "Please do _not_ report problems with the package to ${PN} upstream."
208 + elog "If you think you've found a bug, check the upstream binary package"
209 + elog "before you report anything to upstream."
210 +}