/[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.14 Revision 1.18
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.14 2005/10/20 00:35:21 spyderous Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.18 2005/11/02 05:51:38 joshuabaergen 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.
10# If the ebuild installs fonts, set FONT="yes" at the top and set FONT_DIRS to 10# If the ebuild installs fonts, set FONT="yes" at the top and set FONT_DIRS to
11# the subdirectories within /usr/share/fonts to which it installs fonts. 11# the subdirectories within /usr/share/fonts to which it installs fonts.
12 12
13EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst 13EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst
14 14
15inherit eutils 15inherit eutils libtool
16 16
17# Directory prefix to use for everything 17# Directory prefix to use for everything
18XDIR="/usr" 18XDIR="/usr"
19 19
20IUSE="" 20IUSE=""
51 DRIVER_OPTIONS="--disable-static" 51 DRIVER_OPTIONS="--disable-static"
52fi 52fi
53 53
54DEPEND="${DEPEND} 54DEPEND="${DEPEND}
55 >=dev-util/pkgconfig-0.18 55 >=dev-util/pkgconfig-0.18
56 x11-misc/util-macros" 56 >=x11-misc/util-macros-0.99.0_p20051007"
57 57
58RDEPEND="${RDEPEND} 58RDEPEND="${RDEPEND}
59 !<x11-base/xorg-x11-7" 59 !<x11-base/xorg-x11-7.0.0_rc0"
60# Provides virtual/x11 for temporary use until packages are ported 60# Provides virtual/x11 for temporary use until packages are ported
61# x11-base/x11-env" 61# x11-base/x11-env"
62
63x-modular_pkg_setup() {
64 # Collision protect will scream bloody murder if we install over old versions
65 if $(has_version "<x11-base/xorg-x11-7.0.0_rc0"); then
66 if has collision-protect ${FEATURES}; then
67 eerror "Having collision-protect in FEATURES will disrupt upgrades"
68 eerror "from non-modular versions of xorg-x11."
69 eerror "Please remove collision-protect from FEATURES while upgrading."
70 die ""
71 fi
72 fi
73}
62 74
63x-modular_unpack_source() { 75x-modular_unpack_source() {
64 unpack ${A} 76 unpack ${A}
65 cd ${S} 77 cd ${S}
78
79 # Joshua Baergen - October 23, 2005
80 # Fix shared lib issues on MIPS, FBSD, etc etc
81 elibtoolize
66} 82}
67 83
68x-modular_patch_source() { 84x-modular_patch_source() {
69 # Use standardized names and locations with bulk patching 85 # Use standardized names and locations with bulk patching
70 # Patch directory is ${WORKDIR}/patch 86 # Patch directory is ${WORKDIR}/patch

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20