| 1 |
i've extended eautoreconf to automatically call autopoint when the package |
| 2 |
uses gettext. the configure check might seem naïve, but this is how autoreconf |
| 3 |
itself does it. this hopefully shouldn't break any packages (at least, none |
| 4 |
that weren't already broken), but if you guys start seeing eautoreconf |
| 5 |
failures where there were none before, feel free to cc base-system. |
| 6 |
-mike |
| 7 |
|
| 8 |
--- autotools.eclass |
| 9 |
+++ autotools.eclass |
| 10 |
@@ -162,6 +162,9 @@ eautoreconf() { |
| 11 |
einfo "Running eautoreconf in '${PWD}' ..." |
| 12 |
[[ -n ${auxdir}${macdir} ]] && mkdir -p ${auxdir} ${macdir} |
| 13 |
eaclocal |
| 14 |
+ if grep -q '^AM_GNU_GETTEXT_VERSION' configure.?? ; then |
| 15 |
+ eautopoint --force |
| 16 |
+ fi |
| 17 |
[[ ${CHOST} == *-darwin* ]] && g=g |
| 18 |
if ${LIBTOOLIZE:-${g}libtoolize} -n --install >& /dev/null ; then |
| 19 |
_elibtoolize --copy --force --install |