/[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.6 Revision 1.7
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.6 2005/08/21 04:56:53 spyderous Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.7 2005/08/22 17:46:03 spyderous 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.
40 40
41 RDEPEND="${RDEPEND} 41 RDEPEND="${RDEPEND}
42 media-fonts/encodings" 42 media-fonts/encodings"
43 PDEPEND="${PDEPEND} 43 PDEPEND="${PDEPEND}
44 media-fonts/font-alias" 44 media-fonts/font-alias"
45fi
46
47# If we're a driver package
48if [[ "${PN/#xf86-video}" != "${PN}" ]] | [[ "${PN}" != "xf86-input" ]]; then
49 # Don't build static driver modules
50 DRIVER_OPTIONS="--disable-static"
45fi 51fi
46 52
47DEPEND="${DEPEND} 53DEPEND="${DEPEND}
48 dev-util/pkgconfig 54 dev-util/pkgconfig
49 x11-misc/util-macros" 55 x11-misc/util-macros"
105x-modular_src_configure() { 111x-modular_src_configure() {
106 # If prefix isn't set here, .pc files cause problems 112 # If prefix isn't set here, .pc files cause problems
107 if [ -x ./configure ]; then 113 if [ -x ./configure ]; then
108 econf --prefix=${XDIR} \ 114 econf --prefix=${XDIR} \
109 --datadir=${XDIR}/share \ 115 --datadir=${XDIR}/share \
116 ${DRIVER_OPTIONS} \
110 ${CONFIGURE_OPTIONS} 117 ${CONFIGURE_OPTIONS}
111 fi 118 fi
112} 119}
113 120
114x-modular_src_make() { 121x-modular_src_make() {
127 install 134 install
128# Shouldn't be necessary in XDIR=/usr 135# Shouldn't be necessary in XDIR=/usr
129# einstall forces datadir, so we need to re-force it 136# einstall forces datadir, so we need to re-force it
130# datadir=${XDIR}/share \ 137# datadir=${XDIR}/share \
131# mandir=${XDIR}/share/man \ 138# mandir=${XDIR}/share/man \
139
140 # Don't install libtool archives for server modules
141 if [[ -e ${D}/usr/lib/xorg/modules ]]; then
142 find ${D}/usr/lib/xorg/modules -name '*.la' \
143 | xargs rm -f
144 fi
132} 145}
133 146
134x-modular_pkg_preinst() { 147x-modular_pkg_preinst() {
135 if [[ -n "${FONT}" ]]; then 148 if [[ -n "${FONT}" ]]; then
136 discover_font_dirs 149 discover_font_dirs

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20