Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libsamplerate/
Date: Wed, 21 Sep 2016 12:53:07
Message-Id: 1474462344.7f3370dc584fdf7c469b75f5678eb7651b86969f.aballier@gentoo
1 commit: 7f3370dc584fdf7c469b75f5678eb7651b86969f
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 21 12:52:15 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 21 12:52:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f3370dc
7
8 media-libs/libsamplerate: bump to 0.1.9
9
10 Package-Manager: portage-2.3.1
11
12 media-libs/libsamplerate/Manifest | 1 +
13 .../libsamplerate/libsamplerate-0.1.9.ebuild | 62 ++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/media-libs/libsamplerate/Manifest b/media-libs/libsamplerate/Manifest
17 index 3575a6b..9c39646 100644
18 --- a/media-libs/libsamplerate/Manifest
19 +++ b/media-libs/libsamplerate/Manifest
20 @@ -1 +1,2 @@
21 DIST libsamplerate-0.1.8.tar.gz 4303330 SHA256 93b54bdf46d5e6d2354b7034395fe329c222a966790de34520702bb9642f1c06 SHA512 85d93df24d9d62e7803a5d0ac5d268b2085214adcb160e32fac316b12ee8a0ce36ccfb433a3c0a08f6e3ec418a5962bdb84f8a11262286a9b347436983029a7d WHIRLPOOL 5aff2290372570178752fedb5cafe1cb8d30cd8aa0910f8f7a2333d41746ac7a88e5cc7f7228eb8ba60aa2908fad0242214ac3e29346db04cc1e9cc66386eddf
22 +DIST libsamplerate-0.1.9.tar.gz 4336641 SHA256 0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1 SHA512 78596657963cbf06785e3e6e1190b093df71da52ca340e75bd8246a962cd79dd1c90fa5527c607cebcb296e2c1ee605015278b274e3b768f2f3fbeb0eadfb728 WHIRLPOOL 3591f08cd64f731a8bdd02daabec6b7bc6bcd9f6806bab4f687f3c120481d4cfbcf5fd7752052a6147358b7471549c99d963615bda89b9679b1e091b636e7b8e
23
24 diff --git a/media-libs/libsamplerate/libsamplerate-0.1.9.ebuild b/media-libs/libsamplerate/libsamplerate-0.1.9.ebuild
25 new file mode 100644
26 index 00000000..b48dc71
27 --- /dev/null
28 +++ b/media-libs/libsamplerate/libsamplerate-0.1.9.ebuild
29 @@ -0,0 +1,62 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +AUTOTOOLS_AUTORECONF=1
37 +AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
38 +inherit autotools-multilib
39 +
40 +DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio"
41 +HOMEPAGE="http://www.mega-nerd.com/SRC/"
42 +SRC_URI="http://www.mega-nerd.com/SRC/${P}.tar.gz"
43 +
44 +LICENSE="BSD-2"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
47 +IUSE="sndfile static-libs"
48 +
49 +RDEPEND="sndfile? ( >=media-libs/libsndfile-1.0.2 )
50 + abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r6
51 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
52 +DEPEND="${RDEPEND}
53 + virtual/pkgconfig"
54 +
55 +DOCS=( AUTHORS ChangeLog NEWS README )
56 +
57 +src_prepare() {
58 + local PATCHES=(
59 + "${FILESDIR}/${PN}-0.1.3-dontbuild-tests-examples.patch"
60 + "${FILESDIR}/${PN}-0.1.8-lm.patch"
61 + )
62 +
63 + AT_M4DIR="M4" \
64 + autotools-multilib_src_prepare
65 +}
66 +
67 +src_configure() {
68 + my_configure() {
69 + local myeconfargs=(
70 + --disable-fftw
71 + )
72 +
73 + if [ "${ABI}" = "${DEFAULT_ABI}" ] ; then
74 + myeconfargs+=( $(use_enable sndfile) )
75 + else
76 + myeconfargs+=( --disable-sndfile )
77 + fi
78 +
79 + autotools-utils_src_configure
80 +
81 + if [ "${ABI}" != "${DEFAULT_ABI}" ] ; then
82 + sed -i -e "s/ doc examples//" "${BUILD_DIR}/Makefile" || die
83 + fi
84 + }
85 + multilib_parallel_foreach_abi my_configure
86 +}
87 +
88 +src_install() {
89 + autotools-multilib_src_install \
90 + htmldocdir="${EPREFIX}/usr/share/doc/${PF}/html"
91 +}