-diff -urNad /home/debian/mad/libid3tag-0.15.1b/libid3tag-0.15.1b/genre.dat libid3tag-0.15.1b/genre.dat
---- a/libid3tag-0.15.1b/genre.dat 2004-02-16 21:34:39.000000000 -0500
-+++ b/libid3tag-0.15.1b/genre.dat 2004-09-06 09:50:33.000000000 -0400
+--- a/genre.dat
++++ b/genre.dat
@@ -277,8 +277,8 @@
{ 'P', 'u', 'n', 'k', ' ', 'R', 'o', 'c', 'k', 0 };
static id3_ucs4_t const genre_DRUM_SOLO[] =
genre_EURO_HOUSE,
genre_DANCE_HALL,
genre_GOA,
-diff -urNad /home/debian/mad/libid3tag-0.15.1b/libid3tag-0.15.1b/genre.dat.in libid3tag-0.15.1b/genre.dat.in
---- a/libid3tag-0.15.1b/genre.dat.in 2004-01-23 04:41:32.000000000 -0500
-+++ b/libid3tag-0.15.1b/genre.dat.in 2004-09-06 09:50:33.000000000 -0400
+--- a/genre.dat.in
++++ b/genre.dat.in
@@ -153,7 +153,7 @@
Duet
Punk Rock
-diff -urNad libid3tag-0.15.1b~/compat.gperf libid3tag-0.15.1b/compat.gperf
---- libid3tag-0.15.1b~/compat.gperf 2004-01-23 09:41:32.000000000 +0000
-+++ libid3tag-0.15.1b/compat.gperf 2007-01-14 14:36:53.000000000 +0000
+--- a/compat.gperf
++++ b/compat.gperf
@@ -236,6 +236,10 @@
encoding = id3_parse_uint(&data, 1);
+ continue;
+ }
- if (id3_ucs4_length(string) < 4) {
- free(string);
-diff -urNad libid3tag-0.15.1b~/parse.c libid3tag-0.15.1b/parse.c
---- libid3tag-0.15.1b~/parse.c 2004-01-23 09:41:32.000000000 +0000
-+++ libid3tag-0.15.1b/parse.c 2007-01-14 14:37:34.000000000 +0000
+ if (string == 0)
+ continue;
+--- a/parse.c
++++ b/parse.c
@@ -165,6 +165,9 @@
case ID3_FIELD_TEXTENCODING_UTF_8:
ucs4 = id3_utf8_deserialize(ptr, length);
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-# eutils for einstalldocs
-inherit epatch epunt-cxx eutils libtool ltprune multilib multilib-minimal
+EAPI=7
+
+inherit autotools multilib-minimal
DESCRIPTION="The MAD id3tag library"
HOMEPAGE="http://www.underbit.com/products/mad/"
LICENSE="GPL-2"
SLOT="0"
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"
-IUSE="debug static-libs"
+IUSE="debug"
-RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
+RDEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}
- dev-util/gperf"
+ >=dev-util/gperf-3.1"
+
+PATCHES=(
+ "${FILESDIR}"/${PV}/${P}-64bit-long.patch
+ "${FILESDIR}"/${PV}/${P}-a_capella.patch
+ "${FILESDIR}"/${PV}/${P}-compat.patch
+ "${FILESDIR}"/${PV}/${P}-file-write.patch
+ "${FILESDIR}"/${PV}/${P}-fix_overflow.patch
+ "${FILESDIR}"/${PV}/${P}-tag.patch
+ "${FILESDIR}"/${PV}/${P}-unknown-encoding.patch
+ "${FILESDIR}"/${PV}/${P}-utf16.patchlibid3tag-0.15.1b-utf16.patch
+ "${FILESDIR}"/${P}-fix-signature.patch
+)
src_prepare() {
- epunt_cxx #74489
- epatch "${FILESDIR}/${PV}"/*.patch
- # gperf 3.1 and newer generate code with a size_t length parameter,
- # older versions are incompatible and take an unsigned int.
- has_version '>=dev-util/gperf-3.1' && epatch "${FILESDIR}/${P}-fix-signature.patch"
-
- elibtoolize #sane .so versionning on fbsd and .so -> .so.version symlink
+ default
+ eautoreconf
}
multilib_src_configure() {
ECONF_SOURCE="${S}" econf \
- $(use_enable static-libs static) \
+ --disable-static \
$(use_enable debug debugging)
}
}
multilib_src_install_all() {
- prune_libtool_files --all
einstalldocs
+
+ # no static archives
+ find "${D}" -name '*.la' -delete || die
}