Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/lame/files/, media-sound/lame/
Date: Wed, 18 Oct 2017 06:27:00
Message-Id: 1508308014.cac3017eed6bec4140ba2dec99d67365bb1da66f.polynomial-c@gentoo
1 commit: cac3017eed6bec4140ba2dec99d67365bb1da66f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 18 06:26:42 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 18 06:26:54 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cac3017e
7
8 media-sound/lame: Security bump to version 3.100 (bug #634598).
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 media-sound/lame/Manifest | 1 +
13 media-sound/lame/files/lame-3.96-ccc.patch | 4 +-
14 media-sound/lame/files/lame-3.98-gtk-path.patch | 4 +-
15 media-sound/lame/files/lame-3.99.5-tinfo.patch | 4 +-
16 media-sound/lame/lame-3.100.ebuild | 80 +++++++++++++++++++++++++
17 5 files changed, 87 insertions(+), 6 deletions(-)
18
19 diff --git a/media-sound/lame/Manifest b/media-sound/lame/Manifest
20 index 34500bc1cc9..1673e9655cd 100644
21 --- a/media-sound/lame/Manifest
22 +++ b/media-sound/lame/Manifest
23 @@ -1,2 +1,3 @@
24 +DIST lame-3.100.tar.gz 1524133 SHA256 ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e SHA512 0844b9eadb4aacf8000444621451277de365041cc1d97b7f7a589da0b7a23899310afd4e4d81114b9912aa97832621d20588034715573d417b2923948c08634b WHIRLPOOL 6e940e2995dec8d1f6b73b87fc5441f9d85bdccfb3faf670ca06f9001ce752e9efbad17dc8fb5641e0e14e4e27aa2ff33f4c2c9df2fafd5e522ca0894e4c8efb
25 DIST lame-3.99.5-automake-2.12.patch.gz 536 SHA256 49833b952d846405fdcc8d87de55f60dda5fb2268e1b36861c53dfd39dbd275d SHA512 9d6211e257d573ced5c29c43ba5d5cc98a231b213d6e0cfc352b14776c06c9e656ed1873d5caae466afb27dfe753eeac0842c7221a8538ccecea8f4ba0f8bfe2 WHIRLPOOL 506e505cbf8659c3f67084565fc581e4dee3ba2016db3d835e3e63d9eca0d4383443e7596229f51b349c1f8c53ef42a581761d27778de4c1e5b698c85418b401
26 DIST lame-3.99.5.tar.gz 1445348 SHA256 24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff SHA512 ce62d7eb9fc8c53c343374ded30f11153a296910f0be7e649197bca7412c6660aad1aa6143d56b750f866229eb492cf7bb4f682535c383fb4aa57d7077d8b4d8 WHIRLPOOL c238107bfb824c67c639875547e24b64ceeeb22125800af753ca42de129138f480574a6cfe132bc2c9cffeb39e54b6d57059be69cb41bdc164cdbf29bd95afe9
27
28 diff --git a/media-sound/lame/files/lame-3.96-ccc.patch b/media-sound/lame/files/lame-3.96-ccc.patch
29 index 4d3491ae425..1ef2fadc58a 100644
30 --- a/media-sound/lame/files/lame-3.96-ccc.patch
31 +++ b/media-sound/lame/files/lame-3.96-ccc.patch
32 @@ -3,8 +3,8 @@ configure is broken, fix it to respect CC. This is only
33 directly broken for ARCH=alpha but would affect anybody with a
34 ccc binary in their PATH. Bug #41908 (26 Jul 2004 agriffis)
35
36 ---- configure.in
37 -+++ configure.in
38 +--- a/configure.in
39 ++++ b/configure.in
40 @@ -915,11 +915,9 @@
41 alpha*-*-linux*)
42
43
44 diff --git a/media-sound/lame/files/lame-3.98-gtk-path.patch b/media-sound/lame/files/lame-3.98-gtk-path.patch
45 index a5843597485..98925c01a30 100644
46 --- a/media-sound/lame/files/lame-3.98-gtk-path.patch
47 +++ b/media-sound/lame/files/lame-3.98-gtk-path.patch
48 @@ -1,5 +1,5 @@
49 ---- gtk.m4
50 -+++ gtk.m4
51 +--- a/gtk.m4
52 ++++ b/gtk.m4
53 @@ -0,0 +1,194 @@
54 +# Configure paths for GTK+
55 +# Owen Taylor 97-11-3
56
57 diff --git a/media-sound/lame/files/lame-3.99.5-tinfo.patch b/media-sound/lame/files/lame-3.99.5-tinfo.patch
58 index cb570e7880f..29d386d01bd 100644
59 --- a/media-sound/lame/files/lame-3.99.5-tinfo.patch
60 +++ b/media-sound/lame/files/lame-3.99.5-tinfo.patch
61 @@ -5,8 +5,8 @@ like used in debian and gentoo
62
63 http://bugs.gentoo.org/454322
64
65 ---- configure.in
66 -+++ configure.in
67 +--- a/configure.in
68 ++++ b/configure.in
69 @@ -372,9 +372,10 @@
70
71 AC_CHECK_HEADERS(termcap.h)
72
73 diff --git a/media-sound/lame/lame-3.100.ebuild b/media-sound/lame/lame-3.100.ebuild
74 new file mode 100644
75 index 00000000000..1c19043df7a
76 --- /dev/null
77 +++ b/media-sound/lame/lame-3.100.ebuild
78 @@ -0,0 +1,80 @@
79 +# Copyright 1999-2017 Gentoo Foundation
80 +# Distributed under the terms of the GNU General Public License v2
81 +
82 +EAPI=6
83 +
84 +inherit autotools multilib-minimal
85 +
86 +DESCRIPTION="LAME Ain't an MP3 Encoder"
87 +HOMEPAGE="http://lame.sourceforge.net/"
88 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
89 +
90 +LICENSE="LGPL-2.1"
91 +SLOT="0"
92 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
93 +IUSE="debug cpu_flags_x86_mmx +frontend mp3rtp sndfile static-libs"
94 +
95 +# These deps are without MULTILIB_USEDEP and are correct since we only build
96 +# libmp3lame for multilib and these deps apply to the lame frontend executable.
97 +RDEPEND="
98 + frontend? (
99 + >=sys-libs/ncurses-5.7-r7:0=
100 + sndfile? ( >=media-libs/libsndfile-1.0.2 )
101 + )
102 +"
103 +DEPEND="${RDEPEND}
104 + virtual/pkgconfig
105 + cpu_flags_x86_mmx? ( dev-lang/nasm )"
106 +
107 +PATCHES=(
108 + "${FILESDIR}"/${PN}-3.96-ccc.patch
109 + "${FILESDIR}"/${PN}-3.98-gtk-path.patch
110 + "${FILESDIR}"/${PN}-3.99.5-tinfo.patch
111 + "${FILESDIR}"/${PN}-3.99.5-msse.patch
112 +)
113 +
114 +src_prepare() {
115 + default
116 +
117 + mkdir libmp3lame/i386/.libs || die #workaround parallel build with nasm
118 +
119 + sed -i -e '/define sp/s/+/ + /g' libmp3lame/i386/nasm.h || die
120 +
121 + use cpu_flags_x86_mmx || sed -i -e '/AC_PATH_PROG/s:nasm:dIsAbLe&:' configure.in #361879
122 +
123 + AT_M4DIR=. eautoreconf
124 +}
125 +
126 +multilib_src_configure() {
127 + local myconf=(
128 + $(use_enable static-libs static)
129 + $(use_enable debug debug norm)
130 + --disable-mp3x
131 + --enable-dynamic-frontends
132 + )
133 + use cpu_flags_x86_mmx && myconf+=( --enable-nasm ) #361879
134 +
135 + # Only build the frontend for the default ABI.
136 + if [ "${ABI}" = "${DEFAULT_ABI}" ] ; then
137 + myconf+=( $(use_enable mp3rtp) $(use_enable frontend) )
138 + use sndfile && myconf+=( --with-fileio=sndfile )
139 + else
140 + myconf+=( --disable-frontend --disable-mp3rtp )
141 + fi
142 +
143 + ECONF_SOURCE="${S}" econf "${myconf[@]}"
144 +}
145 +
146 +multilib_src_install() {
147 + emake DESTDIR="${D}" pkghtmldir="${EPREFIX}/usr/share/doc/${PF}/html" install
148 +}
149 +
150 +multilib_src_install_all() {
151 + cd "${S}"
152 + dobin misc/mlame
153 +
154 + dodoc API ChangeLog HACKING README STYLEGUIDE TODO USAGE
155 + dohtml misc/lameGUI.html Dll/LameDLLInterface.htm
156 +
157 + find "${ED}" -name '*.la' -exec rm -f {} +
158 +}