/[gentoo-x86]/app-text/ttf2pt1/ttf2pt1-3.4.4.ebuild
Gentoo

Contents of /app-text/ttf2pt1/ttf2pt1-3.4.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sat Oct 10 15:24:52 2009 UTC (4 years, 11 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
sparc stable wrt #286600
(Portage version: 2.1.6.13/cvs/Linux ia64)

1 maekke 1.2 # Copyright 1999-2009 Gentoo Foundation
2 dirtyepic 1.1 # Distributed under the terms of the GNU General Public License v2
3 armin76 1.4 # $Header: /var/cvsroot/gentoo-x86/app-text/ttf2pt1/ttf2pt1-3.4.4.ebuild,v 1.3 2009/09/27 20:13:54 nixnut Exp $
4 dirtyepic 1.1
5     inherit eutils multilib toolchain-funcs
6    
7     DESCRIPTION="True Type Font to Postscript Type 1 Converter"
8     HOMEPAGE="http://ttf2pt1.sourceforge.net/"
9     SRC_URI="mirror://sourceforge/ttf2pt1/${P}.tgz"
10    
11     LICENSE="ttf2pt1"
12     SLOT="0"
13 armin76 1.4 KEYWORDS="amd64 ppc sparc x86"
14 dirtyepic 1.1 IUSE=""
15    
16     DEPEND=">=media-libs/freetype-2.0"
17    
18     src_unpack() {
19     unpack ${A}
20     cd "${S}"
21    
22     epatch "${FILESDIR}/${P}-Makefile.patch"
23     epatch "${FILESDIR}/${PN}-3.4.0-man-pages.diff"
24     epatch "${FILESDIR}/${P}-freetype.patch"
25    
26     sed -i -e "/^CC=/ { s:gcc:$(tc-getCC): }" Makefile
27     sed -i -e "/^CFLAGS_SYS=/ { s:-O.*$:${CFLAGS}: }" Makefile
28     sed -i -e "/^LIBS_FT=/ { s:-L/usr/lib:-L/usr/$(get_libdir): }" Makefile
29     sed -i -e "/^LIBXDIR =/ { s:libexec:$(get_libdir): }" Makefile
30     }
31    
32     src_compile() {
33     emake all || die
34     }
35    
36     src_install() {
37     emake INSTDIR=${D}/usr install || die
38     dodir /usr/share/doc/${PF}/html
39     cd ${D}/usr/share/ttf2pt1
40     rm -r app other
41     mv *.html ../doc/${PF}/html
42     mv [A-Z]* ../doc/${PF}
43     prepalldocs
44     }

  ViewVC Help
Powered by ViewVC 1.1.20