diff options
author | Peter Alfredsen <loki_val@gentoo.org> | 2008-06-13 21:45:03 +0000 |
---|---|---|
committer | Peter Alfredsen <loki_val@gentoo.org> | 2008-06-13 21:45:03 +0000 |
commit | 6c3a9f2d626a8a5890c659e938bd2ff3182fa084 (patch) | |
tree | d49699ad964bd2de4cd8fa1fc0ef8bdf242e1c3e /media-libs/flac | |
parent | Version bump, also fixes bug 218101. (diff) | |
download | gentoo-2-6c3a9f2d626a8a5890c659e938bd2ff3182fa084.tar.gz gentoo-2-6c3a9f2d626a8a5890c659e938bd2ff3182fa084.tar.bz2 gentoo-2-6c3a9f2d626a8a5890c659e938bd2ff3182fa084.zip |
Don't build tests and examples which aren't installed anyway wrt bug 226301.
(Portage version: 2.1.5.5)
Diffstat (limited to 'media-libs/flac')
-rw-r--r-- | media-libs/flac/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/flac/files/flac-1.2.1-tests-optional.patch | 121 | ||||
-rw-r--r-- | media-libs/flac/flac-1.2.1-r3.ebuild | 60 |
3 files changed, 189 insertions, 1 deletions
diff --git a/media-libs/flac/ChangeLog b/media-libs/flac/ChangeLog index 1bbe78c17da2..21da0388ef74 100644 --- a/media-libs/flac/ChangeLog +++ b/media-libs/flac/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-libs/flac # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/ChangeLog,v 1.139 2008/05/15 20:39:51 drac Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/ChangeLog,v 1.140 2008/06/13 21:45:02 loki_val Exp $ + +*flac-1.2.1-r3 (13 Jun 2008) + + 13 Jun 2008; Peter Alfredsen <loki_val@gentoo.org> + +files/flac-1.2.1-tests-optional.patch, +flac-1.2.1-r3.ebuild: + Don't build tests and examples which aren't installed anyway wrt bug + 226301. 15 May 2008; Samuli Suominen <drac@gentoo.org> flac-1.2.1-r2.ebuild: Revert commit for bug 173464, it doesn't solve the entire problem. Stop diff --git a/media-libs/flac/files/flac-1.2.1-tests-optional.patch b/media-libs/flac/files/flac-1.2.1-tests-optional.patch new file mode 100644 index 000000000000..e673aefd7b50 --- /dev/null +++ b/media-libs/flac/files/flac-1.2.1-tests-optional.patch @@ -0,0 +1,121 @@ +diff -NrU5 flac-1.2.1.orig/configure.in flac-1.2.1/configure.in +--- flac-1.2.1.orig/configure.in 2008-06-13 16:20:47.000000000 +0200 ++++ flac-1.2.1/configure.in 2008-06-13 23:26:57.000000000 +0200 +@@ -253,10 +253,24 @@ + if test "x$have_ogg" = xyes ; then + AC_DEFINE(FLAC__HAS_OGG) + AH_TEMPLATE(FLAC__HAS_OGG, [define if you have the ogg library]) + 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"]) ++ ++dnl Build examples? ++AC_ARG_ENABLE(examples, ++ AS_HELP_STRING([--disable-examples], [Don't build examples during make]),, ++ enable_examples="yes") ++AM_CONDITIONAL(EXAMPLES, [test "$enable_examples" = "yes"]) ++ ++ + dnl check for i18n(internationalization); these are from libiconv/gettext + AM_ICONV + AM_LANGINFO_CODESET + + AC_CHECK_PROGS(DOCBOOK_TO_MAN, docbook-to-man docbook2man) +diff -NrU5 flac-1.2.1.orig/examples/Makefile.am flac-1.2.1/examples/Makefile.am +--- flac-1.2.1.orig/examples/Makefile.am 2008-06-13 16:20:47.000000000 +0200 ++++ flac-1.2.1/examples/Makefile.am 2008-06-13 23:24:27.000000000 +0200 +@@ -13,15 +13,19 @@ + # Since this particular file is relevant to all components of FLAC, + # it may be distributed under the Xiph.Org license, which is the least + # restrictive of those mentioned above. See the file COPYING.Xiph in this + # distribution. + ++if EXAMPLES ++ + if FLaC__WITH_CPPLIBS + CPPLIBS_DIRS = cpp + endif + + SUBDIRS = c $(CPPLIBS_DIRS) + + EXTRA_DIST = \ + examples.dsp \ + Makefile.lite \ + README ++ ++endif +diff -NrU5 flac-1.2.1.orig/Makefile.am flac-1.2.1/Makefile.am +--- flac-1.2.1.orig/Makefile.am 2008-06-13 16:20:47.000000000 +0200 ++++ flac-1.2.1/Makefile.am 2008-06-13 16:30:03.000000000 +0200 +@@ -28,11 +28,15 @@ + # distclean: remove everything except what goes in the distribution + # + + AUTOMAKE_OPTIONS = foreign 1.7 + +-SUBDIRS = doc include m4 man src examples test build obj ++SUBDIRS = doc include m4 man src examples build obj ++ ++if TESTS ++SUBDIRS += test ++endif + + DISTCLEANFILES = libtool-disable-static + + EXTRA_DIST = \ + COPYING.FDL \ +diff -NrU5 flac-1.2.1.orig/src/Makefile.am flac-1.2.1/src/Makefile.am +--- flac-1.2.1.orig/src/Makefile.am 2008-06-13 16:20:47.000000000 +0200 ++++ flac-1.2.1/src/Makefile.am 2008-06-13 23:17:42.000000000 +0200 +@@ -18,25 +18,39 @@ + if FLaC__HAS_XMMS + XMMS_DIRS = plugin_common plugin_xmms + endif + + if FLaC__WITH_CPPLIBS +-CPPLIBS_DIRS = libFLAC++ test_libFLAC++ ++ ++CPPLIBS_DIRS = libFLAC++ ++ ++endif ++ ++if TESTS ++ ++TESTDIRS = \ ++ test_grabbag \ ++ test_libs_common \ ++ test_libFLAC \ ++ test_seeking \ ++ test_streams ++ ++if FLaC__WITH_CPPLIBS ++TESTDIRS += test_libFLAC++ + endif + ++endif ++ ++ + SUBDIRS = \ + libFLAC \ + share \ + flac \ + metaflac \ + monkeys_audio_utilities \ + $(XMMS_DIRS) \ + plugin_winamp2 \ +- test_grabbag \ +- test_libs_common \ +- test_libFLAC \ +- test_seeking \ +- test_streams \ +- $(CPPLIBS_DIRS) ++ $(CPPLIBS_DIRS) \ ++ $(TESTDIRS) + + EXTRA_DIST = \ + Makefile.lite diff --git a/media-libs/flac/flac-1.2.1-r3.ebuild b/media-libs/flac/flac-1.2.1-r3.ebuild new file mode 100644 index 000000000000..47f3cf82a52e --- /dev/null +++ b/media-libs/flac/flac-1.2.1-r3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.2.1-r3.ebuild,v 1.1 2008/06/13 21:45:02 loki_val Exp $ + +EAPI=1 + +inherit autotools eutils base + +DESCRIPTION="free lossless audio encoder and decoder" +HOMEPAGE="http://flac.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="3dnow altivec +cxx debug doc ogg sse test" + +RDEPEND="ogg? ( >=media-libs/libogg-1.1.3 )" +DEPEND="${RDEPEND} + x86? ( dev-lang/nasm ) + !elibc_uclibc? ( sys-devel/gettext ) + dev-util/pkgconfig" + +RESTRICT="test" + +PATCHES=( "${FILESDIR}/${P}-asneeded.patch" + "${FILESDIR}/${P}-cflags.patch" + "${FILESDIR}/${P}-asm.patch" + "${FILESDIR}/${P}-tests-optional.patch" + "${FILESDIR}/${P}-gcc-4.3-includes.patch" ) + +src_unpack() { + base_src_unpack + cd "${S}" + AT_M4DIR="m4" eautoreconf +} + +src_compile() { + econf $(use_enable ogg) \ + $(use_enable sse) \ + $(use_enable 3dnow) \ + $(use_enable altivec) \ + $(use_enable debug) \ + $(use_enable cxx cpplibs) \ + --disable-examples \ + --disable-tests \ + --disable-doxygen-docs \ + --disable-dependency-tracking \ + --disable-xmms-plugin + + emake || die "emake failed." +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + + rm -rf "${D}"/usr/share/doc/${P} + dodoc AUTHORS README + use doc && dohtml -r doc/html/* +} |