summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Alfredsen <loki_val@gentoo.org>2008-06-13 14:06:17 +0000
committerPeter Alfredsen <loki_val@gentoo.org>2008-06-13 14:06:17 +0000
commit81d88f4a999526de171939d309adea05892e59ce (patch)
treedb1317b1fdc5ed652ed430cf440f4c99dbe68aef /media-libs/a52dec
parentVersion bump (see bug #226167). (diff)
downloadgentoo-2-81d88f4a999526de171939d309adea05892e59ce.tar.gz
gentoo-2-81d88f4a999526de171939d309adea05892e59ce.tar.bz2
gentoo-2-81d88f4a999526de171939d309adea05892e59ce.zip
No longer build tests if we don't need them. Bug #226343.
(Portage version: 2.1.5.5)
Diffstat (limited to 'media-libs/a52dec')
-rw-r--r--media-libs/a52dec/ChangeLog10
-rw-r--r--media-libs/a52dec/a52dec-0.7.4-r5.ebuild4
-rw-r--r--media-libs/a52dec/a52dec-0.7.4-r6.ebuild53
-rw-r--r--media-libs/a52dec/files/a52dec-0.7.4-tests-optional.patch31
4 files changed, 94 insertions, 4 deletions
diff --git a/media-libs/a52dec/ChangeLog b/media-libs/a52dec/ChangeLog
index 90878cc7e554..de0e87b8910f 100644
--- a/media-libs/a52dec/ChangeLog
+++ b/media-libs/a52dec/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/a52dec
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/a52dec/ChangeLog,v 1.51 2007/12/28 14:06:34 flameeyes Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/a52dec/ChangeLog,v 1.52 2008/06/13 14:06:16 loki_val Exp $
+
+*a52dec-0.7.4-r6 (13 Jun 2008)
+
+ 13 Jun 2008; Peter Alfredsen <loki_val@gentoo.org>
+ +files/a52dec-0.7.4-tests-optional.patch, +a52dec-0.7.4-r6.ebuild:
+ No longer build tests if we don't need them. Bug #226343.
28 Dec 2007; Diego Pettenò <flameeyes@gentoo.org> a52dec-0.7.4-r5.ebuild:
Make djbfft a runtime dependency too, or --depclean will remove it and break
diff --git a/media-libs/a52dec/a52dec-0.7.4-r5.ebuild b/media-libs/a52dec/a52dec-0.7.4-r5.ebuild
index fb682331d9af..b5825dbd137f 100644
--- a/media-libs/a52dec/a52dec-0.7.4-r5.ebuild
+++ b/media-libs/a52dec/a52dec-0.7.4-r5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/a52dec/a52dec-0.7.4-r5.ebuild,v 1.18 2007/12/28 14:06:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/a52dec/a52dec-0.7.4-r5.ebuild,v 1.19 2008/06/13 14:06:16 loki_val Exp $
WANT_AUTOCONF=latest
WANT_AUTOMAKE=latest
@@ -45,7 +45,7 @@ src_install() {
make DESTDIR="${D}" docdir=/usr/share/doc/${PF}/html install || die
insinto /usr/include/a52dec
- doins ${S}/liba52/a52_internal.h
+ doins "${S}"/liba52/a52_internal.h
dodoc AUTHORS ChangeLog HISTORY NEWS README TODO doc/liba52.txt
}
diff --git a/media-libs/a52dec/a52dec-0.7.4-r6.ebuild b/media-libs/a52dec/a52dec-0.7.4-r6.ebuild
new file mode 100644
index 000000000000..7caeee12b7c7
--- /dev/null
+++ b/media-libs/a52dec/a52dec-0.7.4-r6.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/a52dec/a52dec-0.7.4-r6.ebuild,v 1.1 2008/06/13 14:06:16 loki_val Exp $
+
+WANT_AUTOCONF=latest
+WANT_AUTOMAKE=latest
+
+inherit eutils flag-o-matic libtool autotools
+
+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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="oss djbfft test"
+
+RDEPEND="djbfft? ( sci-libs/djbfft )"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-build.patch"
+ epatch "${FILESDIR}/${P}-freebsd.patch"
+ epatch "${FILESDIR}/${P}-tests-optional.patch"
+
+ eautoreconf
+ epunt_cxx
+}
+
+src_compile() {
+ filter-flags -fprefetch-loop-arrays
+
+ local myconf="--enable-shared"
+ use oss || myconf="${myconf} --disable-oss"
+ econf \
+ $(use_enable djbfft) \
+ $(use_enable test tests) \
+ ${myconf} || die
+ emake CFLAGS="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" docdir=/usr/share/doc/${PF}/html install || die
+
+ insinto /usr/include/a52dec
+ doins "${S}"/liba52/a52_internal.h
+
+ dodoc AUTHORS ChangeLog HISTORY NEWS README TODO doc/liba52.txt
+}
diff --git a/media-libs/a52dec/files/a52dec-0.7.4-tests-optional.patch b/media-libs/a52dec/files/a52dec-0.7.4-tests-optional.patch
new file mode 100644
index 000000000000..b52fbbd4d31f
--- /dev/null
+++ b/media-libs/a52dec/files/a52dec-0.7.4-tests-optional.patch
@@ -0,0 +1,31 @@
+diff -NrU5 a52dec-0.7.4.orig/configure.in a52dec-0.7.4/configure.in
+--- a52dec-0.7.4.orig/configure.in 2008-06-13 15:48:43.000000000 +0200
++++ a52dec-0.7.4/configure.in 2008-06-13 15:46:23.000000000 +0200
+@@ -106,10 +106,16 @@
+ elif test x"$TENDRA" = x"yes"; then
+ dnl TenDRA portability checking compiler
+ CFLAGS="$CFLAGS -DTenDRA_check"
+ fi
+
++dnl Build tests?
++AC_ARG_ENABLE(tests,
++ AS_HELP_STRING([--disable-tests], [Don't build tests during make]),,
++ enable_tests="yes")
++AM_CONDITIONAL(TESTS, [test "$enable_tests" = "yes"])
++
+ builtin([include],[src/configure.incl])
+
+ AC_C_ATTRIBUTE_ALIGNED
+
+ AC_OUTPUT
+diff -NrU5 a52dec-0.7.4.orig/Makefile.am a52dec-0.7.4/Makefile.am
+--- a52dec-0.7.4.orig/Makefile.am 2008-06-13 15:48:45.000000000 +0200
++++ a52dec-0.7.4/Makefile.am 2008-06-13 15:47:55.000000000 +0200
+@@ -1,3 +1,7 @@
+ SUBDIRS = autotools include doc liba52 libao src vc++ test
+
++if TESTS
++SUBDIRS += test
++endif
++
+ EXTRA_DIST = HISTORY bootstrap