summaryrefslogtreecommitdiff
blob: eca81d7a0ae1db0a99e9e8e005a420ac291f7f44 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/t1lib-1.1.1.ebuild,v 1.2 2002/07/11 06:30:40 drobbins Exp $

A=${P}.tar.gz
S=${WORKDIR}/T1-${PV}
DESCRIPTION="A Type 1 Rasterizer Library for UNIX/X11"
SRC_URI="ftp://ftp.neuroinformatik.ruhr-uni-bochum.de/pub/software/t1lib/${A}"
HOMEPAGE="http://www.neuroinformatik.ruhr-uni-bochum.de/ini/PEOPLE/rmz/t1lib/t1lib.html"

DEPEND="virtual/glibc
	tetex? ( >=app-text/tetex-1.0.7 )
	X? ( virtual/x11 )"

src_compile() {

  local myconf
  if [ "`use X`" ]
  then
    myconf="--with-x"
  else
    myconf="--without-x"
  fi

  try ./configure --host=${CHOST} --prefix=/usr --datadir=/etc ${myconf}

  if [ "`use tetex`" ]
  then
     try make
  else
     try make without_doc
  fi

}

src_install() {

  cd lib
  insinto /usr/include
  doins t1lib.h

  if [ "`use X`" ]
  then

    doins t1libx.h
    dolib .libs/libt1x.{la,a,so.1.1.1}
    dosym libt1x.so.1.1.1 /usr/lib/libt1x.so.1
    dosym libt1x.so.1.1.1 /usr/lib/libt1x.so
  fi
  dolib .libs/libt1.{la,a,so.1.1.1}
  dosym libt1.so.1.1.1 /usr/lib/libt1.so.1
  dosym libt1.so.1.1.1 /usr/lib/libt1.so
  insinto /etc/t1lib
  doins t1lib.config

  cd ..
  dodoc Changes LGPL LICENSE README*

}