/[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.11 Revision 1.24
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.11 2005/09/05 20:36:30 spyderous Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.24 2005/12/06 02:22:16 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.
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=""
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-RC3/everything/${P}.tar.bz2
23 http://xorg.freedesktop.org/releases/X11R7.0-RC2/everything/${P}.tar.bz2
24 http://xorg.freedesktop.org/releases/X11R7.0-RC1/everything/${P}.tar.bz2
25 http://xorg.freedesktop.org/releases/X11R7.0-RC0/everything/${P}.tar.bz2"
23LICENSE="X11" 26LICENSE="X11"
24SLOT="0" 27SLOT="0"
25 28
26# Set up shared dependencies 29# Set up shared dependencies
27if [ -n "${SNAPSHOT}" ]; then 30if [ -n "${SNAPSHOT}" ]; then
32 >=sys-devel/libtool-1.5 35 >=sys-devel/libtool-1.5
33 >=sys-devel/m4-1.4" 36 >=sys-devel/m4-1.4"
34fi 37fi
35 38
36# If we're a font package, but not the font.alias one 39# If we're a font package, but not the font.alias one
37if [[ "${PN/#font}" != "${PN}" ]] && [[ "${PN}" != "font-alias" ]]; then 40if [[ "${PN/#font-}" != "${PN}" ]] && [[ "${PN}" != "font-alias" ]]; then
38 # Activate font code in the rest of the eclass 41 # Activate font code in the rest of the eclass
39 FONT="yes" 42 FONT="yes"
40 43
41 RDEPEND="${RDEPEND} 44 RDEPEND="${RDEPEND}
42 media-fonts/encodings" 45 media-fonts/encodings"
43 PDEPEND="${PDEPEND} 46 PDEPEND="${PDEPEND}
44 media-fonts/font-alias" 47 media-fonts/font-alias"
45fi 48fi
46 49
47# If we're a driver package 50# If we're a driver package
48if [[ "${PN/#xf86-video}" != "${PN}" || "${PN/#xf86-input}" != "${PN}" ]] 51if [[ "${PN/#xf86-video}" != "${PN}" ]] || [[ "${PN/#xf86-input}" != "${PN}" ]]; then
49then
50 # Don't build static driver modules 52 # Don't build static driver modules
51 DRIVER_OPTIONS="--disable-static" 53 DRIVER_OPTIONS="--disable-static"
52fi 54fi
53 55
54DEPEND="${DEPEND} 56DEPEND="${DEPEND}
55 >=dev-util/pkgconfig-0.18 57 >=dev-util/pkgconfig-0.18
56 x11-misc/util-macros" 58 >=x11-misc/util-macros-0.99.2"
57 59
60# >=sys-apps/man-1.6b-r2 required to look in [0-8]x/ directories
58RDEPEND="${RDEPEND}" 61RDEPEND="${RDEPEND}
59# Shouldn't be necessary once we're in a standard location 62 !<=x11-base/xorg-x11-6.9
63 >=sys-apps/man-1.6b-r2"
64# Provides virtual/x11 for temporary use until packages are ported
60# x11-base/x11-env" 65# x11-base/x11-env"
61# FIXME: Uncomment once it's in portage
62# !x11-base/xorg-x11"
63 66
64x-modular_unpack_source() { 67x-modular_unpack_source() {
65 unpack ${A} 68 unpack ${A}
66 cd ${S} 69 cd ${S}
70
71 # Joshua Baergen - October 23, 2005
72 # Fix shared lib issues on MIPS, FBSD, etc etc
73 elibtoolize
67} 74}
68 75
69x-modular_patch_source() { 76x-modular_patch_source() {
70 # Use standardized names and locations with bulk patching 77 # Use standardized names and locations with bulk patching
71 # Patch directory is ${WORKDIR}/patch 78 # Patch directory is ${WORKDIR}/patch

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20