Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] autotools.eclass:eautoreconf now runs autopoint for you
Date: Sun, 20 May 2012 10:32:30
i've extended eautoreconf to automatically call autopoint when the package 
uses gettext.  the configure check might seem naïve, but this is how autoreconf 
itself does it.  this hopefully shouldn't break any packages (at least, none 
that weren't already broken), but if you guys start seeing eautoreconf 
failures where there were none before, feel free to cc base-system.

--- autotools.eclass
+++ autotools.eclass
@@ -162,6 +162,9 @@ eautoreconf() {
 	einfo "Running eautoreconf in '${PWD}' ..."
 	[[ -n ${auxdir}${macdir} ]] && mkdir -p ${auxdir} ${macdir}
+	if grep -q '^AM_GNU_GETTEXT_VERSION' configure.?? ; then
+		eautopoint --force
+	fi
 	[[ ${CHOST} == *-darwin* ]] && g=g
 	if ${LIBTOOLIZE:-${g}libtoolize} -n --install >& /dev/null ; then
 		_elibtoolize --copy --force --install


File name MIME type
signature.asc application/pgp-signature