/[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.7 Revision 1.14
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.7 2005/08/22 17:46:03 spyderous Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.14 2005/10/20 00:35:21 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.
17# Directory prefix to use for everything 17# Directory prefix to use for everything
18XDIR="/usr" 18XDIR="/usr"
19 19
20IUSE="" 20IUSE=""
21HOMEPAGE="http://xorg.freedesktop.org/" 21HOMEPAGE="http://xorg.freedesktop.org/"
22SRC_URI="http://xorg.freedesktop.org/X11R7.0-RC0/everything/${P}.tar.bz2" 22SRC_URI="http://xorg.freedesktop.org/releases/X11R7.0-RC1/everything/${P}.tar.bz2
23 http://xorg.freedesktop.org/releases/X11R7.0-RC0/everything/${P}.tar.bz2"
23LICENSE="X11" 24LICENSE="X11"
24SLOT="0" 25SLOT="0"
25 26
26# Set up shared dependencies 27# Set up shared dependencies
27if [ -n "${SNAPSHOT}" ]; then 28if [ -n "${SNAPSHOT}" ]; then
32 >=sys-devel/libtool-1.5 33 >=sys-devel/libtool-1.5
33 >=sys-devel/m4-1.4" 34 >=sys-devel/m4-1.4"
34fi 35fi
35 36
36# If we're a font package, but not the font.alias one 37# If we're a font package, but not the font.alias one
37if [[ "${PN/#font}" != "${PN}" ]] && [[ "${PN}" != "font-alias" ]]; then 38if [[ "${PN/#font-}" != "${PN}" ]] && [[ "${PN}" != "font-alias" ]]; then
38 # Activate font code in the rest of the eclass 39 # Activate font code in the rest of the eclass
39 FONT="yes" 40 FONT="yes"
40 41
41 RDEPEND="${RDEPEND} 42 RDEPEND="${RDEPEND}
42 media-fonts/encodings" 43 media-fonts/encodings"
43 PDEPEND="${PDEPEND} 44 PDEPEND="${PDEPEND}
44 media-fonts/font-alias" 45 media-fonts/font-alias"
45fi 46fi
46 47
47# If we're a driver package 48# If we're a driver package
48if [[ "${PN/#xf86-video}" != "${PN}" ]] | [[ "${PN}" != "xf86-input" ]]; then 49if [[ "${PN/#xf86-video}" != "${PN}" ]] || [[ "${PN/#xf86-input}" != "${PN}" ]]; then
49 # Don't build static driver modules 50 # Don't build static driver modules
50 DRIVER_OPTIONS="--disable-static" 51 DRIVER_OPTIONS="--disable-static"
51fi 52fi
52 53
53DEPEND="${DEPEND} 54DEPEND="${DEPEND}
54 dev-util/pkgconfig 55 >=dev-util/pkgconfig-0.18
55 x11-misc/util-macros" 56 x11-misc/util-macros"
56 57
57RDEPEND="${RDEPEND}" 58RDEPEND="${RDEPEND}
58# Shouldn't be necessary once we're in a standard location 59 !<x11-base/xorg-x11-7"
60# Provides virtual/x11 for temporary use until packages are ported
59# x11-base/x11-env" 61# x11-base/x11-env"
60# FIXME: Uncomment once it's in portage
61# !x11-base/xorg-x11"
62 62
63x-modular_unpack_source() { 63x-modular_unpack_source() {
64 unpack ${A} 64 unpack ${A}
65 cd ${S} 65 cd ${S}
66} 66}
94 then 94 then
95 # If possible, generate configure if it doesn't exist 95 # If possible, generate configure if it doesn't exist
96 if [ -f "${S}/configure.ac" ] 96 if [ -f "${S}/configure.ac" ]
97 then 97 then
98 einfo "Running autoreconf..." 98 einfo "Running autoreconf..."
99 autoreconf -v --install 99 autoreconf -v --force --install
100 fi 100 fi
101 fi 101 fi
102 102
103} 103}
104 104

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

  ViewVC Help
Powered by ViewVC 1.1.20