1 |
commit: dd253feed23adc325b7e6bcf4415c2dd5f4f42f6 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 23 15:25:03 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 23 15:25:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd253fee |
7 |
|
8 |
media-libs/libid3tag: Port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.82, Repoman-2.3.20 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
.../0.15.1b/libid3tag-0.15.1b-64bit-long.patch | 4 +-- |
14 |
.../0.15.1b/libid3tag-0.15.1b-a_capella.patch | 10 +++--- |
15 |
.../0.15.1b/libid3tag-0.15.1b-fix_overflow.patch | 4 +-- |
16 |
.../files/0.15.1b/libid3tag-0.15.1b-tag.patch | 4 +-- |
17 |
.../libid3tag-0.15.1b-unknown-encoding.patch | 14 ++++---- |
18 |
media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild | 39 +++++++++++++--------- |
19 |
6 files changed, 40 insertions(+), 35 deletions(-) |
20 |
|
21 |
diff --git a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-64bit-long.patch b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-64bit-long.patch |
22 |
index 852d9efd69b..bb320c7aa70 100644 |
23 |
--- a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-64bit-long.patch |
24 |
+++ b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-64bit-long.patch |
25 |
@@ -1,5 +1,5 @@ |
26 |
---- id3tag.h.orig 2004-01-23 18:22:46.000000000 -0500 |
27 |
-+++ id3tag.h 2008-05-04 19:46:33.000000000 -0400 |
28 |
+--- a/id3tag.h |
29 |
++++ b/id3tag.h |
30 |
@@ -25,6 +25,8 @@ |
31 |
# ifndef LIBID3TAG_ID3TAG_H |
32 |
# define LIBID3TAG_ID3TAG_H |
33 |
|
34 |
diff --git a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-a_capella.patch b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-a_capella.patch |
35 |
index 2adc2e6ced2..e196cb4df26 100644 |
36 |
--- a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-a_capella.patch |
37 |
+++ b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-a_capella.patch |
38 |
@@ -1,6 +1,5 @@ |
39 |
-diff -urNad /home/debian/mad/libid3tag-0.15.1b/libid3tag-0.15.1b/genre.dat libid3tag-0.15.1b/genre.dat |
40 |
---- a/libid3tag-0.15.1b/genre.dat 2004-02-16 21:34:39.000000000 -0500 |
41 |
-+++ b/libid3tag-0.15.1b/genre.dat 2004-09-06 09:50:33.000000000 -0400 |
42 |
+--- a/genre.dat |
43 |
++++ b/genre.dat |
44 |
@@ -277,8 +277,8 @@ |
45 |
{ 'P', 'u', 'n', 'k', ' ', 'R', 'o', 'c', 'k', 0 }; |
46 |
static id3_ucs4_t const genre_DRUM_SOLO[] = |
47 |
@@ -21,9 +20,8 @@ diff -urNad /home/debian/mad/libid3tag-0.15.1b/libid3tag-0.15.1b/genre.dat libid |
48 |
genre_EURO_HOUSE, |
49 |
genre_DANCE_HALL, |
50 |
genre_GOA, |
51 |
-diff -urNad /home/debian/mad/libid3tag-0.15.1b/libid3tag-0.15.1b/genre.dat.in libid3tag-0.15.1b/genre.dat.in |
52 |
---- a/libid3tag-0.15.1b/genre.dat.in 2004-01-23 04:41:32.000000000 -0500 |
53 |
-+++ b/libid3tag-0.15.1b/genre.dat.in 2004-09-06 09:50:33.000000000 -0400 |
54 |
+--- a/genre.dat.in |
55 |
++++ b/genre.dat.in |
56 |
@@ -153,7 +153,7 @@ |
57 |
Duet |
58 |
Punk Rock |
59 |
|
60 |
diff --git a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-fix_overflow.patch b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-fix_overflow.patch |
61 |
index 26c54c5d2cf..5e0a1f60e7a 100644 |
62 |
--- a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-fix_overflow.patch |
63 |
+++ b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-fix_overflow.patch |
64 |
@@ -1,5 +1,5 @@ |
65 |
---- field.c.orig 2008-05-05 09:49:15.000000000 -0400 |
66 |
-+++ field.c 2008-05-05 09:49:25.000000000 -0400 |
67 |
+--- a/field.c |
68 |
++++ b/field.c |
69 |
@@ -291,7 +291,7 @@ |
70 |
|
71 |
end = *ptr + length; |
72 |
|
73 |
diff --git a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-tag.patch b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-tag.patch |
74 |
index 2badfb35cff..4d13e47018c 100644 |
75 |
--- a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-tag.patch |
76 |
+++ b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-tag.patch |
77 |
@@ -1,5 +1,5 @@ |
78 |
---- tag.c.orig Fri Apr 18 18:14:33 2003 |
79 |
-+++ tag.c Mon Sep 26 22:29:24 2005 |
80 |
+--- a/tag.c |
81 |
++++ b/tag.c |
82 |
@@ -714,9 +714,12 @@ |
83 |
|
84 |
frame = id3_tag_findframe(tag, ID3_FRAME_TRACK, 0); |
85 |
|
86 |
diff --git a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-unknown-encoding.patch b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-unknown-encoding.patch |
87 |
index 7c70d002038..91b3d2a5eb0 100644 |
88 |
--- a/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-unknown-encoding.patch |
89 |
+++ b/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-unknown-encoding.patch |
90 |
@@ -1,6 +1,5 @@ |
91 |
-diff -urNad libid3tag-0.15.1b~/compat.gperf libid3tag-0.15.1b/compat.gperf |
92 |
---- libid3tag-0.15.1b~/compat.gperf 2004-01-23 09:41:32.000000000 +0000 |
93 |
-+++ libid3tag-0.15.1b/compat.gperf 2007-01-14 14:36:53.000000000 +0000 |
94 |
+--- a/compat.gperf |
95 |
++++ b/compat.gperf |
96 |
@@ -236,6 +236,10 @@ |
97 |
|
98 |
encoding = id3_parse_uint(&data, 1); |
99 |
@@ -10,11 +9,10 @@ diff -urNad libid3tag-0.15.1b~/compat.gperf libid3tag-0.15.1b/compat.gperf |
100 |
+ continue; |
101 |
+ } |
102 |
|
103 |
- if (id3_ucs4_length(string) < 4) { |
104 |
- free(string); |
105 |
-diff -urNad libid3tag-0.15.1b~/parse.c libid3tag-0.15.1b/parse.c |
106 |
---- libid3tag-0.15.1b~/parse.c 2004-01-23 09:41:32.000000000 +0000 |
107 |
-+++ libid3tag-0.15.1b/parse.c 2007-01-14 14:37:34.000000000 +0000 |
108 |
+ if (string == 0) |
109 |
+ continue; |
110 |
+--- a/parse.c |
111 |
++++ b/parse.c |
112 |
@@ -165,6 +165,9 @@ |
113 |
case ID3_FIELD_TEXTENCODING_UTF_8: |
114 |
ucs4 = id3_utf8_deserialize(ptr, length); |
115 |
|
116 |
diff --git a/media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild b/media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild |
117 |
index 0a3a7443ad6..bb711194b43 100644 |
118 |
--- a/media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild |
119 |
+++ b/media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild |
120 |
@@ -1,9 +1,9 @@ |
121 |
# Copyright 1999-2019 Gentoo Authors |
122 |
# Distributed under the terms of the GNU General Public License v2 |
123 |
|
124 |
-EAPI=5 |
125 |
-# eutils for einstalldocs |
126 |
-inherit epatch epunt-cxx eutils libtool ltprune multilib multilib-minimal |
127 |
+EAPI=7 |
128 |
+ |
129 |
+inherit autotools multilib-minimal |
130 |
|
131 |
DESCRIPTION="The MAD id3tag library" |
132 |
HOMEPAGE="http://www.underbit.com/products/mad/" |
133 |
@@ -12,25 +12,32 @@ SRC_URI="mirror://sourceforge/mad/${P}.tar.gz" |
134 |
LICENSE="GPL-2" |
135 |
SLOT="0" |
136 |
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
137 |
-IUSE="debug static-libs" |
138 |
+IUSE="debug" |
139 |
|
140 |
-RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]" |
141 |
+RDEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]" |
142 |
DEPEND="${RDEPEND} |
143 |
- dev-util/gperf" |
144 |
+ >=dev-util/gperf-3.1" |
145 |
+ |
146 |
+PATCHES=( |
147 |
+ "${FILESDIR}"/${PV}/${P}-64bit-long.patch |
148 |
+ "${FILESDIR}"/${PV}/${P}-a_capella.patch |
149 |
+ "${FILESDIR}"/${PV}/${P}-compat.patch |
150 |
+ "${FILESDIR}"/${PV}/${P}-file-write.patch |
151 |
+ "${FILESDIR}"/${PV}/${P}-fix_overflow.patch |
152 |
+ "${FILESDIR}"/${PV}/${P}-tag.patch |
153 |
+ "${FILESDIR}"/${PV}/${P}-unknown-encoding.patch |
154 |
+ "${FILESDIR}"/${PV}/${P}-utf16.patchlibid3tag-0.15.1b-utf16.patch |
155 |
+ "${FILESDIR}"/${P}-fix-signature.patch |
156 |
+) |
157 |
|
158 |
src_prepare() { |
159 |
- epunt_cxx #74489 |
160 |
- epatch "${FILESDIR}/${PV}"/*.patch |
161 |
- # gperf 3.1 and newer generate code with a size_t length parameter, |
162 |
- # older versions are incompatible and take an unsigned int. |
163 |
- has_version '>=dev-util/gperf-3.1' && epatch "${FILESDIR}/${P}-fix-signature.patch" |
164 |
- |
165 |
- elibtoolize #sane .so versionning on fbsd and .so -> .so.version symlink |
166 |
+ default |
167 |
+ eautoreconf |
168 |
} |
169 |
|
170 |
multilib_src_configure() { |
171 |
ECONF_SOURCE="${S}" econf \ |
172 |
- $(use_enable static-libs static) \ |
173 |
+ --disable-static \ |
174 |
$(use_enable debug debugging) |
175 |
} |
176 |
|
177 |
@@ -48,6 +55,8 @@ multilib_src_install() { |
178 |
} |
179 |
|
180 |
multilib_src_install_all() { |
181 |
- prune_libtool_files --all |
182 |
einstalldocs |
183 |
+ |
184 |
+ # no static archives |
185 |
+ find "${D}" -name '*.la' -delete || die |
186 |
} |