blob: ef57ce83ee9c9cb763739d4ccbc475e31ba4e89c (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/t1lib-5.0.2.ebuild,v 1.31 2007/10/15 12:55:21 aballier Exp $
inherit eutils flag-o-matic libtool toolchain-funcs
DESCRIPTION="A Type 1 Font Rasterizer Library for UNIX/X11"
HOMEPAGE="ftp://metalab.unc.edu/pub/Linux/libs/graphics/"
SRC_URI="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/${P}.tar.gz"
LICENSE="LGPL-2 GPL-2"
SLOT="5"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="X doc"
RDEPEND="X? ( x11-libs/libXaw )"
DEPEND="${RDEPEND}
doc? ( virtual/latex-base )
X? ( x11-libs/libXfont
x11-proto/xproto
x11-proto/fontsproto )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gentoo.diff
epatch "${FILESDIR}"/${P}-asneeded.patch
sed -i -e "s:dvips:#dvips:" "${S}"/doc/Makefile.in
sed -i -e "s:\./\(t1lib\.config\):/etc/t1lib/\1:" "${S}"/xglyph/xglyph.c
}
src_compile() {
local myopt=""
tc-export CC
use alpha && append-flags -mieee
if ! use doc; then
myopt="without_doc"
else
addwrite /var/cache/fonts
fi
econf \
--datadir=/etc \
`use_with X x` \
|| die "econf failed."
emake ${myopt} || die "emake failed."
}
src_install() {
make DESTDIR="${D}" install || die "make install failed."
dodoc Changes LGPL LICENSE README*
if use doc ; then
cd doc
insinto /usr/share/doc/${PF}
doins *.pdf *.dvi
fi
}
pkg_postinst() {
ewarn
ewarn "You must rebuild other packages depending on t1lib."
ewarn "You may use revdep-rebuild (from app-portage/gentoolkit)"
ewarn "to do all necessary tricks."
ewarn
}
|