1 |
commit: 102546f0b95e6de750d0ddb05f1d4bf2f3ac3016 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 26 18:17:56 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 26 18:20:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=102546f0 |
7 |
|
8 |
media-libs/portaudio: respect AR setting, bug #720966 |
9 |
|
10 |
AC_PATH_PROG only accepts absolute paths. |
11 |
AC_CHECK_PROG is a correct way to detect binary names. |
12 |
|
13 |
Reported-by: Agostino Sarubbo |
14 |
Closes: https://bugs.gentoo.org/720966 |
15 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
16 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
17 |
|
18 |
.../portaudio/files/portaudio-19.06.00-AR.patch | 14 +++++ |
19 |
media-libs/portaudio/portaudio-19.06.00-r3.ebuild | 72 ++++++++++++++++++++++ |
20 |
2 files changed, 86 insertions(+) |
21 |
|
22 |
diff --git a/media-libs/portaudio/files/portaudio-19.06.00-AR.patch b/media-libs/portaudio/files/portaudio-19.06.00-AR.patch |
23 |
new file mode 100644 |
24 |
index 00000000000..4628c0aff92 |
25 |
--- /dev/null |
26 |
+++ b/media-libs/portaudio/files/portaudio-19.06.00-AR.patch |
27 |
@@ -0,0 +1,14 @@ |
28 |
+Accept relative paths to AR as well. |
29 |
+ |
30 |
+https://bugs.gentoo.org/720966 |
31 |
+--- a/configure.in |
32 |
++++ b/configure.in |
33 |
+@@ -105,7 +105,7 @@ AC_LIBTOOL_WIN32_DLL |
34 |
+ AC_PROG_LIBTOOL |
35 |
+ AC_PROG_INSTALL |
36 |
+ AC_PROG_LN_S |
37 |
+-AC_PATH_PROG(AR, ar, no) |
38 |
++AC_CHECK_PROG(AR, ar, no) |
39 |
+ if [[ $AR = "no" ]] ; then |
40 |
+ AC_MSG_ERROR("Could not find ar - needed to create a library") |
41 |
+ fi |
42 |
|
43 |
diff --git a/media-libs/portaudio/portaudio-19.06.00-r3.ebuild b/media-libs/portaudio/portaudio-19.06.00-r3.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000000..5664a73ea98 |
46 |
--- /dev/null |
47 |
+++ b/media-libs/portaudio/portaudio-19.06.00-r3.ebuild |
48 |
@@ -0,0 +1,72 @@ |
49 |
+# Copyright 1999-2020 Gentoo Authors |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=7 |
53 |
+inherit autotools multilib-minimal |
54 |
+ |
55 |
+DESCRIPTION="A free, cross-platform, open-source, audio I/O library" |
56 |
+HOMEPAGE="http://www.portaudio.com/" |
57 |
+SRC_URI="http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz |
58 |
+ https://sources.debian.org/data/main/p/portaudio19/19.6.0-1/debian/patches/audacity-portmixer.patch -> ${PN}-19.06.00-audacity-portmixer.patch" |
59 |
+ |
60 |
+LICENSE="MIT" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
63 |
+IUSE="alsa +cxx debug doc jack oss static-libs" |
64 |
+ |
65 |
+RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
66 |
+ jack? ( virtual/jack[${MULTILIB_USEDEP}] )" |
67 |
+DEPEND="${RDEPEND}" |
68 |
+BDEPEND=" |
69 |
+ doc? ( app-doc/doxygen ) |
70 |
+ virtual/pkgconfig |
71 |
+" |
72 |
+ |
73 |
+S="${WORKDIR}/${PN}" |
74 |
+ |
75 |
+DOCS=( README.txt ) |
76 |
+ |
77 |
+PATCHES=( |
78 |
+ "${DISTDIR}/${PN}-19.06.00-audacity-portmixer.patch" |
79 |
+ "${FILESDIR}"/${PN}-19.06.00-AR.patch # bug #720966, trigger reconf |
80 |
+) |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ default |
84 |
+ |
85 |
+ eautoconf |
86 |
+} |
87 |
+ |
88 |
+multilib_src_configure() { |
89 |
+ local myeconfargs=( |
90 |
+ $(use_enable debug debug-output) |
91 |
+ $(use_enable cxx) |
92 |
+ $(use_enable static-libs static) |
93 |
+ $(use_with alsa) |
94 |
+ $(use_with jack) |
95 |
+ $(use_with oss) |
96 |
+ ) |
97 |
+ |
98 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
99 |
+} |
100 |
+ |
101 |
+multilib_src_compile() { |
102 |
+ # workaround parallel build issue |
103 |
+ emake lib/libportaudio.la |
104 |
+ emake |
105 |
+} |
106 |
+ |
107 |
+src_compile() { |
108 |
+ multilib-minimal_src_compile |
109 |
+ |
110 |
+ if use doc; then |
111 |
+ doxygen -u Doxyfile || die |
112 |
+ doxygen Doxyfile || die |
113 |
+ fi |
114 |
+} |
115 |
+ |
116 |
+multilib_src_install_all() { |
117 |
+ einstalldocs |
118 |
+ use doc && dodoc -r doc/html |
119 |
+ find "${ED}" -name "*.la" -delete || die |
120 |
+} |