/[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.83 Revision 1.85
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.83 2012/03/09 23:14:46 hd_brummy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.85 2012/04/07 10:12:21 hd_brummy Exp $
4 4
5# @ECLASS: vdr-plugin.eclass 5# @ECLASS: vdr-plugin.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# vdr@gentoo.org 7# vdr@gentoo.org
8# @BLURB: common vdr plugin ebuild functions 8# @BLURB: common vdr plugin ebuild functions
227 has_version ">=media-video/vdr-1.5.7" 227 has_version ">=media-video/vdr-1.5.7"
228} 228}
229 229
230plugin_has_gettext() { 230plugin_has_gettext() {
231 [[ -d po ]] 231 [[ -d po ]]
232 # some plugins gives false positive results, keep this list short
233 # temporary workout, ToDo: fix the plugins/eclass
234 has_version ">=media-plugins/vdr-streamdev-0.5.0"
232} 235}
233 236
234vdr_i18n_convert_to_gettext() { 237vdr_i18n_convert_to_gettext() {
235 if has_version ">=media-video/vdr-1.7.22"; then 238 if has_version ">=media-video/vdr-1.7.22"; then
236 local i18n_tool="${ROOT}/usr/share/vdr/bin/i18n-to-gettext" 239 local i18n_tool="${ROOT}/usr/share/vdr/bin/i18n-to-gettext"
292 ewarn "Please remove unneeded NO_GETTEXT_HACK from ebuild." 295 ewarn "Please remove unneeded NO_GETTEXT_HACK from ebuild."
293 fi 296 fi
294 else 297 else
295 vdr_i18n_convert_to_gettext 298 vdr_i18n_convert_to_gettext
296 if [[ $? != 0 ]]; then 299 if [[ $? != 0 ]]; then
297 eerror ""
298 eerror "Plugin will have only english OSD texts" 300 einfo "Plugin has no OSD texts or will have only english OSD texts"
299 eerror "it needs manual fixing."
300 fi 301 fi
301 fi 302 fi
302 else 303 else
303 #einfo "VDR has no gettext support" 304 #einfo "VDR has no gettext support"
304 if plugin_has_gettext; then 305 if plugin_has_gettext; then

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.85

  ViewVC Help
Powered by ViewVC 1.1.20