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/files
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/files')
-rw-r--r--media-libs/a52dec/files/a52dec-0.7.4-tests-optional.patch31
1 files changed, 31 insertions, 0 deletions
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