/[gentoo-x86]/media-libs/t1lib/t1lib-5.1.2.ebuild
Gentoo

Contents of /media-libs/t1lib/t1lib-5.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Wed Aug 22 03:20:50 2012 UTC (2 years ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +2 -2 lines
added prefix keywords

(Portage version: 2.2.0_alpha121/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/t1lib-5.1.2.ebuild,v 1.14 2012/05/09 14:00:02 aballier Exp $
4
5 EAPI=4
6
7 inherit eutils flag-o-matic libtool toolchain-funcs
8
9 DESCRIPTION="A Type 1 Font Rasterizer Library for UNIX/X11"
10 HOMEPAGE="ftp://metalab.unc.edu/pub/Linux/libs/graphics/"
11 SRC_URI="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/${P}.tar.gz"
12
13 LICENSE="LGPL-2 GPL-2"
14 SLOT="5"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
16 IUSE="X doc static-libs"
17
18 RDEPEND="X? (
19 x11-libs/libXaw
20 x11-libs/libX11
21 x11-libs/libXt
22 )"
23 DEPEND="${RDEPEND}
24 doc? ( virtual/latex-base )
25 X? (
26 x11-libs/libXfont
27 x11-proto/xproto
28 x11-proto/fontsproto
29 )"
30
31 src_prepare() {
32 epatch "${FILESDIR}"/${PN}-5.1.1-parallel.patch
33 epatch "${FILESDIR}"/${PN}-do-not-install-t1lib_doc.patch
34
35 sed -i -e "s:dvips:#dvips:" "${S}"/doc/Makefile.in
36 sed -i -e "s:\./\(t1lib\.config\):/etc/t1lib/\1:" "${S}"/xglyph/xglyph.c
37 # Needed for sane .so versionning on fbsd. Please don't drop.
38 elibtoolize
39 }
40
41 src_configure() {
42 econf \
43 --datadir="${EPREFIX}/etc" \
44 $(use_enable static-libs static) \
45 $(use_with X x)
46 }
47
48 src_compile() {
49 local myopt=""
50 tc-export CC
51
52 use alpha && append-flags -mieee
53
54 if ! use doc; then
55 myopt="without_doc"
56 else
57 VARTEXFONTS=${T}/fonts
58 fi
59
60 emake ${myopt} || die "emake failed."
61 }
62
63 src_install() {
64 default
65 use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
66
67 dodoc Changes README*
68 if use doc; then
69 cd doc
70 insinto /usr/share/doc/${PF}
71 doins *.pdf *.dvi
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20