1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_6,3_7} pypy3 )
8 if [[ ${PV} == *9999 ]]; then
9 inherit autotools git-r3
10 EGIT_REPO_URI="https://github.com/erikd/libsndfile.git"
12 SRC_URI="http://www.mega-nerd.com/libsndfile/files/${P}.tar.gz"
13 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
15 inherit python-any-r1 multilib-minimal
17 DESCRIPTION="C library for reading and writing files containing sampled sound"
18 HOMEPAGE="http://www.mega-nerd.com/libsndfile"
22 IUSE="alsa minimal sqlite static-libs test"
23 RESTRICT="!test? ( test )"
27 >=media-libs/flac-1.2.1-r5:=[${MULTILIB_USEDEP}]
28 >=media-libs/libogg-1.3.0:=[${MULTILIB_USEDEP}]
29 >=media-libs/libvorbis-1.3.3-r1:=[${MULTILIB_USEDEP}]
30 >=media-libs/opus-1.1:=[${MULTILIB_USEDEP}]
32 alsa? ( media-libs/alsa-lib:= )
33 sqlite? ( >=dev-db/sqlite-3.2 )"
37 test? ( ${PYTHON_DEPS} )"
38 if [[ ${PV} == *9999 ]]; then
46 if use test || [[ ${PV} == *9999 ]]; then
47 python-any-r1_pkg_setup
54 [[ ${PV} == *9999 ]] && eautoreconf
57 multilib_src_configure() {
58 ECONF_SOURCE="${S}" econf \
60 $(use_enable static-libs static) \
61 $(use_enable !minimal external-libs) \
62 $(multilib_native_enable full-suite) \
63 $(multilib_native_use_enable alsa) \
64 $(multilib_native_use_enable sqlite) \
68 multilib_src_install_all() {
71 # package provides .pc files
72 find "${D}" -name '*.la' -delete || die