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-libs/libsndfile/
Date: Tue, 04 Apr 2017 08:58:42
Message-Id: 1491296309.48ddef79dfdd935e556b749c08546dae3e7ea3f8.polynomial-c@gentoo
1 commit: 48ddef79dfdd935e556b749c08546dae3e7ea3f8
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 4 08:58:29 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 4 08:58:29 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48ddef79
7
8 media-libs/libsndfile: Bump to version 1.0.28
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 media-libs/libsndfile/Manifest | 1 +
13 media-libs/libsndfile/libsndfile-1.0.28.ebuild | 69 ++++++++++++++++++++++++++
14 2 files changed, 70 insertions(+)
15
16 diff --git a/media-libs/libsndfile/Manifest b/media-libs/libsndfile/Manifest
17 index 011edfab7cb..240b9c0d618 100644
18 --- a/media-libs/libsndfile/Manifest
19 +++ b/media-libs/libsndfile/Manifest
20 @@ -1,2 +1,3 @@
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 +DIST libsndfile-1.0.28.tar.gz 1202833 SHA256 1ff33929f042fa333aed1e8923aa628c3ee9e1eb85512686c55092d1e5a9dfa9 SHA512 890731a6b8173f714155ce05eaf6d991b31632c8ab207fbae860968861a107552df26fcf85602df2e7f65502c7256c1b41735e1122485a3a07ddb580aa83b57f WHIRLPOOL 261951f56ef120b2119935e3960e5523dcd845e9c127409c6d1a20e7e3a59f53e7cfe4c974005e206c56c8fc20cd287cfb554ef2ae3e9540487c9008dba5d8d2
24
25 diff --git a/media-libs/libsndfile/libsndfile-1.0.28.ebuild b/media-libs/libsndfile/libsndfile-1.0.28.ebuild
26 new file mode 100644
27 index 00000000000..7c89653b171
28 --- /dev/null
29 +++ b/media-libs/libsndfile/libsndfile-1.0.28.ebuild
30 @@ -0,0 +1,69 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python2_7 pypy )
37 +
38 +inherit autotools python-any-r1 multilib-minimal
39 +
40 +MY_P=${P/_pre/pre}
41 +
42 +DESCRIPTION="A C library for reading and writing files containing sampled sound"
43 +HOMEPAGE="http://www.mega-nerd.com/libsndfile"
44 +if [[ ${MY_P} == ${P} ]]; then
45 + SRC_URI="http://www.mega-nerd.com/libsndfile/files/${P}.tar.gz"
46 +else
47 + SRC_URI="http://www.mega-nerd.com/tmp/${MY_P}b.tar.gz"
48 +fi
49 +
50 +LICENSE="LGPL-2.1"
51 +SLOT="0"
52 +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"
53 +IUSE="alsa minimal sqlite static-libs test"
54 +
55 +RDEPEND="
56 + !minimal? ( >=media-libs/flac-1.2.1-r5[${MULTILIB_USEDEP}]
57 + >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
58 + >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] )
59 + alsa? ( media-libs/alsa-lib )
60 + sqlite? ( >=dev-db/sqlite-3.2 )"
61 +DEPEND="${RDEPEND}
62 + virtual/pkgconfig
63 + test? ( ${PYTHON_DEPS} )"
64 +
65 +S=${WORKDIR}/${MY_P}
66 +
67 +pkg_setup() {
68 + use test && python-any-r1_pkg_setup
69 +}
70 +
71 +src_prepare() {
72 + default
73 + eautoreconf
74 +}
75 +
76 +multilib_src_configure() {
77 + ECONF_SOURCE="${S}" econf \
78 + --disable-octave \
79 + --disable-gcc-pipe \
80 + $(use_enable static-libs static) \
81 + $(use_enable !minimal external-libs) \
82 + $(multilib_native_use_enable alsa) \
83 + $(multilib_native_use_enable sqlite)
84 +
85 + if ! multilib_is_native_abi; then
86 + # Do not build useless stuff
87 + local i
88 + for i in man doc examples regtest programs; do
89 + sed -i -e "s/ ${i}//" Makefile || die
90 + done
91 + fi
92 +}
93 +
94 +multilib_src_install_all() {
95 + einstalldocs
96 +
97 + # package provides .pc files
98 + find "${D}" -name '*.la' -delete || die
99 +}