/[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.63 Revision 1.64
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.63 2008/06/24 16:43:38 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.64 2008/06/25 21:35:27 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
338 338
339 dosym "${VDRPLUGIN}-${PV}" "${destdir}" 339 dosym "${VDRPLUGIN}-${PV}" "${destdir}"
340} 340}
341 341
342vdr-plugin_print_enable_command() { 342vdr-plugin_print_enable_command() {
343 local p_name c=0 l=""
344 for p_name in ${vdr_plugin_list}; do
345 c=$(( c+1 ))
346 l="$l ${p_name#vdr-}"
347 done
348
343 elog 349 elog
350 case $c in
351 1) elog "Installed plugin${l}" ;;
352 *) elog "Installed $c plugins:${l}" ;;
353 esac
344 elog "To activate this vdr-plugin execute the following command:" 354 elog "To activate a plugin execute this command:"
345 elog "\teselect vdr-plugin enable ${PN#vdr-}" 355 elog "\teselect vdr-plugin enable <plugin_name> ..."
346 elog 356 elog
347} 357}
348 358
349 359
350## exported functions 360## exported functions
473 cd "${S}" 483 cd "${S}"
474 insinto "${VDR_PLUGIN_DIR}" 484 insinto "${VDR_PLUGIN_DIR}"
475 doins libvdr-*.so.* 485 doins libvdr-*.so.*
476 486
477 # create list of all created plugin libs 487 # create list of all created plugin libs
478 local p_list="" p_name 488 vdr_plugin_list=""
489 local p_name
479 for p in libvdr-*.so.*; do 490 for p in libvdr-*.so.*; do
480 p_name="${p%.so*}" 491 p_name="${p%.so*}"
481 p_name="${p_name#lib}" 492 p_name="${p_name#lib}"
482 p_list="${p_list} ${p_name}" 493 vdr_plugin_list="${vdr_plugin_list} ${p_name}"
483 done 494 done
484 495
485 create_header_checksum_file ${p_list} 496 create_header_checksum_file ${vdr_plugin_list}
486 create_plugindb_file ${p_list} 497 create_plugindb_file ${vdr_plugin_list}
487 498
488 if vdr_has_gettext && [[ -d ${TMP_LOCALE_DIR} ]]; then 499 if vdr_has_gettext && [[ -d ${TMP_LOCALE_DIR} ]]; then
489 einfo "Installing locales" 500 einfo "Installing locales"
490 cd "${TMP_LOCALE_DIR}" 501 cd "${TMP_LOCALE_DIR}"
491 insinto "${LOCDIR}" 502 insinto "${LOCDIR}"

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20