commit:     6b8031710f6bd46ec6f90df2769e6cf82d3973c0
Author:     David Michael <fedora.dm0 <AT> gmail <DOT> com>
AuthorDate: Sat Nov  7 19:10:34 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Nov  7 19:10:34 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b803171

media-libs/a52dec: EAPI 7, drop static-libs

Closes: https://github.com/gentoo/gentoo/pull/18176
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: David Michael <fedora.dm0 <AT> gmail.com>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-libs/a52dec/a52dec-0.7.4-r8.ebuild           | 63 ++++++++++++++++++++++
 media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch |  4 +-
 2 files changed, 65 insertions(+), 2 deletions(-)

diff --git a/media-libs/a52dec/a52dec-0.7.4-r8.ebuild 
b/media-libs/a52dec/a52dec-0.7.4-r8.ebuild
new file mode 100644
index 00000000000..e32e97439ed
--- /dev/null
+++ b/media-libs/a52dec/a52dec-0.7.4-r8.ebuild
@@ -0,0 +1,63 @@
+# 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 ATSC A/52 streams used in DVD"
+HOMEPAGE="http://liba52.sourceforge.net/";
+SRC_URI="http://liba52.sourceforge.net/files/${P}.tar.gz";
+
+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="djbfft oss"
+
+RDEPEND="djbfft? ( >=sci-libs/djbfft-0.76-r2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-build.patch
+       "${FILESDIR}"/${P}-freebsd.patch
+       "${FILESDIR}"/${P}-tests-optional.patch
+       "${FILESDIR}"/${P}-test-hidden-symbols.patch
+)
+
+src_prepare() {
+       default
+
+       sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die 
#466978
+       mv configure.{in,ac} || die
+
+       eautoreconf
+
+       filter-flags -fprefetch-loop-arrays
+}
+
+multilib_src_configure() {
+       ECONF_SOURCE="${S}" econf \
+               --disable-static \
+               --enable-shared \
+               $(use_enable djbfft) \
+               $(usex oss '' --disable-oss)
+
+       # remove useless subdirs
+       if ! multilib_is_native_abi; then
+               sed -i \
+                       -e 's/ src//' \
+                       -e 's/ libao//' \
+                       Makefile || die
+       fi
+}
+
+multilib_src_compile() {
+       emake CFLAGS="${CFLAGS}"
+}
+
+multilib_src_install_all() {
+       einstalldocs
+       dodoc HISTORY doc/liba52.txt
+
+       find "${ED}" -name '*.la' -type f -delete || die
+}

diff --git a/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch 
b/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch
index 6e33f18911b..13d83bd3b67 100644
--- a/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch
+++ b/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch
@@ -1,5 +1,5 @@
---- libao/audio_out_oss.c      2002-04-28 12:23:02 +0200
-+++ libao/audio_out_oss.c      2005-07-23 15:42:50 +0200
+--- a/libao/audio_out_oss.c
++++ b/libao/audio_out_oss.c
 @@ -35,7 +35,7 @@
  #if defined(__OpenBSD__)
  #include <soundcard.h>

Reply via email to