summaryrefslogtreecommitdiff
blob: f17c3cb9fd515c6b17af111f0c9cfb8647d9fbe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/xft/xft-2.0-r1.ebuild,v 1.4 2002/12/01 19:04:11 foser Exp $

PROVIDE="virtual/xft"
DESCRIPTION="Xft2"
SRC_URI="http://fontconfig.org/release/fcpackage.${PV/\./_}.tar.gz"     
HOMEPAGE="http://fontconfig.org/" 
LICENSE="fontconfig"
SLOT="0"
KEYWORDS="x86"
IUSE=""

RDEPEND="x11-base/xfree
	media-libs/fontconfig"

DEPEND="${RDEPEND}
	>=sys-devel/autoconf-2.53a"	

S="${WORKDIR}/fcpackage.${PV/\./_}/Xft"   

src_unpack() {
	unpack ${A}
	
	cd ${S}
	export WANT_AUTOCONF_2_5=1
	autoconf --force
}

src_compile() {
	econf --x-includes=/usr/X11R6/include \
		--x-libraries=/usr/X11R6/lib \
		|| die "Xft2 config failed"
	emake || die "Xft2 make failed"  
}

src_install() {
	einstall confdir=${D}/etc/fonts \
		datadir=${D}/usr/share || die

	dodir /usr/X11R6/lib
	dosym /usr/lib/libXft.so.2.0 /usr/X11R6/lib/libXft.so     
}

pkg_preinst() {
	mv /usr/X11R6/include/X11/Xft /root/.Xft	
}

pkg_postinst() {
	einfo "Your old Xft includes have been saved to /root/.Xft"
}