Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libmp4v2/, media-libs/libmp4v2/files/
Date: Wed, 03 Oct 2018 21:12:12
Message-Id: 1538601087.7419acce365a5445b1d05b11699ac97761569804.asturm@gentoo
1 commit: 7419acce365a5445b1d05b11699ac97761569804
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 3 20:15:57 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 3 21:11:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7419acce
7
8 media-libs/libmp4v2: EAPI-7 bump, fix tag corruption
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11 Package-Manager: Portage-2.3.50, Repoman-2.3.11
12
13 .../{gcc7.patch => libmp4v2-2.0.0-gcc7.patch} | 11 ++++++++---
14 .../files/libmp4v2-2.0.0-mp4tags-corruption.patch | 20 ++++++++++++++++++++
15 ...mp4v2-2.0.0.ebuild => libmp4v2-2.0.0-r1.ebuild} | 22 +++++++++++++---------
16 media-libs/libmp4v2/libmp4v2-2.0.0.ebuild | 4 ++--
17 4 files changed, 43 insertions(+), 14 deletions(-)
18
19 diff --git a/media-libs/libmp4v2/files/gcc7.patch b/media-libs/libmp4v2/files/libmp4v2-2.0.0-gcc7.patch
20 similarity index 64%
21 rename from media-libs/libmp4v2/files/gcc7.patch
22 rename to media-libs/libmp4v2/files/libmp4v2-2.0.0-gcc7.patch
23 index fbfae97e58c..156f0fcbaa0 100644
24 --- a/media-libs/libmp4v2/files/gcc7.patch
25 +++ b/media-libs/libmp4v2/files/libmp4v2-2.0.0-gcc7.patch
26 @@ -1,8 +1,13 @@
27 https://bugs.gentoo.org/show_bug.cgi?id=600892
28
29 ---- mp4v2-2.0.0/src/rtphint.cpp 2012-05-20 16:11:53.000000000 -0600
30 -+++ /tmp/rtphint.cpp 2017-05-16 10:25:26.930705191 -0600
31 -@@ -339,7 +339,7 @@
32 +Description: Fix pointer comparison (FTBFS on GCC 7)
33 +Author: Philip Chung <philipchung1995@×××××.com>
34 +Bug-Debian: https://bugs.debian.org/853560
35 +Last-Update: 2017-09-04
36 +
37 +--- a/src/rtphint.cpp
38 ++++ b/src/rtphint.cpp
39 +@@ -339,7 +339,7 @@ void MP4RtpHintTrack::GetPayload(
40 pSlash = strchr(pSlash, '/');
41 if (pSlash != NULL) {
42 pSlash++;
43
44 diff --git a/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch b/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch
45 new file mode 100644
46 index 00000000000..1c41a41da98
47 --- /dev/null
48 +++ b/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch
49 @@ -0,0 +1,20 @@
50 +From: "Matteo F. Vescovi" <mfv@××××××.org>
51 +Date: Thu, 5 Nov 2015 15:26:00 +0100
52 +Subject: Fix_mp4tags_corruption
53 +
54 +---
55 + util/mp4tags.cpp | 1 +
56 + 1 file changed, 1 insertion(+)
57 +
58 +diff --git a/util/mp4tags.cpp b/util/mp4tags.cpp
59 +index 1b9e866..80e89d4 100644
60 +--- a/util/mp4tags.cpp
61 ++++ b/util/mp4tags.cpp
62 +@@ -539,6 +539,7 @@ extern "C" int
63 + else {
64 + fprintf( stderr, "Art file %s not found\n", tags[i] );
65 + }
66 ++ break;
67 + }
68 + case OPT_ALBUM_ARTIST:
69 + MP4TagsSetAlbumArtist( mdata, tags[i] );
70 \ No newline at end of file
71
72 diff --git a/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild b/media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild
73 similarity index 53%
74 copy from media-libs/libmp4v2/libmp4v2-2.0.0.ebuild
75 copy to media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild
76 index b52cf1e5e63..9f5cac1bf14 100644
77 --- a/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild
78 +++ b/media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild
79 @@ -1,10 +1,10 @@
80 -# Copyright 1999-2017 Gentoo Foundation
81 +# Copyright 1999-2018 Gentoo Authors
82 # Distributed under the terms of the GNU General Public License v2
83
84 -EAPI=4
85 -inherit libtool eutils
86 +EAPI=7
87
88 MY_P=${P/lib}
89 +inherit libtool
90
91 DESCRIPTION="Functions for accessing ISO-IEC:14496-1:2001 MPEG-4 standard"
92 HOMEPAGE="https://code.google.com/p/mp4v2/"
93 @@ -12,20 +12,24 @@ SRC_URI="https://mp4v2.googlecode.com/files/${MY_P}.tar.bz2"
94
95 LICENSE="MPL-1.1"
96 SLOT="0"
97 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
98 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
99 IUSE="static-libs test utils"
100
101 -RDEPEND=""
102 -DEPEND="sys-apps/sed
103 +BDEPEND="sys-apps/sed
104 utils? ( sys-apps/help2man )
105 test? ( dev-util/dejagnu )"
106
107 -DOCS="doc/*.txt README"
108 +DOCS=( doc/{Authors,BuildSource,Documentation,ReleaseNotes,ToolGuide}.txt README )
109
110 S=${WORKDIR}/${MY_P}
111
112 +PATCHES=(
113 + "${FILESDIR}/${P}-gcc7.patch"
114 + "${FILESDIR}/${P}-mp4tags-corruption.patch"
115 +)
116 +
117 src_prepare() {
118 - epatch "${FILESDIR}/gcc7.patch"
119 + default
120 elibtoolize
121 }
122
123 @@ -38,5 +42,5 @@ src_configure() {
124
125 src_install() {
126 default
127 - find "${ED}" -name '*.la' -exec rm -f {} +
128 + find "${D}" -name '*.la' -delete || die
129 }
130
131 diff --git a/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild b/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild
132 index b52cf1e5e63..cd9550fdec8 100644
133 --- a/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild
134 +++ b/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild
135 @@ -1,4 +1,4 @@
136 -# Copyright 1999-2017 Gentoo Foundation
137 +# Copyright 1999-2018 Gentoo Authors
138 # Distributed under the terms of the GNU General Public License v2
139
140 EAPI=4
141 @@ -25,7 +25,7 @@ DOCS="doc/*.txt README"
142 S=${WORKDIR}/${MY_P}
143
144 src_prepare() {
145 - epatch "${FILESDIR}/gcc7.patch"
146 + epatch "${FILESDIR}/${P}-gcc7.patch"
147 elibtoolize
148 }