diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-08-21 22:48:48 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-08-22 18:05:49 +0200 |
commit | 0fff7ce673b1954555dade1402b12aca481cf074 (patch) | |
tree | 6a9ffbcd0a789e21721b154a897653f605a47788 /media-libs/libdca/libdca-0.0.7.ebuild | |
parent | media-sound/coquillo: Drop 2.0.0 (diff) | |
download | gentoo-0fff7ce673b1954555dade1402b12aca481cf074.tar.gz gentoo-0fff7ce673b1954555dade1402b12aca481cf074.tar.bz2 gentoo-0fff7ce673b1954555dade1402b12aca481cf074.zip |
media-libs/libdca: 0.0.7 version bump, EAPI-7 bump
Closes: https://bugs.gentoo.org/678716
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/libdca/libdca-0.0.7.ebuild')
-rw-r--r-- | media-libs/libdca/libdca-0.0.7.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/media-libs/libdca/libdca-0.0.7.ebuild b/media-libs/libdca/libdca-0.0.7.ebuild new file mode 100644 index 000000000000..0e794c3f2109 --- /dev/null +++ b/media-libs/libdca/libdca-0.0.7.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic multilib-minimal + +DESCRIPTION="Library for decoding DTS Coherent Acoustics streams used in DVD" +HOMEPAGE="https://www.videolan.org/developers/libdca.html" +SRC_URI="https://www.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="debug oss" + +DOCS=( AUTHORS ChangeLog NEWS README TODO doc/${PN}.txt ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.0.5-cflags.patch + "${FILESDIR}"/${PN}-0.0.5-tests-optional.patch +) + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + append-lfs-flags #328875 + + local myeconfargs=( + --disable-static + $(use_enable debug) + $(use_enable oss) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" + + # Those are thrown away afterwards, don't build them in the first place + if [[ "${ABI}" != "${DEFAULT_ABI}" ]] ; then + sed -e 's/ libao src//' -i Makefile || die + fi +} + +multilib_src_compile() { + emake OPT_CFLAGS="" +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + find "${D}" -name '*.la' -type f -delete || die + rm "${D}"/usr/$(get_libdir)/libdts.a || die +} |