# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils flag-o-matic DESCRIPTION="A high-quality and portable font engine" HOMEPAGE="http://www.freetype.org/" SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2 doc? ( mirror://sourceforge/${PN}/${PN}-doc-${PV}.tar.bz2 )" LICENSE="FTL GPL-2" SLOT="2" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="zlib bindist doc" # 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 )" RDEPEND="${DEPEND} ! /dev/null && export GNUMAKE=gmake econf $(use_with zlib) || die emake || die } src_install() { make DESTDIR="${D}" install || die dodoc ChangeLog README dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PATENTS,PROBLEMS,TODO} cd "${WORKDIR}"/${PN}-doc-${PV} use doc && dohtml -r docs/* }