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