/[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.87
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.87 2012/04/18 16:52:30 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"
235 has_version ">=media-plugins/vdr-vdrmanager-0.6"
232} 236}
233 237
234vdr_i18n_convert_to_gettext() { 238vdr_i18n_convert_to_gettext() {
235 if has_version ">=media-video/vdr-1.7.22"; then 239 if has_version ">=media-video/vdr-1.7.22"; then
236 local i18n_tool="${ROOT}/usr/share/vdr/bin/i18n-to-gettext" 240 local i18n_tool="${ROOT}/usr/share/vdr/bin/i18n-to-gettext"
292 ewarn "Please remove unneeded NO_GETTEXT_HACK from ebuild." 296 ewarn "Please remove unneeded NO_GETTEXT_HACK from ebuild."
293 fi 297 fi
294 else 298 else
295 vdr_i18n_convert_to_gettext 299 vdr_i18n_convert_to_gettext
296 if [[ $? != 0 ]]; then 300 if [[ $? != 0 ]]; then
297 eerror ""
298 eerror "Plugin will have only english OSD texts" 301 einfo "Plugin has no OSD texts or will have only english OSD texts"
299 eerror "it needs manual fixing."
300 fi 302 fi
301 fi 303 fi
302 else 304 else
303 #einfo "VDR has no gettext support" 305 #einfo "VDR has no gettext support"
304 if plugin_has_gettext; then 306 if plugin_has_gettext; then
374 # Pathes to includes 376 # Pathes to includes
375 VDR_INCLUDE_DIR="/usr/include/vdr" 377 VDR_INCLUDE_DIR="/usr/include/vdr"
376 DVB_INCLUDE_DIR="/usr/include" 378 DVB_INCLUDE_DIR="/usr/include"
377 379
378 TMP_LOCALE_DIR="${WORKDIR}/tmp-locale" 380 TMP_LOCALE_DIR="${WORKDIR}/tmp-locale"
379 if has_version ">=media-video/vdr-1.6.0_p2-r7"; then
380 LOCDIR="/usr/share/locale" 381 LOCDIR="/usr/share/locale"
381 else
382 LOCDIR="/usr/share/vdr/locale"
383 fi
384 382
385 if ! has_vdr; then 383 if ! has_vdr; then
386 # set to invalid values to detect abuses 384 # set to invalid values to detect abuses
387 VDRVERSION="eclass_no_vdr_installed" 385 VDRVERSION="eclass_no_vdr_installed"
388 APIVERSION="eclass_no_vdr_installed" 386 APIVERSION="eclass_no_vdr_installed"
432 patchmakefile) 430 patchmakefile)
433 cd "${S}" || die "Could not change to plugin-source-directory!" 431 cd "${S}" || die "Could not change to plugin-source-directory!"
434 vdr_patchmakefile 432 vdr_patchmakefile
435 ;; 433 ;;
436 i18n) 434 i18n)
435 # i18n-to-gettext tool removed starting with version 1.7.27
436 if has_version "<media-video/vdr-1.7.27"; then
437 cd "${S}" || die "Could not change to plugin-source-directory!" 437 cd "${S}" || die "Could not change to plugin-source-directory!"
438 vdr_i18n 438 vdr_i18n
439 fi
439 ;; 440 ;;
440 esac 441 esac
441 442
442 shift 443 shift
443 done 444 done

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

  ViewVC Help
Powered by ViewVC 1.1.20