From 4da30a1122302bd84e681c859dc7f6edaff08051 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Tue, 15 Dec 2009 12:41:33 +0000
Subject: Regen libbdnav autotools when needed #296792 by Martin Berkemeier.
 Package-Manager: portage-2.2_rc55/cvs/Linux x86_64

---
 media-tv/xbmc/xbmc-9999.ebuild | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

(limited to 'media-tv/xbmc/xbmc-9999.ebuild')

diff --git a/media-tv/xbmc/xbmc-9999.ebuild b/media-tv/xbmc/xbmc-9999.ebuild
index 4b5ef2facabb..940b345a1623 100644
--- a/media-tv/xbmc/xbmc-9999.ebuild
+++ b/media-tv/xbmc/xbmc-9999.ebuild
@@ -1,6 +1,6 @@
 # Copyright 1999-2009 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/xbmc-9999.ebuild,v 1.42 2009/12/04 09:32:54 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/xbmc-9999.ebuild,v 1.43 2009/12/15 12:41:33 vapier Exp $
 
 EAPI="2"
 
@@ -89,18 +89,28 @@ src_unpack() {
 	if [[ ${PV} == "9999" ]] ; then
 		subversion_src_unpack
 		cd "${S}"
-		eautoreconf
+		rm -f configure
 	else
 		unpack ${A}
 		cd "${S}"
 	fi
 
 	# Fix case sensitivity
-	mv media/Fonts/{a,A}rial.ttf
-	mv media/{S,s}plash.png
+	mv media/Fonts/{a,A}rial.ttf || die
+	mv media/{S,s}plash.png || die
 }
 
 src_prepare() {
+	# some dirs ship generated autotools, some dont
+	local d
+	for d in . xbmc/cores/dvdplayer/Codecs/libbdnav ; do
+		[[ -e ${d}/configure ]] && continue
+		pushd ${d} >/dev/null
+		einfo "Generating autotools in ${d}"
+		eautoreconf
+		popd >/dev/null
+	done
+
 	local squish #290564
 	use altivec && squish="-DSQUISH_USE_ALTIVEC=1 -maltivec"
 	use sse && squish="-DSQUISH_USE_SSE=1 -msse"
-- 
cgit v1.2.3-65-gdbad