1 |
commit: 9c4b7d38cca7de8c15a17adcd077c4825a6bf077 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 23 23:48:14 2015 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 23 23:48:26 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c4b7d38 |
7 |
|
8 |
media-libs/libsndfile: Security bump to version 1.0.26 (bug #566680). |
9 |
|
10 |
Package-Manager: portage-2.2.25 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
media-libs/libsndfile/Manifest | 1 + |
14 |
media-libs/libsndfile/libsndfile-1.0.26.ebuild | 97 ++++++++++++++++++++++++++ |
15 |
2 files changed, 98 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/libsndfile/Manifest b/media-libs/libsndfile/Manifest |
18 |
index ccde3aa..a45ef2e 100644 |
19 |
--- a/media-libs/libsndfile/Manifest |
20 |
+++ b/media-libs/libsndfile/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST libsndfile-1.0.25.tar.gz 1060692 SHA256 59016dbd326abe7e2366ded5c344c853829bebfd1702ef26a07ef662d6aa4882 SHA512 4ca9780ed0a915aca8a10ef91bf4bf48b05ecb85285c2c3fe7eef1d46d3e0747e61416b6bddbef369bd69adf4b796ff5f61380e0bc998906b170a93341ba6f78 WHIRLPOOL 37ef0a66f11d3f60741fe40bce2b255f44284cf78f7c762542def2aab0eefed1360181bb7f29b9850c11e8672a78bc5a687bc04f2cc349e45dfd24721bea8f29 |
23 |
+DIST libsndfile-1.0.26.tar.gz 1080727 SHA256 cd6520ec763d1a45573885ecb1f8e4e42505ac12180268482a44b28484a25092 SHA512 49a131482f9735e2f171ab7b59770cafc6b92e177f88bed9d2e6189390abc5aa473081dce3e4ec3c0e32b6f3d8c19901136b3df15b9222c11b578f522e88257e WHIRLPOOL 30ea43dab113a4e0fd5cf65e340f50943dae2a100a8b029473adb3c21f388d05a7e124d6219b25c22dc29efa3ab24a600eec958b435f7a050129e17d809e89fb |
24 |
|
25 |
diff --git a/media-libs/libsndfile/libsndfile-1.0.26.ebuild b/media-libs/libsndfile/libsndfile-1.0.26.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..d53ee79 |
28 |
--- /dev/null |
29 |
+++ b/media-libs/libsndfile/libsndfile-1.0.26.ebuild |
30 |
@@ -0,0 +1,97 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+AUTOTOOLS_AUTORECONF=1 |
38 |
+AUTOTOOLS_PRUNE_LIBTOOL_FILES=all |
39 |
+PYTHON_COMPAT=( python2_7 pypy ) |
40 |
+inherit autotools-multilib flag-o-matic python-any-r1 |
41 |
+ |
42 |
+MY_P=${P/_pre/pre} |
43 |
+ |
44 |
+DESCRIPTION="A C library for reading and writing files containing sampled sound" |
45 |
+HOMEPAGE="http://www.mega-nerd.com/libsndfile" |
46 |
+if [[ "${MY_P}" == "${P}" ]]; then |
47 |
+ SRC_URI="http://www.mega-nerd.com/libsndfile/files/${P}.tar.gz" |
48 |
+else |
49 |
+ SRC_URI="http://www.mega-nerd.com/tmp/${MY_P}b.tar.gz" |
50 |
+fi |
51 |
+ |
52 |
+LICENSE="LGPL-2.1" |
53 |
+SLOT="0" |
54 |
+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 ~x64-solaris ~x86-solaris" |
55 |
+IUSE="alsa minimal sqlite static-libs test" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ !minimal? ( >=media-libs/flac-1.2.1-r5[${MULTILIB_USEDEP}] |
59 |
+ >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
60 |
+ >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] ) |
61 |
+ alsa? ( media-libs/alsa-lib ) |
62 |
+ sqlite? ( >=dev-db/sqlite-3.2 ) |
63 |
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r6 |
64 |
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )" |
65 |
+DEPEND="${RDEPEND} |
66 |
+ virtual/pkgconfig |
67 |
+ test? ( ${PYTHON_DEPS} )" |
68 |
+ |
69 |
+S=${WORKDIR}/${MY_P} |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ # fix adding largefile flags on amd64 multilib |
73 |
+ # https://github.com/erikd/libsndfile/commit/d464da7dba4d5 |
74 |
+ sed -i -e 's:AC_SYS_EXTRA_LARGEFILE:AC_SYS_LARGEFILE:' configure.ac || die |
75 |
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' {examples,tests}/Makefile.am || die |
76 |
+ |
77 |
+ local PATCHES=( |
78 |
+ "${FILESDIR}"/${PN}-1.0.17-regtests-need-sqlite.patch |
79 |
+ "${FILESDIR}"/${PN}-1.0.25-make.patch |
80 |
+ ) |
81 |
+ |
82 |
+ AT_M4DIR=M4 \ |
83 |
+ autotools-multilib_src_prepare |
84 |
+ epunt_cxx |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ my_configure() { |
89 |
+ local myeconfargs=( |
90 |
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html |
91 |
+ $(use_enable static-libs static) |
92 |
+ $(use_enable !minimal external-libs) |
93 |
+ --disable-octave |
94 |
+ --disable-gcc-pipe |
95 |
+ ) |
96 |
+ |
97 |
+ if [ "${ABI}" = "${DEFAULT_ABI}" ] ; then |
98 |
+ myeconfargs+=( |
99 |
+ $(use_enable alsa) |
100 |
+ $(use_enable sqlite) |
101 |
+ ) |
102 |
+ else |
103 |
+ myeconfargs+=( |
104 |
+ --disable-alsa |
105 |
+ --disable-sqlite |
106 |
+ ) |
107 |
+ fi |
108 |
+ |
109 |
+ autotools-utils_src_configure |
110 |
+ |
111 |
+ if [ "${ABI}" != "${DEFAULT_ABI}" ] ; then |
112 |
+ # Do not build useless stuff. |
113 |
+ for i in man doc examples regtest programs ; do |
114 |
+ sed -i -e "s/ ${i}//" "${BUILD_DIR}/Makefile" || die |
115 |
+ done |
116 |
+ fi |
117 |
+ } |
118 |
+ |
119 |
+ multilib_parallel_foreach_abi my_configure |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ # note: --htmldir support fixed upstream already, |
124 |
+ # next version should pass --htmldir to configure instead |
125 |
+ autotools-multilib_src_install \ |
126 |
+ htmldocdir="${EPREFIX}/usr/share/doc/${PF}/html" |
127 |
+} |