/[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.1 - (hide annotations) (download)
Mon Jul 16 02:30:10 2007 UTC (7 years, 5 months ago) by dirtyepic
Branch: MAIN
Fix support for converting freetype (otf) fonts.  (bug #112680)
Version bump, rewrote ebuild.
Added to font herd.
(Portage version: 2.1.3_rc8)

1 dirtyepic 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/app-text/ttf2pt1/ttf2pt1-3.4.0.ebuild,v 1.24 2007/06/20 14:00:17 angelos Exp $
4    
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     KEYWORDS="~amd64 ~ppc ~sparc ~x86"
14     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