/[gentoo-x86]/eclass/x-modular.eclass
Gentoo

Diff of /eclass/x-modular.eclass

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

Revision 1.72 Revision 1.76
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/x-modular.eclass,v 1.72 2006/07/29 17:42:11 joshuabaergen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.76 2006/10/11 02:31:47 dberkholz Exp $
4# 4#
5# Author: Donnie Berkholz <spyderous@gentoo.org> 5# Author: Donnie Berkholz <spyderous@gentoo.org>
6# 6#
7# This eclass is designed to reduce code duplication in the modularized X11 7# This eclass is designed to reduce code duplication in the modularized X11
8# ebuilds. 8# ebuilds.
166 >=x11-misc/util-macros-0.99.2 166 >=x11-misc/util-macros-0.99.2
167 >=sys-devel/binutils-2.16.1-r3" 167 >=sys-devel/binutils-2.16.1-r3"
168fi 168fi
169 169
170RDEPEND="${RDEPEND} 170RDEPEND="${RDEPEND}
171 || ( >=sys-apps/man-1.6b-r2 >=sys-apps/man-db-2.4.3-r1 )
171 !<=x11-base/xorg-x11-6.9" 172 !<=x11-base/xorg-x11-6.9"
172# Provides virtual/x11 for temporary use until packages are ported 173# Provides virtual/x11 for temporary use until packages are ported
173# x11-base/x11-env" 174# x11-base/x11-env"
174 175
175x-modular_specs_check() { 176x-modular_specs_check() {
249x-modular_reconf_source() { 250x-modular_reconf_source() {
250 # Run autoreconf for CVS snapshots only 251 # Run autoreconf for CVS snapshots only
251 if [[ "${SNAPSHOT}" = "yes" ]] 252 if [[ "${SNAPSHOT}" = "yes" ]]
252 then 253 then
253 # If possible, generate configure if it doesn't exist 254 # If possible, generate configure if it doesn't exist
254 if [ -f "${S}/configure.ac" ] 255 if [ -f "./configure.ac" ]
255 then 256 then
256 eautoreconf 257 eautoreconf
257 fi 258 fi
258 fi 259 fi
259 260
355 356
356 # Don't install overlapping fonts.* files 357 # Don't install overlapping fonts.* files
357 # Generate them instead when possible 358 # Generate them instead when possible
358 if [[ -n "${FONT}" ]]; then 359 if [[ -n "${FONT}" ]]; then
359 remove_font_metadata 360 remove_font_metadata
361 fi
362
363 if [[ -n "${DRIVER}" ]]; then
364 install_driver_hwdata
360 fi 365 fi
361} 366}
362 367
363x-modular_pkg_preinst() { 368x-modular_pkg_preinst() {
364 if [[ -n "${FONT}" ]]; then 369 if [[ -n "${FONT}" ]]; then
432 if [[ "${DIR}" != "Speedo" ]] && \ 437 if [[ "${DIR}" != "Speedo" ]] && \
433 [[ "${DIR}" != "CID" ]] ; then 438 [[ "${DIR}" != "CID" ]] ; then
434 # Delete font metadata files 439 # Delete font metadata files
435 # fonts.scale, fonts.dir, fonts.cache-1 440 # fonts.scale, fonts.dir, fonts.cache-1
436 rm -f ${D}/usr/share/fonts/${DIR}/fonts.{scale,dir,cache-1} 441 rm -f ${D}/usr/share/fonts/${DIR}/fonts.{scale,dir,cache-1}
442 fi
443 done
444}
445
446# Installs device-to-driver mappings for system-config-display
447# and anything else that uses hwdata
448install_driver_hwdata() {
449 insinto /usr/share/hwdata/videoaliases
450 for i in "${FILESDIR}"/*.xinf; do
451 # We need this for the case when none exist,
452 # so *.xinf doesn't expand
453 if [[ -e $i ]]; then
454 doins $i
437 fi 455 fi
438 done 456 done
439} 457}
440 458
441discover_font_dirs() { 459discover_font_dirs() {

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

  ViewVC Help
Powered by ViewVC 1.1.20