1 |
commit: 3062c5d68e34b8bd55a539743ebfcd6a2c8bcb1e |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 27 09:45:59 2020 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 27 09:46:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3062c5d6 |
7 |
|
8 |
media-libs/rubberband: fixed calling ar in 1.9.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/743883 |
11 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
12 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
13 |
|
14 |
media-libs/rubberband/files/rubberband-1.9.0-makefile.patch | 13 +++++++++++++ |
15 |
media-libs/rubberband/rubberband-1.9.0.ebuild | 10 +++++++++- |
16 |
2 files changed, 22 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/media-libs/rubberband/files/rubberband-1.9.0-makefile.patch b/media-libs/rubberband/files/rubberband-1.9.0-makefile.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..5539162dec2 |
21 |
--- /dev/null |
22 |
+++ b/media-libs/rubberband/files/rubberband-1.9.0-makefile.patch |
23 |
@@ -0,0 +1,13 @@ |
24 |
+diff --git a/Makefile.in b/Makefile.in |
25 |
+index fdddb72..86c0548 100644 |
26 |
+--- a/Makefile.in |
27 |
++++ b/Makefile.in |
28 |
+@@ -19,7 +19,7 @@ VAMP_PLUGIN_LIBS := @Vamp_LIBS@ $(LIBRARY_LIBS) |
29 |
+ LADSPA_PLUGIN_LIBS := $(LIBRARY_LIBS) |
30 |
+ |
31 |
+ MKDIR := mkdir |
32 |
+-AR := ar |
33 |
++AR ?= ar |
34 |
+ |
35 |
+ INSTALL_BINDIR := $(PREFIX)/bin |
36 |
+ INSTALL_INCDIR := $(PREFIX)/include/rubberband |
37 |
|
38 |
diff --git a/media-libs/rubberband/rubberband-1.9.0.ebuild b/media-libs/rubberband/rubberband-1.9.0.ebuild |
39 |
index 97b291d5890..38036981a9e 100644 |
40 |
--- a/media-libs/rubberband/rubberband-1.9.0.ebuild |
41 |
+++ b/media-libs/rubberband/rubberband-1.9.0.ebuild |
42 |
@@ -3,7 +3,7 @@ |
43 |
|
44 |
EAPI=7 |
45 |
|
46 |
-inherit multilib-minimal |
47 |
+inherit multilib-minimal toolchain-funcs |
48 |
|
49 |
DESCRIPTION="An audio time-stretching and pitch-shifting library and utility program" |
50 |
HOMEPAGE="https://www.breakfastquay.com/rubberband/" |
51 |
@@ -27,6 +27,10 @@ CDEPEND=" |
52 |
RDEPEND="${CDEPEND}" |
53 |
DEPEND="${CDEPEND}" |
54 |
|
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}/${P}-makefile.patch" |
57 |
+) |
58 |
+ |
59 |
src_prepare() { |
60 |
default |
61 |
if ! use static-libs ; then |
62 |
@@ -47,6 +51,10 @@ multilib_src_configure() { |
63 |
$(use_enable vamp ) |
64 |
} |
65 |
|
66 |
+multilib_src_compile() { |
67 |
+ emake AR="$(tc-getAR)" |
68 |
+} |
69 |
+ |
70 |
multilib_src_install() { |
71 |
# fix libdir in .pc file |
72 |
sed -iE "s%/lib$%/$(get_libdir)%g" "${BUILD_DIR}/rubberband.pc.in" || die "Failed to fix .pc file" |