/[gentoo-x86]/eclass/xorg-2.eclass
Gentoo

Diff of /eclass/xorg-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.49 Revision 1.50
1# Copyright 1999-2011 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/xorg-2.eclass,v 1.49 2011/10/09 07:45:53 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.50 2011/10/14 20:27:11 mgorny Exp $
4 4
5# @ECLASS: xorg-2.eclass 5# @ECLASS: xorg-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# x11@gentoo.org 7# x11@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
476# Run X-specific post-installation tasks on the live filesystem. The 476# Run X-specific post-installation tasks on the live filesystem. The
477# only task right now is some setup for font packages. 477# only task right now is some setup for font packages.
478xorg-2_pkg_postinst() { 478xorg-2_pkg_postinst() {
479 debug-print-function ${FUNCNAME} "$@" 479 debug-print-function ${FUNCNAME} "$@"
480 480
481 [[ -n ${FONT} ]] && setup_fonts "$@" 481 if [[ -n ${FONT} ]]; then
482 create_fonts_scale
483 create_fonts_dir
484 font_pkg_postinst "$@"
485 fi
482} 486}
483 487
484# @FUNCTION: xorg-2_pkg_postrm 488# @FUNCTION: xorg-2_pkg_postrm
485# @DESCRIPTION: 489# @DESCRIPTION:
486# Run X-specific post-removal tasks on the live filesystem. The only 490# Run X-specific post-removal tasks on the live filesystem. The only
487# task right now is some cleanup for font packages. 491# task right now is some cleanup for font packages.
488xorg-2_pkg_postrm() { 492xorg-2_pkg_postrm() {
489 debug-print-function ${FUNCNAME} "$@" 493 debug-print-function ${FUNCNAME} "$@"
490 494
491 [[ -n ${FONT} ]] && font_pkg_postrm "$@" 495 if [[ -n ${FONT} ]]; then
492} 496 # if we're doing an upgrade, postinst will do
493 497 if [[ ${EAPI} -lt 4 || -z ${REPLACED_BY_VERSION} ]]; then
494# @FUNCTION: setup_fonts
495# @DESCRIPTION:
496# Generates needed files for fonts and fixes font permissions
497setup_fonts() {
498 debug-print-function ${FUNCNAME} "$@"
499
500 create_fonts_scale 498 create_fonts_scale
501 create_fonts_dir 499 create_fonts_dir
502 font_pkg_postinst 500 font_pkg_postrm "$@"
501 fi
502 fi
503} 503}
504 504
505# @FUNCTION: remove_font_metadata 505# @FUNCTION: remove_font_metadata
506# @DESCRIPTION: 506# @DESCRIPTION:
507# Don't let the package install generated font files that may overlap 507# Don't let the package install generated font files that may overlap

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

  ViewVC Help
Powered by ViewVC 1.1.20