1 |
commit: 74842883030c94f2c2f53ac0c2056cbd03777dbb |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 4 16:17:58 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 4 16:34:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74842883 |
7 |
|
8 |
media-libs/libsamplerate: Fix file collision with media-sound/sndfile-tools |
9 |
|
10 |
Bug: https://bugs.gentoo.org/645256 |
11 |
Closes: https://bugs.gentoo.org/408849 |
12 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../files/libsamplerate-0.1.9-htmldocdir.patch | 53 ++++++++++++++++++++++ |
16 |
.../libsamplerate-0.1.9-no-sndfile-resample.patch | 34 ++++++++++++++ |
17 |
.../libsamplerate/libsamplerate-0.1.9-r1.ebuild | 42 +++++++++++++++++ |
18 |
3 files changed, 129 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/libsamplerate/files/libsamplerate-0.1.9-htmldocdir.patch b/media-libs/libsamplerate/files/libsamplerate-0.1.9-htmldocdir.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..cedcd312433 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/libsamplerate/files/libsamplerate-0.1.9-htmldocdir.patch |
25 |
@@ -0,0 +1,53 @@ |
26 |
+From 06fea5c39b186955194e85ada50724465c39033d Mon Sep 17 00:00:00 2001 |
27 |
+From: David Seifert <soap@g.o> |
28 |
+Date: Sat, 10 Jun 2017 15:48:00 +0200 |
29 |
+Subject: [PATCH] Remove htmldocdir variable |
30 |
+ |
31 |
+* Autoconf and Automake provide a variable (htmldir) |
32 |
+ for this already. |
33 |
+ |
34 |
+* asturm 2020-09-04: Rebased onto 0.1.9 |
35 |
+--- |
36 |
+ configure.ac | 10 ---------- |
37 |
+ doc/Makefile.am | 6 +----- |
38 |
+ 2 files changed, 1 insertion(+), 15 deletions(-) |
39 |
+ |
40 |
+diff --git a/configure.ac b/configure.ac |
41 |
+index 0ce20e9..6d5e692 100644 |
42 |
+--- a/configure.ac |
43 |
++++ b/configure.ac |
44 |
+@@ -264,21 +264,11 @@ AS_CASE([$target_os], |
45 |
+ ;; |
46 |
+ esac |
47 |
+ |
48 |
+-htmldocdir=$prefix/share/doc/libsamplerate0-dev/html |
49 |
+- |
50 |
+-if test $prefix = "NONE" ; then |
51 |
+- htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html |
52 |
+-else |
53 |
+- htmldocdir=$prefix/share/doc/libsamplerate0-dev/html |
54 |
+- fi |
55 |
+- |
56 |
+ #==================================================================================== |
57 |
+ # Now use the information from the checking stage. |
58 |
+ |
59 |
+ AC_DEFINE_UNQUOTED(OS_IS_WIN32, ${os_is_win32}, [Set to 1 if compiling for Win32]) |
60 |
+ |
61 |
+-AC_SUBST(htmldocdir) |
62 |
+- |
63 |
+ AC_SUBST(SHLIB_VERSION_ARG) |
64 |
+ AC_SUBST(SHARED_VERSION_INFO) |
65 |
+ AC_SUBST(OS_SPECIFIC_INCLUDES) |
66 |
+diff --git a/doc/Makefile.am b/doc/Makefile.am |
67 |
+index be86d64..cbc9963 100644 |
68 |
+--- a/doc/Makefile.am |
69 |
++++ b/doc/Makefile.am |
70 |
+@@ -1,7 +1,3 @@ |
71 |
+-htmldir = $(htmldocdir) |
72 |
+-html_DATA = SRC.png SRC.css index.html license.html history.html download.html \ |
73 |
++dist_html_DATA = SRC.png SRC.css index.html license.html history.html download.html \ |
74 |
+ lists.html quality.html win32.html faq.html api.html \ |
75 |
+ api_simple.html api_callback.html api_full.html api_misc.html |
76 |
+- |
77 |
+-EXTRA_DIST = $(html_DATA) |
78 |
+- |
79 |
|
80 |
diff --git a/media-libs/libsamplerate/files/libsamplerate-0.1.9-no-sndfile-resample.patch b/media-libs/libsamplerate/files/libsamplerate-0.1.9-no-sndfile-resample.patch |
81 |
new file mode 100644 |
82 |
index 00000000000..ae515602d81 |
83 |
--- /dev/null |
84 |
+++ b/media-libs/libsamplerate/files/libsamplerate-0.1.9-no-sndfile-resample.patch |
85 |
@@ -0,0 +1,34 @@ |
86 |
+From bf39835df4eba7b2ec2d5c5e7d1d40397942c3b0 Mon Sep 17 00:00:00 2001 |
87 |
+From: David Seifert <soap@g.o> |
88 |
+Date: Sat, 27 Jan 2018 14:12:35 +0100 |
89 |
+Subject: [PATCH] Move `sndfile-resample` to sndfile-tools package |
90 |
+ |
91 |
+* Fixes https://bugs.gentoo.org/645258 |
92 |
+ |
93 |
+* asturm 2020-09-04: Rebased onto 0.1.9 |
94 |
+ |
95 |
+--- |
96 |
+ Makefile.am | 7 - |
97 |
+ 1 file changed, 7 deletions(-) |
98 |
+ |
99 |
+--- a/examples/Makefile.am 2014-11-30 11:44:50.000000000 +0100 |
100 |
++++ b/examples/Makefile.am 2020-09-04 17:30:07.824611967 +0200 |
101 |
+@@ -1,8 +1,6 @@ |
102 |
+ # This file was automatically generated |
103 |
+ # DO NOT EDIT! |
104 |
+ |
105 |
+-bin_PROGRAMS = sndfile-resample |
106 |
+- |
107 |
+ EXTRA_PROGRAMS = varispeed-play timewarp-file |
108 |
+ |
109 |
+ SAMPLERATEDIR =../src |
110 |
+@@ -15,9 +13,6 @@ |
111 |
+ |
112 |
+ #=============================================================================== |
113 |
+ |
114 |
+-sndfile_resample_SOURCES = sndfile-resample.c |
115 |
+-sndfile_resample_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS) |
116 |
+- |
117 |
+ varispeed_play_SOURCES = varispeed-play.c audio_out.c audio_out.h |
118 |
+ varispeed_play_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS) $(OS_SPECIFIC_LINKS) |
119 |
+ |
120 |
|
121 |
diff --git a/media-libs/libsamplerate/libsamplerate-0.1.9-r1.ebuild b/media-libs/libsamplerate/libsamplerate-0.1.9-r1.ebuild |
122 |
new file mode 100644 |
123 |
index 00000000000..1fb03648cc2 |
124 |
--- /dev/null |
125 |
+++ b/media-libs/libsamplerate/libsamplerate-0.1.9-r1.ebuild |
126 |
@@ -0,0 +1,42 @@ |
127 |
+# Copyright 1999-2020 Gentoo Authors |
128 |
+# Distributed under the terms of the GNU General Public License v2 |
129 |
+ |
130 |
+EAPI=7 |
131 |
+ |
132 |
+inherit autotools multilib-minimal |
133 |
+ |
134 |
+DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio" |
135 |
+HOMEPAGE="http://www.mega-nerd.com/SRC/" |
136 |
+SRC_URI="http://www.mega-nerd.com/SRC/${P}.tar.gz" |
137 |
+ |
138 |
+LICENSE="BSD-2" |
139 |
+SLOT="0" |
140 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
141 |
+ |
142 |
+BDEPEND="virtual/pkgconfig" |
143 |
+ |
144 |
+PATCHES=( |
145 |
+ "${FILESDIR}/${PN}-0.1.3-dontbuild-tests-examples.patch" |
146 |
+ "${FILESDIR}/${PN}-0.1.8-lm.patch" |
147 |
+ "${FILESDIR}/${P}-htmldocdir.patch" |
148 |
+ "${FILESDIR}/${P}-no-sndfile-resample.patch" # bugs 408849, 645256 |
149 |
+) |
150 |
+ |
151 |
+src_prepare() { |
152 |
+ default |
153 |
+ eautoreconf |
154 |
+} |
155 |
+ |
156 |
+multilib_src_configure() { |
157 |
+ local myeconfargs=( |
158 |
+ --disable-fftw |
159 |
+ --disable-sndfile |
160 |
+ --disable-static |
161 |
+ ) |
162 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
163 |
+} |
164 |
+ |
165 |
+multilib_src_install_all() { |
166 |
+ einstalldocs |
167 |
+ find "${D}" -name '*.la' -type f -delete || die |
168 |
+} |