| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.48 2007/08/14 18:42:22 zzam Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.49 2007/08/16 17:59:21 zzam Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: |
5 | # Author: |
| 6 | # Matthias Schwarzott <zzam@gentoo.org> |
6 | # Matthias Schwarzott <zzam@gentoo.org> |
| 7 | # Joerg Bornkessel <hd_brummy@gentoo.org> |
7 | # Joerg Bornkessel <hd_brummy@gentoo.org> |
| 8 | |
8 | |
| … | |
… | |
| 278 | cd ${S} |
278 | cd ${S} |
| 279 | if [[ ${USE_GETTEXT} = 0 ]]; then |
279 | if [[ ${USE_GETTEXT} = 0 ]]; then |
| 280 | # Remove i18n Target if using older vdr |
280 | # Remove i18n Target if using older vdr |
| 281 | sed -i Makefile \ |
281 | sed -i Makefile \ |
| 282 | -e '/^all:/s/ i18n//' |
282 | -e '/^all:/s/ i18n//' |
| 283 | elif [[ ${USE_GETTEXT} = 1 && ! -d po ]]; then |
283 | elif [[ ${USE_GETTEXT} = 1 && ! -d po && ${NO_GETTEXT_HACK} != 1 ]]; then |
| 284 | einfo "Converting translations to gettext" |
284 | einfo "Converting translations to gettext" |
| 285 | |
285 | |
| 286 | local i18n_tool=/usr/share/vdr/bin/i18n-to-gettext.pl |
286 | local i18n_tool=/usr/share/vdr/bin/i18n-to-gettext.pl |
| 287 | if [[ ! -x ${i18n_tool} ]]; then |
287 | if [[ ! -x ${i18n_tool} ]]; then |
| 288 | eerror "Missing ${i18n_tool}" |
288 | eerror "Missing ${i18n_tool}" |