1 |
commit: f131feed71b585b9ff683ad5d44ba4fbc6e9e057 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 18 09:14:39 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 18 09:17:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f131feed |
7 |
|
8 |
media-libs/id3lib: EAPI-6 bump |
9 |
|
10 |
Package-Manager: Portage-2.3.47, Repoman-2.3.10 |
11 |
|
12 |
.../id3lib/files/id3lib-3.8.3-autoconf259.patch | 4 +-- |
13 |
.../id3lib/files/id3lib-3.8.3-doxyinput.patch | 4 +-- |
14 |
media-libs/id3lib/files/id3lib-3.8.3-gcc-4.3.patch | 42 +++++++++++----------- |
15 |
.../id3lib-3.8.3-missing_nullpointer_check.patch | 4 +-- |
16 |
.../id3lib/files/id3lib-3.8.3-security.patch | 4 +-- |
17 |
media-libs/id3lib/files/id3lib-3.8.3-test_io.patch | 4 +-- |
18 |
.../id3lib/files/id3lib-3.8.3-unicode16.patch | 8 ++--- |
19 |
media-libs/id3lib/files/id3lib-3.8.3-zlib.patch | 8 ++--- |
20 |
media-libs/id3lib/id3lib-3.8.3-r8.ebuild | 34 ++++++++++-------- |
21 |
9 files changed, 58 insertions(+), 54 deletions(-) |
22 |
|
23 |
diff --git a/media-libs/id3lib/files/id3lib-3.8.3-autoconf259.patch b/media-libs/id3lib/files/id3lib-3.8.3-autoconf259.patch |
24 |
index 16921e17425..faa21fc175c 100644 |
25 |
--- a/media-libs/id3lib/files/id3lib-3.8.3-autoconf259.patch |
26 |
+++ b/media-libs/id3lib/files/id3lib-3.8.3-autoconf259.patch |
27 |
@@ -1,7 +1,7 @@ |
28 |
Index: id3lib-3.8.3/configure.in |
29 |
=================================================================== |
30 |
---- id3lib-3.8.3.orig/configure.in |
31 |
-+++ id3lib-3.8.3/configure.in |
32 |
+--- a/configure.in |
33 |
++++ b/configure.in |
34 |
@@ -168,7 +168,7 @@ if test $has_iconv = 1; then |
35 |
iconv_oldstyle=1, iconv_oldstyle=0) |
36 |
if test $iconv_oldstyle = 1; then |
37 |
|
38 |
diff --git a/media-libs/id3lib/files/id3lib-3.8.3-doxyinput.patch b/media-libs/id3lib/files/id3lib-3.8.3-doxyinput.patch |
39 |
index b118f487e06..9e230a5cb81 100644 |
40 |
--- a/media-libs/id3lib/files/id3lib-3.8.3-doxyinput.patch |
41 |
+++ b/media-libs/id3lib/files/id3lib-3.8.3-doxyinput.patch |
42 |
@@ -1,7 +1,7 @@ |
43 |
Index: id3lib-3.8.3/doc/Doxyfile |
44 |
=================================================================== |
45 |
---- id3lib-3.8.3.orig/doc/Doxyfile |
46 |
-+++ id3lib-3.8.3/doc/Doxyfile |
47 |
+--- a/doc/Doxyfile |
48 |
++++ b/doc/Doxyfile |
49 |
@@ -262,17 +262,7 @@ WARN_FORMAT = "$file:$line: $ |
50 |
# with spaces. |
51 |
|
52 |
|
53 |
diff --git a/media-libs/id3lib/files/id3lib-3.8.3-gcc-4.3.patch b/media-libs/id3lib/files/id3lib-3.8.3-gcc-4.3.patch |
54 |
index 090dc0bc092..1aad1a86d8c 100644 |
55 |
--- a/media-libs/id3lib/files/id3lib-3.8.3-gcc-4.3.patch |
56 |
+++ b/media-libs/id3lib/files/id3lib-3.8.3-gcc-4.3.patch |
57 |
@@ -1,6 +1,6 @@ |
58 |
-diff -Naur id3lib-3.8.3-orig/configure.in id3lib-3.8.3/configure.in |
59 |
---- id3lib-3.8.3-orig/configure.in 2008-03-05 18:03:25.000000000 -0600 |
60 |
-+++ id3lib-3.8.3/configure.in 2008-03-05 18:15:42.000000000 -0600 |
61 |
+diff -Naur a/configure.in id3lib-3.8.3/configure.in |
62 |
+--- a/configure.in 2008-03-05 18:03:25.000000000 -0600 |
63 |
++++ b/configure.in 2008-03-05 18:15:42.000000000 -0600 |
64 |
@@ -227,7 +227,6 @@ |
65 |
) |
66 |
AC_CHECK_HEADERS( \ |
67 |
@@ -9,9 +9,9 @@ diff -Naur id3lib-3.8.3-orig/configure.in id3lib-3.8.3/configure.in |
68 |
,,AC_MSG_ERROR([Missing a vital header file for id3lib]) |
69 |
) |
70 |
|
71 |
-diff -Naur id3lib-3.8.3-orig/include/id3/id3lib_strings.h id3lib-3.8.3/include/id3/id3lib_strings.h |
72 |
---- id3lib-3.8.3-orig/include/id3/id3lib_strings.h 2008-03-05 18:19:46.000000000 -0600 |
73 |
-+++ id3lib-3.8.3/include/id3/id3lib_strings.h 2008-03-05 18:19:38.000000000 -0600 |
74 |
+diff -Naur a/include/id3/id3lib_strings.h id3lib-3.8.3/include/id3/id3lib_strings.h |
75 |
+--- a/include/id3/id3lib_strings.h 2008-03-05 18:19:46.000000000 -0600 |
76 |
++++ b/include/id3/id3lib_strings.h 2008-03-05 18:19:38.000000000 -0600 |
77 |
@@ -30,6 +30,7 @@ |
78 |
#define _ID3LIB_STRINGS_H_ |
79 |
|
80 |
@@ -20,9 +20,9 @@ diff -Naur id3lib-3.8.3-orig/include/id3/id3lib_strings.h id3lib-3.8.3/include/i |
81 |
|
82 |
#if (defined(__GNUC__) && (__GNUC__ >= 3) || (defined(_MSC_VER) && _MSC_VER > 1000)) |
83 |
namespace std |
84 |
-diff -Naur id3lib-3.8.3-orig/include/id3/writers.h id3lib-3.8.3/include/id3/writers.h |
85 |
---- id3lib-3.8.3-orig/include/id3/writers.h 2003-03-01 18:23:00.000000000 -0600 |
86 |
-+++ id3lib-3.8.3/include/id3/writers.h 2008-03-05 18:23:05.000000000 -0600 |
87 |
+diff -Naur a/include/id3/writers.h id3lib-3.8.3/include/id3/writers.h |
88 |
+--- a/include/id3/writers.h 2003-03-01 18:23:00.000000000 -0600 |
89 |
++++ b/include/id3/writers.h 2008-03-05 18:23:05.000000000 -0600 |
90 |
@@ -30,7 +30,7 @@ |
91 |
|
92 |
#include "id3/writer.h" |
93 |
@@ -32,9 +32,9 @@ diff -Naur id3lib-3.8.3-orig/include/id3/writers.h id3lib-3.8.3/include/id3/writ |
94 |
|
95 |
class ID3_CPP_EXPORT ID3_OStreamWriter : public ID3_Writer |
96 |
{ |
97 |
-diff -Naur id3lib-3.8.3-orig/examples/demo_convert.cpp id3lib-3.8.3/examples/demo_convert.cpp |
98 |
---- id3lib-3.8.3-orig/examples/demo_convert.cpp 2003-03-01 18:23:00.000000000 -0600 |
99 |
-+++ id3lib-3.8.3/examples/demo_convert.cpp 2008-03-05 18:26:50.000000000 -0600 |
100 |
+diff -Naur a/examples/demo_convert.cpp id3lib-3.8.3/examples/demo_convert.cpp |
101 |
+--- a/examples/demo_convert.cpp 2003-03-01 18:23:00.000000000 -0600 |
102 |
++++ b/examples/demo_convert.cpp 2008-03-05 18:26:50.000000000 -0600 |
103 |
@@ -84,7 +84,7 @@ |
104 |
} |
105 |
} |
106 |
@@ -44,9 +44,9 @@ diff -Naur id3lib-3.8.3-orig/examples/demo_convert.cpp id3lib-3.8.3/examples/dem |
107 |
{ |
108 |
flags_t ulFlag = ID3TT_ALL; |
109 |
gengetopt_args_info args; |
110 |
-diff -Naur id3lib-3.8.3-orig/examples/demo_info.cpp id3lib-3.8.3/examples/demo_info.cpp |
111 |
---- id3lib-3.8.3-orig/examples/demo_info.cpp 2003-03-01 18:23:00.000000000 -0600 |
112 |
-+++ id3lib-3.8.3/examples/demo_info.cpp 2008-03-05 18:27:40.000000000 -0600 |
113 |
+diff -Naur a/examples/demo_info.cpp id3lib-3.8.3/examples/demo_info.cpp |
114 |
+--- a/examples/demo_info.cpp 2003-03-01 18:23:00.000000000 -0600 |
115 |
++++ b/examples/demo_info.cpp 2008-03-05 18:27:40.000000000 -0600 |
116 |
@@ -309,7 +309,7 @@ |
117 |
|
118 |
#define DEBUG |
119 |
@@ -56,9 +56,9 @@ diff -Naur id3lib-3.8.3-orig/examples/demo_info.cpp id3lib-3.8.3/examples/demo_i |
120 |
{ |
121 |
ID3D_INIT_DOUT(); |
122 |
|
123 |
-diff -Naur id3lib-3.8.3-orig/examples/demo_tag.cpp id3lib-3.8.3/examples/demo_tag.cpp |
124 |
---- id3lib-3.8.3-orig/examples/demo_tag.cpp 2003-03-01 18:23:00.000000000 -0600 |
125 |
-+++ id3lib-3.8.3/examples/demo_tag.cpp 2008-03-05 18:31:20.000000000 -0600 |
126 |
+diff -Naur a/examples/demo_tag.cpp id3lib-3.8.3/examples/demo_tag.cpp |
127 |
+--- a/examples/demo_tag.cpp 2003-03-01 18:23:00.000000000 -0600 |
128 |
++++ b/examples/demo_tag.cpp 2008-03-05 18:31:20.000000000 -0600 |
129 |
@@ -46,7 +46,7 @@ |
130 |
os << "v2"; |
131 |
} |
132 |
@@ -68,9 +68,9 @@ diff -Naur id3lib-3.8.3-orig/examples/demo_tag.cpp id3lib-3.8.3/examples/demo_ta |
133 |
{ |
134 |
int ulFlag = ID3TT_ID3; |
135 |
ID3D_INIT_DOUT(); |
136 |
-diff -Naur id3lib-3.8.3-orig/examples/demo_copy.cpp id3lib-3.8.3/examples/demo_copy.cpp |
137 |
---- id3lib-3.8.3-orig/examples/demo_copy.cpp 2003-03-01 18:23:00.000000000 -0600 |
138 |
-+++ id3lib-3.8.3/examples/demo_copy.cpp 2008-03-05 18:32:44.000000000 -0600 |
139 |
+diff -Naur a/examples/demo_copy.cpp id3lib-3.8.3/examples/demo_copy.cpp |
140 |
+--- a/examples/demo_copy.cpp 2003-03-01 18:23:00.000000000 -0600 |
141 |
++++ b/examples/demo_copy.cpp 2008-03-05 18:32:44.000000000 -0600 |
142 |
@@ -81,7 +81,7 @@ |
143 |
} |
144 |
} |
145 |
|
146 |
diff --git a/media-libs/id3lib/files/id3lib-3.8.3-missing_nullpointer_check.patch b/media-libs/id3lib/files/id3lib-3.8.3-missing_nullpointer_check.patch |
147 |
index 3b943796784..d075e62f9bd 100644 |
148 |
--- a/media-libs/id3lib/files/id3lib-3.8.3-missing_nullpointer_check.patch |
149 |
+++ b/media-libs/id3lib/files/id3lib-3.8.3-missing_nullpointer_check.patch |
150 |
@@ -1,5 +1,5 @@ |
151 |
---- id3lib-3.8.3/src/header_tag.cpp.orig 2003-03-02 01:23:00.000000000 +0100 |
152 |
-+++ id3lib-3.8.3/src/header_tag.cpp 2009-07-13 22:54:21.000000000 +0200 |
153 |
+--- a/src/header_tag.cpp 2003-03-02 01:23:00.000000000 +0100 |
154 |
++++ b/src/header_tag.cpp 2009-07-13 22:54:21.000000000 +0200 |
155 |
@@ -54,7 +54,7 @@ |
156 |
{ |
157 |
size_t bytesUsed = ID3_TagHeader::SIZE; |
158 |
|
159 |
diff --git a/media-libs/id3lib/files/id3lib-3.8.3-security.patch b/media-libs/id3lib/files/id3lib-3.8.3-security.patch |
160 |
index 2cf7c142034..9f1e4a98ee4 100644 |
161 |
--- a/media-libs/id3lib/files/id3lib-3.8.3-security.patch |
162 |
+++ b/media-libs/id3lib/files/id3lib-3.8.3-security.patch |
163 |
@@ -1,7 +1,7 @@ |
164 |
http://bugs.gentoo.org/189610 |
165 |
|
166 |
---- src/tag_file.cpp |
167 |
-+++ src/tag_file.cpp |
168 |
+--- a/src/tag_file.cpp |
169 |
++++ b/src/tag_file.cpp |
170 |
@@ -242,8 +242,8 @@ |
171 |
strcpy(sTempFile, filename.c_str()); |
172 |
strcat(sTempFile, sTmpSuffix.c_str()); |
173 |
|
174 |
diff --git a/media-libs/id3lib/files/id3lib-3.8.3-test_io.patch b/media-libs/id3lib/files/id3lib-3.8.3-test_io.patch |
175 |
index b4a0d24d65e..115e6aafc1a 100644 |
176 |
--- a/media-libs/id3lib/files/id3lib-3.8.3-test_io.patch |
177 |
+++ b/media-libs/id3lib/files/id3lib-3.8.3-test_io.patch |
178 |
@@ -1,5 +1,5 @@ |
179 |
---- id3lib-3.8.3/examples/test_io.cpp.orig 2004-09-21 23:40:48.398826320 +0200 |
180 |
-+++ id3lib-3.8.3/examples/test_io.cpp 2004-09-21 23:40:55.408760648 +0200 |
181 |
+--- a/examples/test_io.cpp 2004-09-21 23:40:48.398826320 +0200 |
182 |
++++ b/examples/test_io.cpp 2004-09-21 23:40:55.408760648 +0200 |
183 |
@@ -16,6 +16,7 @@ |
184 |
using std::cerr; |
185 |
|
186 |
|
187 |
diff --git a/media-libs/id3lib/files/id3lib-3.8.3-unicode16.patch b/media-libs/id3lib/files/id3lib-3.8.3-unicode16.patch |
188 |
index 7b1b5935890..de856df6c43 100644 |
189 |
--- a/media-libs/id3lib/files/id3lib-3.8.3-unicode16.patch |
190 |
+++ b/media-libs/id3lib/files/id3lib-3.8.3-unicode16.patch |
191 |
@@ -1,6 +1,6 @@ |
192 |
diff -ruN id3lib-3.8.3.orig/ChangeLog id3lib-3.8.3/ChangeLog |
193 |
---- id3lib-3.8.3.orig/ChangeLog 2003-03-02 01:23:00.000000000 +0100 |
194 |
-+++ id3lib-3.8.3/ChangeLog 2006-02-22 00:33:59.946214472 +0100 |
195 |
+--- a/ChangeLog 2003-03-02 01:23:00.000000000 +0100 |
196 |
++++ b/ChangeLog 2006-02-22 00:33:59.946214472 +0100 |
197 |
@@ -1,3 +1,8 @@ |
198 |
+2006-02-17 Jerome Couderc |
199 |
+ |
200 |
@@ -11,8 +11,8 @@ diff -ruN id3lib-3.8.3.orig/ChangeLog id3lib-3.8.3/ChangeLog |
201 |
|
202 |
* THANKS (1.20): added more people |
203 |
diff -ruN id3lib-3.8.3.orig/src/io_helpers.cpp id3lib-3.8.3/src/io_helpers.cpp |
204 |
---- id3lib-3.8.3.orig/src/io_helpers.cpp 2003-03-02 01:23:00.000000000 +0100 |
205 |
-+++ id3lib-3.8.3/src/io_helpers.cpp 2006-02-22 00:35:02.926639992 +0100 |
206 |
+--- a/src/io_helpers.cpp 2003-03-02 01:23:00.000000000 +0100 |
207 |
++++ b/src/io_helpers.cpp 2006-02-22 00:35:02.926639992 +0100 |
208 |
@@ -363,11 +363,22 @@ |
209 |
// Write the BOM: 0xFEFF |
210 |
unicode_t BOM = 0xFEFF; |
211 |
|
212 |
diff --git a/media-libs/id3lib/files/id3lib-3.8.3-zlib.patch b/media-libs/id3lib/files/id3lib-3.8.3-zlib.patch |
213 |
index 177320bc17a..721d640200d 100644 |
214 |
--- a/media-libs/id3lib/files/id3lib-3.8.3-zlib.patch |
215 |
+++ b/media-libs/id3lib/files/id3lib-3.8.3-zlib.patch |
216 |
@@ -1,6 +1,6 @@ |
217 |
diff -Naur id3lib-3.8.3.orig/Makefile.am id3lib-3.8.3/Makefile.am |
218 |
---- id3lib-3.8.3.orig/Makefile.am 2003-03-01 16:23:00.000000000 -0800 |
219 |
-+++ id3lib-3.8.3/Makefile.am 2004-09-12 19:05:39.564456828 -0700 |
220 |
+--- a/Makefile.am 2003-03-01 16:23:00.000000000 -0800 |
221 |
++++ b/Makefile.am 2004-09-12 19:05:39.564456828 -0700 |
222 |
@@ -28,7 +28,7 @@ |
223 |
endif |
224 |
|
225 |
@@ -11,8 +11,8 @@ diff -Naur id3lib-3.8.3.orig/Makefile.am id3lib-3.8.3/Makefile.am |
226 |
INCLUDES = @ID3LIB_DEBUG_FLAGS@ |
227 |
|
228 |
diff -Naur id3lib-3.8.3.orig/src/Makefile.am id3lib-3.8.3/src/Makefile.am |
229 |
---- id3lib-3.8.3.orig/src/Makefile.am 2003-03-01 16:23:00.000000000 -0800 |
230 |
-+++ id3lib-3.8.3/src/Makefile.am 2004-09-12 19:08:30.814149521 -0700 |
231 |
+--- a/src/Makefile.am 2003-03-01 16:23:00.000000000 -0800 |
232 |
++++ b/src/Makefile.am 2004-09-12 19:08:30.814149521 -0700 |
233 |
@@ -77,6 +77,7 @@ |
234 |
endif |
235 |
|
236 |
|
237 |
diff --git a/media-libs/id3lib/id3lib-3.8.3-r8.ebuild b/media-libs/id3lib/id3lib-3.8.3-r8.ebuild |
238 |
index ca6e9eca543..74943e46257 100644 |
239 |
--- a/media-libs/id3lib/id3lib-3.8.3-r8.ebuild |
240 |
+++ b/media-libs/id3lib/id3lib-3.8.3-r8.ebuild |
241 |
@@ -1,8 +1,9 @@ |
242 |
# Copyright 1999-2018 Gentoo Foundation |
243 |
# Distributed under the terms of the GNU General Public License v2 |
244 |
|
245 |
-EAPI=5 |
246 |
-inherit autotools eutils |
247 |
+EAPI=6 |
248 |
+ |
249 |
+inherit autotools |
250 |
|
251 |
DESCRIPTION="Id3 library for C/C++" |
252 |
HOMEPAGE="http://id3lib.sourceforge.net/" |
253 |
@@ -23,16 +24,19 @@ DOCS=( AUTHORS ChangeLog HISTORY README THANKS TODO ) |
254 |
|
255 |
S=${WORKDIR}/${P/_} |
256 |
|
257 |
+PATCHES=( |
258 |
+ "${FILESDIR}"/${P}-zlib.patch |
259 |
+ "${FILESDIR}"/${P}-test_io.patch |
260 |
+ "${FILESDIR}"/${P}-autoconf259.patch |
261 |
+ "${FILESDIR}"/${P}-doxyinput.patch |
262 |
+ "${FILESDIR}"/${P}-unicode16.patch |
263 |
+ "${FILESDIR}"/${P}-gcc-4.3.patch |
264 |
+ "${FILESDIR}"/${P}-missing_nullpointer_check.patch |
265 |
+ "${FILESDIR}"/${P}-security.patch |
266 |
+) |
267 |
+ |
268 |
src_prepare() { |
269 |
- epatch \ |
270 |
- "${FILESDIR}"/${P}-zlib.patch \ |
271 |
- "${FILESDIR}"/${P}-test_io.patch \ |
272 |
- "${FILESDIR}"/${P}-autoconf259.patch \ |
273 |
- "${FILESDIR}"/${P}-doxyinput.patch \ |
274 |
- "${FILESDIR}"/${P}-unicode16.patch \ |
275 |
- "${FILESDIR}"/${P}-gcc-4.3.patch \ |
276 |
- "${FILESDIR}"/${P}-missing_nullpointer_check.patch \ |
277 |
- "${FILESDIR}"/${P}-security.patch |
278 |
+ default |
279 |
|
280 |
sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' {.,zlib}/configure.in || die |
281 |
|
282 |
@@ -46,14 +50,14 @@ src_configure() { |
283 |
src_compile() { |
284 |
default |
285 |
if use doc; then |
286 |
- pushd doc >/dev/null |
287 |
+ pushd doc >/dev/null || die |
288 |
doxygen Doxyfile || die |
289 |
- popd >/dev/null |
290 |
+ popd >/dev/null || die |
291 |
fi |
292 |
} |
293 |
|
294 |
src_install() { |
295 |
+ use doc && local HTML_DOCS=( doc/. ) |
296 |
default |
297 |
- prune_libtool_files |
298 |
- use doc && dohtml -r doc |
299 |
+ find "${D}" -name '*.la' -delete || die |
300 |
} |