| 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.22 2005/11/16 05:01:36 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 | |
| 13 | EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst |
13 | EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst |
| 14 | |
14 | |
| 15 | inherit eutils |
15 | inherit eutils libtool |
| 16 | |
16 | |
| 17 | # Directory prefix to use for everything |
17 | # Directory prefix to use for everything |
| 18 | XDIR="/usr" |
18 | XDIR="/usr" |
| 19 | |
19 | |
| 20 | IUSE="" |
20 | IUSE="" |
| 21 | HOMEPAGE="http://xorg.freedesktop.org/" |
21 | HOMEPAGE="http://xorg.freedesktop.org/" |
| 22 | SRC_URI="http://xorg.freedesktop.org/releases/X11R7.0-RC1/everything/${P}.tar.bz2 |
22 | SRC_URI="http://xorg.freedesktop.org/releases/X11R7.0-RC2/everything/${P}.tar.bz2 |
|
|
23 | 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" |
24 | http://xorg.freedesktop.org/releases/X11R7.0-RC0/everything/${P}.tar.bz2" |
| 24 | LICENSE="X11" |
25 | LICENSE="X11" |
| 25 | SLOT="0" |
26 | SLOT="0" |
| 26 | |
27 | |
| 27 | # Set up shared dependencies |
28 | # Set up shared dependencies |
| … | |
… | |
| 51 | DRIVER_OPTIONS="--disable-static" |
52 | DRIVER_OPTIONS="--disable-static" |
| 52 | fi |
53 | fi |
| 53 | |
54 | |
| 54 | DEPEND="${DEPEND} |
55 | DEPEND="${DEPEND} |
| 55 | >=dev-util/pkgconfig-0.18 |
56 | >=dev-util/pkgconfig-0.18 |
| 56 | x11-misc/util-macros" |
57 | >=x11-misc/util-macros-0.99.0_p20051007" |
| 57 | |
58 | |
|
|
59 | # >=sys-apps/man-1.6b-r2 required to look in [0-8]x/ directories |
| 58 | RDEPEND="${RDEPEND} |
60 | RDEPEND="${RDEPEND} |
| 59 | !<x11-base/xorg-x11-7" |
61 | !<=x11-base/xorg-x11-6.9 |
|
|
62 | >=sys-apps/man-1.6b-r2" |
| 60 | # Provides virtual/x11 for temporary use until packages are ported |
63 | # Provides virtual/x11 for temporary use until packages are ported |
| 61 | # x11-base/x11-env" |
64 | # x11-base/x11-env" |
| 62 | |
65 | |
| 63 | x-modular_unpack_source() { |
66 | x-modular_unpack_source() { |
| 64 | unpack ${A} |
67 | unpack ${A} |
| 65 | cd ${S} |
68 | cd ${S} |
|
|
69 | |
|
|
70 | # Joshua Baergen - October 23, 2005 |
|
|
71 | # Fix shared lib issues on MIPS, FBSD, etc etc |
|
|
72 | elibtoolize |
| 66 | } |
73 | } |
| 67 | |
74 | |
| 68 | x-modular_patch_source() { |
75 | x-modular_patch_source() { |
| 69 | # Use standardized names and locations with bulk patching |
76 | # Use standardized names and locations with bulk patching |
| 70 | # Patch directory is ${WORKDIR}/patch |
77 | # Patch directory is ${WORKDIR}/patch |