1 |
commit: 13f0c75b59df12e9cd21d52822e464c61647a8bd |
2 |
Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me> |
3 |
AuthorDate: Sun Oct 25 00:32:25 2020 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 12:10:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13f0c75b |
7 |
|
8 |
media-sound/ardour: Update live ebuild |
9 |
|
10 |
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/18027 |
12 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
13 |
|
14 |
media-sound/ardour/ardour-9999.ebuild | 68 ++++++++++++++++++++++++++--------- |
15 |
1 file changed, 51 insertions(+), 17 deletions(-) |
16 |
|
17 |
diff --git a/media-sound/ardour/ardour-9999.ebuild b/media-sound/ardour/ardour-9999.ebuild |
18 |
index b4637a515b8..55fedd0ef1d 100644 |
19 |
--- a/media-sound/ardour/ardour-9999.ebuild |
20 |
+++ b/media-sound/ardour/ardour-9999.ebuild |
21 |
@@ -5,7 +5,7 @@ EAPI=6 |
22 |
PYTHON_COMPAT=( python3_{6,7,8,9} ) |
23 |
PYTHON_REQ_USE='threads(+)' |
24 |
PLOCALES="cs de el en_GB es eu fr it ja nn pl pt pt_PT ru sv zh" |
25 |
-inherit eutils toolchain-funcs flag-o-matic l10n python-any-r1 waf-utils |
26 |
+inherit eutils toolchain-funcs flag-o-matic l10n python-any-r1 waf-utils xdg |
27 |
|
28 |
DESCRIPTION="Digital Audio Workstation" |
29 |
HOMEPAGE="https://ardour.org/" |
30 |
@@ -15,7 +15,7 @@ if [[ ${PV} == *9999* ]]; then |
31 |
inherit git-r3 |
32 |
else |
33 |
KEYWORDS="~amd64 ~x86" |
34 |
- SRC_URI="https://community.ardour.org/src/Ardour-${PV}.0.tar.bz2" |
35 |
+ SRC_URI="https://dev.gentoo.org/~fordfrog/distfiles/Ardour-${PV}.0.tar.bz2" |
36 |
S="${WORKDIR}/Ardour-${PV}.0" |
37 |
fi |
38 |
|
39 |
@@ -65,10 +65,16 @@ RDEPEND=" |
40 |
|
41 |
DEPEND="${RDEPEND} |
42 |
${PYTHON_DEPS} |
43 |
- jack? ( virtual/jack ) |
44 |
+ dev-util/itstool |
45 |
sys-devel/gettext |
46 |
virtual/pkgconfig |
47 |
- doc? ( app-doc/doxygen[dot] )" |
48 |
+ doc? ( app-doc/doxygen[dot] ) |
49 |
+ jack? ( virtual/jack )" |
50 |
+ |
51 |
+pkg_pretend() { |
52 |
+ [[ $(tc-getLD) == *gold* ]] && (has_version sci-libs/fftw[openmp] || has_version sci-libs/fftw[threads]) && \ |
53 |
+ ewarn "Linking with gold linker might produce broken executable, see bug #733972" |
54 |
+} |
55 |
|
56 |
pkg_setup() { |
57 |
if has_version \>=dev-libs/libsigc++-2.6 ; then |
58 |
@@ -78,7 +84,9 @@ pkg_setup() { |
59 |
} |
60 |
|
61 |
src_prepare() { |
62 |
- eapply_user |
63 |
+ default |
64 |
+ xdg_src_prepare |
65 |
+ |
66 |
sed 's/'full-optimization\'\ :\ \\[.*'/'full-optimization\'\ :\ \'\','/' -i "${S}"/wscript || die |
67 |
MARCH=$(get-flag march) |
68 |
OPTFLAGS="" |
69 |
@@ -117,30 +125,56 @@ src_configure() { |
70 |
|
71 |
tc-export CC CXX |
72 |
mkdir -p "${D}" |
73 |
- waf-utils_src_configure \ |
74 |
- --destdir="${D}" \ |
75 |
- --configdir=/etc \ |
76 |
- --optimize \ |
77 |
- --with-backends=${backends} \ |
78 |
- $(usex doc "--docs" '') \ |
79 |
- $({ use altivec || use cpu_flags_x86_sse; } && echo "--fpu-optimization" || echo "--no-fpu-optimization") \ |
80 |
- $(usex phonehome "--phone-home" "--no-phone-home") \ |
81 |
+ local myconf=( |
82 |
+ --configdir=/etc |
83 |
+ --freedesktop |
84 |
+ --noconfirm |
85 |
+ --optimize |
86 |
+ --with-backends=${backends} |
87 |
+ $({ use altivec || use cpu_flags_x86_sse; } && echo "--fpu-optimization" || echo "--no-fpu-optimization") |
88 |
+ $(usex doc "--docs" '') |
89 |
$(usex nls "--nls" "--no-nls") |
90 |
-#not possible right now --use-external-libs |
91 |
+ $(usex phonehome "--phone-home" "--no-phone-home") |
92 |
+ # not possible right now --use-external-libs |
93 |
+ ) |
94 |
+ |
95 |
+ waf-utils_src_configure "${myconf[@]}" |
96 |
} |
97 |
+ |
98 |
src_compile() { |
99 |
waf-utils_src_compile |
100 |
use nls && waf-utils_src_compile i18n |
101 |
} |
102 |
+ |
103 |
src_install() { |
104 |
+ local s |
105 |
+ |
106 |
waf-utils_src_install |
107 |
- mv ${PN}.1 ${PN}${SLOT}.1 |
108 |
+ |
109 |
+ mv ${PN}.1 ${PN}${SLOT}.1 || die |
110 |
doman ${PN}${SLOT}.1 |
111 |
- newicon "${S}/gtk2_ardour/resources/Ardour-icon_48px.png" ${PN}${SLOT}.png |
112 |
- make_desktop_entry ardour6 ardour6 ardour6 AudioVideo |
113 |
+ |
114 |
+ for s in 16 22 32 48 256 512; do |
115 |
+ dosym ../../../../ardour${SLOT}/resources/Ardour-icon_${s}px.png \ |
116 |
+ /usr/share/icons/hicolor/${s}x${s}/apps/ardour${SLOT}.png |
117 |
+ done |
118 |
+ |
119 |
+ sed -i \ |
120 |
+ -e "s/\(^Name=\).*/\1Ardour ${SLOT}/" \ |
121 |
+ -e 's/;AudioEditing;/;X-AudioEditing;/' \ |
122 |
+ build/gtk2_ardour/ardour${SLOT}.desktop || die |
123 |
+ domenu build/gtk2_ardour/ardour${SLOT}.desktop |
124 |
+ |
125 |
+ insinto /usr/share/mime/packages |
126 |
+ newins build/gtk2_ardour/ardour.xml ardour${SLOT}.xml |
127 |
+ |
128 |
+ insinto /usr/share/metainfo |
129 |
+ doins build/gtk2_ardour/ardour${SLOT}.appdata.xml |
130 |
} |
131 |
|
132 |
pkg_postinst() { |
133 |
+ xdg_pkg_postinst |
134 |
+ |
135 |
elog "Please do _not_ report problems with the package to ${PN} upstream." |
136 |
elog "If you think you've found a bug, check the upstream binary package" |
137 |
elog "before you report anything to upstream." |