/[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.82 Revision 1.86
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.82 2012/03/09 22:44:58 hd_brummy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.86 2012/04/07 10:18:24 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
588 590
589vdr-plugin_pkg_postrm() { 591vdr-plugin_pkg_postrm() {
590 delete_orphan_plugindb_file 592 delete_orphan_plugindb_file
591} 593}
592 594
595vdr-plugin_pkg_config() {
596:
597}
598
593case "${EAPI:-0}" in 599case "${EAPI:-0}" in
594 2|3|4) 600 2|3|4)
595 EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_compile src_install pkg_postinst pkg_postrm pkg_config 601 EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_compile src_install pkg_postinst pkg_postrm pkg_config
596 ;; 602 ;;
597 *) 603 *)

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.86

  ViewVC Help
Powered by ViewVC 1.1.20