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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Feb 12 18:32:40 2011 UTC (3 years, 4 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
sparc stable wrt #341847

(Portage version: 2.1.9.25/cvs/Linux ia64)

1 # Copyright 1999-2011 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.4-r1.ebuild,v 1.4 2011/01/10 19:37:39 ranger Exp $
4
5 EAPI="3"
6
7 inherit eutils multilib toolchain-funcs
8
9 DESCRIPTION="True Type Font to Postscript Type 1 Converter"
10 HOMEPAGE="http://ttf2pt1.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/ttf2pt1/${P}.tgz"
12
13 LICENSE="ttf2pt1"
14 SLOT="0"
15 KEYWORDS="amd64 ppc sparc x86"
16 IUSE=""
17
18 DEPEND=">=media-libs/freetype-2.0"
19 RDEPEND="${DEPEND}"
20
21 src_prepare() {
22 epatch "${FILESDIR}"/${P}-Makefile.patch
23 epatch "${FILESDIR}"/${P}-LDFLAGS.patch
24 epatch "${FILESDIR}"/${PN}-3.4.0-man-pages.diff
25 epatch "${FILESDIR}"/${P}-freetype.patch
26
27 sed -i -e "/^CC=/ { s:gcc:$(tc-getCC): }" Makefile
28 sed -i -e "/^CFLAGS_SYS=/ { s:-O.*$:${CFLAGS}: }" Makefile
29 sed -i -e "/^LIBS_FT=/ { s:-L/usr/lib:-L/usr/$(get_libdir): }" Makefile
30 sed -i -e "/^LIBXDIR =/ { s:libexec:$(get_libdir): }" Makefile
31 }
32
33 src_install() {
34 emake INSTDIR="${D}"/usr install || die
35 dodir /usr/share/doc/${PF}
36 pushd "${D}"/usr/share/ttf2pt1 > /dev/null
37 rm -r app other
38 mv [A-Z]* ../doc/${PF}
39 popd > /dev/null
40 }

  ViewVC Help
Powered by ViewVC 1.1.20