Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/speex/, media-libs/speex/files/
Date: Fri, 03 Mar 2017 23:12:00
Message-Id: 1488582698.2776a627b16b7a06060cd2d563a77f35680f9910.kensington@gentoo
1 commit: 2776a627b16b7a06060cd2d563a77f35680f9910
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Fri Mar 3 20:59:43 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 3 23:11:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2776a627
7
8 media-libs/speex: version bump to 1.2.0
9
10 Move to EAPI 6
11 Gentoo-Bug: https://bugs.gentoo.org/596400
12
13 media-libs/speex/Manifest | 1 +
14 media-libs/speex/files/speex-1.2.0-configure.patch | 27 ++++++++++
15 media-libs/speex/metadata.xml | 19 ++++---
16 media-libs/speex/speex-1.2.0.ebuild | 59 ++++++++++++++++++++++
17 4 files changed, 99 insertions(+), 7 deletions(-)
18
19 diff --git a/media-libs/speex/Manifest b/media-libs/speex/Manifest
20 index d7e33b8ef61..e5c7256f86e 100644
21 --- a/media-libs/speex/Manifest
22 +++ b/media-libs/speex/Manifest
23 @@ -1 +1,2 @@
24 +DIST speex-1.2.0.tar.gz 1047080 SHA256 eaae8af0ac742dc7d542c9439ac72f1f385ce838392dc849cae4536af9210094 SHA512 7fe10838c7d1bafcbe42295b82b79262420dba793b8a4388e2f73a3007850b5572face1b5308d9f4e8d7dfc9cb1c016cbad88cd65b2892667986107ed946836b WHIRLPOOL 25274b640424318e06bceeb33c748f1299ebb35297ebbfe4a80aa183beb1fe4d3d656597e48d781c77ae104f9911770ffcebe9ff20a0fa555fbf68a07d5841d1
25 DIST speex-1.2rc1.tar.gz 1061882 SHA256 342f30dc57bd4a6dad41398365baaa690429660b10d866b7d508e8f1179cb7a6 SHA512 bdf1ddb2d60496ab220b94c1bec7a43f267fc964fdbb5cc9f24b71b9b571f237f5ce98c1d74b02699d71a95281f4694ff464ebec25e3b135244e5b3099cb1813 WHIRLPOOL c984f04a9c78332509b76ef98ff0eb84b8b4b8755d02890c5de41501325c2055e42243eaed2671e0087c8ca2cdea5967e5113c3d85a53f3704a8d8a3cfc487cb
26
27 diff --git a/media-libs/speex/files/speex-1.2.0-configure.patch b/media-libs/speex/files/speex-1.2.0-configure.patch
28 new file mode 100644
29 index 00000000000..e0aca82b908
30 --- /dev/null
31 +++ b/media-libs/speex/files/speex-1.2.0-configure.patch
32 @@ -0,0 +1,27 @@
33 +diff -Naur speex-1.2.0.orig/configure.ac speex-1.2.0/configure.ac
34 +--- speex-1.2.0.orig/configure.ac 2016-12-12 13:53:12.254983043 -0800
35 ++++ speex-1.2.0/configure.ac 2016-12-12 13:58:44.950298126 -0800
36 +@@ -138,7 +138,7 @@
37 + AC_ARG_ENABLE(sse, [ --enable-sse Enable SSE support], [
38 + if test "x$enableval" != xno; then
39 + has_sse=yes
40 +-CFLAGS="$CFLAGS -O3 -msse"
41 ++CFLAGS="$CFLAGS -msse"
42 + else
43 + has_sse=no
44 + fi
45 +@@ -257,7 +257,13 @@
46 +
47 + AM_CONDITIONAL(BUILD_VORBIS_PSY, [test "x$vorbis_psy" = "xyes"])
48 +
49 +-PKG_CHECK_MODULES([SPEEXDSP], [speexdsp], [AC_DEFINE([USE_SPEEXDSP], [], [Use SpeexDSP library])], [speexdsp_failed=yes])
50 ++AC_ARG_WITH(speexdsp, [ --without-speexdsp Do not build with SpeexDSP])
51 ++if test "x$withval" != xno; then
52 ++ PKG_CHECK_MODULES([SPEEXDSP], [speexdsp], [AC_DEFINE([USE_SPEEXDSP], [], [Use SpeexDSP library])])
53 ++else
54 ++ AC_DEFINE([USE_SPEEXDSP], false)
55 ++fi
56 ++
57 +
58 +
59 + AC_CHECK_SIZEOF([int16_t])
60
61 diff --git a/media-libs/speex/metadata.xml b/media-libs/speex/metadata.xml
62 index 18e9eb1cce0..7617efb0161 100644
63 --- a/media-libs/speex/metadata.xml
64 +++ b/media-libs/speex/metadata.xml
65 @@ -1,11 +1,16 @@
66 <?xml version="1.0" encoding="UTF-8"?>
67 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
68 <pkgmetadata>
69 -<maintainer type="project">
70 - <email>sound@g.o</email>
71 - <name>Gentoo Sound project</name>
72 -</maintainer>
73 -<upstream>
74 - <remote-id type="cpe">cpe:/a:xiph:speex</remote-id>
75 -</upstream>
76 + <maintainer type="project">
77 + <email>sound@g.o</email>
78 + <name>Gentoo Sound project</name>
79 + </maintainer>
80 + <upstream>
81 + <remote-id type="cpe">cpe:/a:xiph:speex</remote-id>
82 + </upstream>
83 + <use>
84 + <flag name="armv5te">Enables optimizations for armv5te processors.</flag>
85 + <flag name="utils">Enables speex commandline utilities (speexenc, speexdec).</flag>
86 + <flag name="vbr">Enable VBR support.</flag>
87 + </use>
88 </pkgmetadata>
89
90 diff --git a/media-libs/speex/speex-1.2.0.ebuild b/media-libs/speex/speex-1.2.0.ebuild
91 new file mode 100644
92 index 00000000000..33b2bb8cee1
93 --- /dev/null
94 +++ b/media-libs/speex/speex-1.2.0.ebuild
95 @@ -0,0 +1,59 @@
96 +# Copyright 1999-2017 Gentoo Foundation
97 +# Distributed under the terms of the GNU General Public License v2
98 +
99 +EAPI=6
100 +inherit autotools flag-o-matic multilib-minimal
101 +
102 +MY_P=${P/_}
103 +MY_P=${MY_P/_p/.}
104 +
105 +DESCRIPTION="Audio compression format designed for speech"
106 +HOMEPAGE="http://www.speex.org/"
107 +SRC_URI="http://downloads.xiph.org/releases/speex/${MY_P}.tar.gz"
108 +
109 +LICENSE="BSD"
110 +SLOT="0"
111 +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"
112 +IUSE="armv5te cpu_flags_x86_sse static-libs utils +vbr"
113 +
114 +RDEPEND="
115 + utils? (
116 + media-libs/libogg:=
117 + media-libs/speexdsp
118 + )"
119 +DEPEND="${RDEPEND}
120 + virtual/pkgconfig"
121 +
122 +S=${WORKDIR}/${MY_P}
123 +
124 +PATCHES=( "${FILESDIR}/${P}-configure.patch" )
125 +
126 +src_prepare() {
127 + default
128 +
129 + sed -i \
130 + -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
131 + libspeex/Makefile.am || die
132 +
133 + eautoreconf
134 +}
135 +
136 +multilib_src_configure() {
137 + append-lfs-flags
138 +
139 + # Can also be configured without floating point
140 + # --enable-fixed-point
141 + ECONF_SOURCE="${S}" econf \
142 + $(use_enable static-libs static) \
143 + $(usex arm $(usex armv5te '--disable-arm4-asm' '--enable-arm4-asm') '--disable-arm4-asm') \
144 + $(use_enable armv5te arm5e-asm) \
145 + $(use_enable cpu_flags_x86_sse sse) \
146 + $(use_enable vbr) \
147 + $(use_with utils speexdsp) \
148 + $(use_enable utils binaries)
149 +}
150 +
151 +multilib_src_install_all() {
152 + default
153 + find "${D}" -name '*.la' -delete || die
154 +}