/[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.72 Revision 1.77
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2011 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.72 2011/01/28 17:07:03 hd_brummy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.77 2011/12/31 01:01:56 hd_brummy 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
263plugin_has_gettext() { 263plugin_has_gettext() {
264 [[ -d po ]] 264 [[ -d po ]]
265} 265}
266 266
267vdr_i18n_convert_to_gettext() { 267vdr_i18n_convert_to_gettext() {
268 if has_version ">=media-video/vdr-1.7.22"; then
269 local i18n_tool="${ROOT}/usr/share/vdr/bin/i18n-to-gettext"
270 else
268 local i18n_tool="${ROOT}/usr/share/vdr/bin/i18n-to-gettext.pl" 271 local i18n_tool="${ROOT}/usr/share/vdr/bin/i18n-to-gettext.pl"
272 fi
269 273
270 if [[ ${NO_GETTEXT_HACK} == "1" ]]; then 274 if [[ ${NO_GETTEXT_HACK} == "1" ]]; then
271 ewarn "Conversion to gettext disabled in ebuild" 275 ewarn "Conversion to gettext disabled in ebuild"
272 return 1 276 return 1
273 fi 277 fi
403 # Pathes to includes 407 # Pathes to includes
404 VDR_INCLUDE_DIR="/usr/include/vdr" 408 VDR_INCLUDE_DIR="/usr/include/vdr"
405 DVB_INCLUDE_DIR="/usr/include" 409 DVB_INCLUDE_DIR="/usr/include"
406 410
407 TMP_LOCALE_DIR="${WORKDIR}/tmp-locale" 411 TMP_LOCALE_DIR="${WORKDIR}/tmp-locale"
412 if has_version ">=media-video/vdr-1.6.0_p2-r7"; then
413 LOCDIR="/usr/share/locale"
414 else
408 LOCDIR="/usr/share/vdr/locale" 415 LOCDIR="/usr/share/vdr/locale"
416 fi
409 417
410 if ! has_vdr; then 418 if ! has_vdr; then
411 # set to invalid values to detect abuses 419 # set to invalid values to detect abuses
412 VDRVERSION="eclass_no_vdr_installed" 420 VDRVERSION="eclass_no_vdr_installed"
413 APIVERSION="eclass_no_vdr_installed" 421 APIVERSION="eclass_no_vdr_installed"

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.77

  ViewVC Help
Powered by ViewVC 1.1.20