From 2782e318f9e2067560d144a7e6d033d831a996b2 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Thu, 4 Oct 2007 01:07:26 +0000 Subject: - made ft2demos optional with utils USE flag (Bug #182905 by kerzol) - always use system zlib - remove ancient RDEPEND blockers (Portage version: 2.1.3.11) --- media-libs/freetype/ChangeLog | 10 +- media-libs/freetype/files/digest-freetype-2.3.5-r2 | 9 ++ media-libs/freetype/freetype-2.3.5-r2.ebuild | 118 +++++++++++++++++++++ media-libs/freetype/metadata.xml | 5 +- 4 files changed, 137 insertions(+), 5 deletions(-) create mode 100644 media-libs/freetype/files/digest-freetype-2.3.5-r2 create mode 100644 media-libs/freetype/freetype-2.3.5-r2.ebuild (limited to 'media-libs/freetype') diff --git a/media-libs/freetype/ChangeLog b/media-libs/freetype/ChangeLog index 5aafce8f5f9d..affc1cf74ee9 100644 --- a/media-libs/freetype/ChangeLog +++ b/media-libs/freetype/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-libs/freetype # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.158 2007/10/01 05:37:54 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.159 2007/10/04 01:07:25 dirtyepic Exp $ + +*freetype-2.3.5-r2 (04 Oct 2007) + + 04 Oct 2007; Ryan Hill metadata.xml, + +freetype-2.3.5-r2.ebuild: + - made ft2demos optional with utils USE flag (Bug #182905 by kerzol) + - always use system zlib + - remove ancient RDEPEND blockers 01 Oct 2007; Ryan Hill -freetype-1.3.1-r4.ebuild, -freetype-2.3.5.ebuild: diff --git a/media-libs/freetype/files/digest-freetype-2.3.5-r2 b/media-libs/freetype/files/digest-freetype-2.3.5-r2 new file mode 100644 index 000000000000..4c78a960433d --- /dev/null +++ b/media-libs/freetype/files/digest-freetype-2.3.5-r2 @@ -0,0 +1,9 @@ +MD5 65234327c5ac46ee00ebda15995d4c1c freetype-2.3.5.tar.bz2 1279861 +RMD160 2a97cb1c3d93572c094d5d2890d12445ef2786d4 freetype-2.3.5.tar.bz2 1279861 +SHA256 1b357a3a1106c78c80dfd25e3854c3faa9a3dfc7063a4a1e5404e70c241d677e freetype-2.3.5.tar.bz2 1279861 +MD5 8f443368764f7cd776749e0143f423dd freetype-doc-2.3.5.tar.bz2 98644 +RMD160 d0a5cbe51eceb6c4a3a8eaaf4e3d99c2ca02266f freetype-doc-2.3.5.tar.bz2 98644 +SHA256 9c37aee42427feaaec7a276267f8c8ad771cb81033066bdf452c731fa41e4b0b freetype-doc-2.3.5.tar.bz2 98644 +MD5 708bf1bc13a0a1d1bb801466d6d97c40 ft2demos-2.3.5.tar.bz2 157557 +RMD160 7620d829a86d4125bc08d949cee13f8c383f6d88 ft2demos-2.3.5.tar.bz2 157557 +SHA256 f86d0d2906a2520d70460336002d20346c5013a973f3cedd049246715cef8e9f ft2demos-2.3.5.tar.bz2 157557 diff --git a/media-libs/freetype/freetype-2.3.5-r2.ebuild b/media-libs/freetype/freetype-2.3.5-r2.ebuild new file mode 100644 index 000000000000..aaeea551311a --- /dev/null +++ b/media-libs/freetype/freetype-2.3.5-r2.ebuild @@ -0,0 +1,118 @@ +# 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.5-r2.ebuild,v 1.1 2007/10/04 01:07:25 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 + utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 ) + doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 )" + +LICENSE="FTL GPL-2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="X bindist debug doc utils" + +DEPEND="X? ( x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp )" + +# We also need a recent fontconfig version to prevent segfaults. #166029 +# July 3 2007 dirtyepic +RDEPEND="${DEPEND} + ! /dev/null && export GNUMAKE=gmake + econf || die "econf failed" + emake || die "emake failed" + + if use utils; then + cd "${WORKDIR}"/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} + + use doc && dohtml -r docs/* + + if use utils; then + rm "${WORKDIR}"/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 +} + +pkg_postinst() { + echo + ewarn "After upgrading to freetype-2.3.5, it is necessary to rebuild" + ewarn "libXfont to avoid build errors in some packages." + echo + elog "The utilities and demos previously bundled with freetype are now" + elog "optional. Enable the utils USE flag if you would like them" + elog "to be installed." + echo +} diff --git a/media-libs/freetype/metadata.xml b/media-libs/freetype/metadata.xml index 3b6bbdbe1a17..64cc0b687d48 100644 --- a/media-libs/freetype/metadata.xml +++ b/media-libs/freetype/metadata.xml @@ -1,8 +1,5 @@ -fonts - - foser@gentoo.org - + fonts -- cgit v1.2.3-65-gdbad