summaryrefslogtreecommitdiff
blob: 8df788f6309b532d588d9d0bf642ba6d7ab4c885 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-text/ttf2pt1/ttf2pt1-3.3.3.ebuild,v 1.3 2001/05/28 14:32:32 achim Exp $

A=${P}.tgz
S=${WORKDIR}/${P}
DESCRIPTION="Converts True Type to Type 1 fonts"
SRC_URI="http://download.sourceforge.net/ttf2pt1/${A}"
HOMEPAGE="http://ttf2pt1.sourceforge.net"

RDEPEND="virtual/glibc
        >=media-libs/freetype-2.0"
DEPEND="$RDEPEND sys-devel/perl"

src_unpack() {
    unpack ${A}
    patch -p0 < ${FILESDIR}/${P}-Makefile-gentoo.diff
}

src_compile() {

    try make CFLAGS=\"${CFLAGS}\" all

}

src_install () {

    try make INSTDIR=${D}/usr install
    dodir /usr/share/doc/${PF}/html
    cd ${D}/usr/share/ttf2pt1
    rm -r app other
    mv *.html ../doc/${PF}/html
    mv [A-Z]* ../doc/${PF}
    prepalldocs 
}