# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.3.4-r1.ebuild,v 1.1 2007/05/09 22:39:11 dirtyepic Exp $ inherit eutils flag-o-matic libtool DESCRIPTION="A high-quality and portable font engine" HOMEPAGE="http://www.freetype.org/" SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2 mirror://sourceforge/freetype/ft2demos-${PV}.tar.gz doc? ( mirror://sourceforge/${PN}/${PN}-doc-${PV}.tar.bz2 )" LICENSE="FTL GPL-2" SLOT="2" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="X bindist debug doc zlib demo" # The RDEPEND below makes sure that if there is a version of moz/ff/tb # installed, then it will have the freetype-2.1.8+ binary compatibility patch. # Otherwise updating freetype will cause moz/ff/tb crashes. #59849 # 20 Nov 2004 agriffis DEPEND="zlib? ( sys-libs/zlib ) X? ( x11-libs/libX11 )" RDEPEND="${DEPEND} ! /dev/null && export GNUMAKE=gmake econf $(use_with zlib) || die "econf failed" emake || die "emake failed" # Are ypou really need demos if use demo; then cd ../ft2demos-${PV} emake || die "ft2demos emake failed" fi } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc ChangeLog README dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PATENTS,TODO} #cd "${WORKDIR}"/${PN}-doc-${PV} use doc && dohtml -r docs/* if use demo; then rm ../ft2demos-${PV}/bin/README for ft2demo in ../ft2demos-${PV}/bin/*; do ./builds/unix/libtool --mode=install $(type -P install) -m 755 $ft2demo \ ${D}/usr/bin done fi }