/[gentoo-x86]/eclass/vdr-plugin.eclass
Gentoo

Diff of /eclass/vdr-plugin.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.56 Revision 1.58
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/Attic/vdr-plugin.eclass,v 1.56 2008/04/21 02:45:45 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.58 2008/04/22 11:04:05 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
262 return 1 262 return 1
263 fi 263 fi
264} 264}
265 265
266vdr_i18n_disable_gettext() { 266vdr_i18n_disable_gettext() {
267 ebegin "Disabling gettext support in plugin"
267 # Remove i18n Target if using older vdr 268 # Remove i18n Target if using older vdr
268 sed -i Makefile \ 269 sed -i Makefile \
269 -e '/^all:/s/ i18n//' 270 -e '/^all:/s/ i18n//'
270 eend 0 271 eend 0
271} 272}
276 if plugin_has_gettext; then 277 if plugin_has_gettext; then
277 einfo "Plugin has gettext support, fine" 278 einfo "Plugin has gettext support, fine"
278 else 279 else
279 vdr_i18n_convert_to_gettext 280 vdr_i18n_convert_to_gettext
280 if [[ $? != 0 ]]; then 281 if [[ $? != 0 ]]; then
281 ewarn "" 282 eerror ""
282 ewarn "Plugin will have only english OSD texts" 283 eerror "Plugin will have only english OSD texts"
283 ewarn "it needs manual fixing." 284 eerror "it needs manual fixing."
284 fi 285 fi
285 fi 286 fi
286 else 287 else
287 einfo "VDR has no gettext support" 288 einfo "VDR has no gettext support"
288 if plugin_has_gettext; then 289 if plugin_has_gettext; then

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.58

  ViewVC Help
Powered by ViewVC 1.1.20