diff options
author | 2007-09-22 19:14:06 +0000 | |
---|---|---|
committer | 2007-09-22 19:14:06 +0000 | |
commit | baed49befccfe5cb675c33d79118c8e3ed7fd6cd (patch) | |
tree | 543b4272bdbddad91cadc3e01e32c9d3da9943c7 /media-libs/t1lib/t1lib-5.0.2-r1.ebuild | |
parent | Add epunt_cxx for bug #185602. (diff) | |
download | historical-baed49befccfe5cb675c33d79118c8e3ed7fd6cd.tar.gz historical-baed49befccfe5cb675c33d79118c8e3ed7fd6cd.tar.bz2 historical-baed49befccfe5cb675c33d79118c8e3ed7fd6cd.zip |
Revision bump for Secunia SA26241, bug #193437. Version bump for bug #130362.
Package-Manager: portage-2.1.3.9
Diffstat (limited to 'media-libs/t1lib/t1lib-5.0.2-r1.ebuild')
-rw-r--r-- | media-libs/t1lib/t1lib-5.0.2-r1.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/media-libs/t1lib/t1lib-5.0.2-r1.ebuild b/media-libs/t1lib/t1lib-5.0.2-r1.ebuild new file mode 100644 index 000000000000..fa867797a2a8 --- /dev/null +++ b/media-libs/t1lib/t1lib-5.0.2-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/t1lib-5.0.2-r1.ebuild,v 1.1 2007/09/22 19:14:05 dirtyepic Exp $ + +inherit eutils flag-o-matic libtool toolchain-funcs + +DESCRIPTION="A Type 1 Font Rasterizer Library for UNIX/X11" +HOMEPAGE="ftp://metalab.unc.edu/pub/Linux/libs/graphics/" +SRC_URI="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/${P}.tar.gz" + +LICENSE="LGPL-2 GPL-2" +SLOT="5" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="X doc" + +RDEPEND="X? ( x11-libs/libXaw + x11-libs/libX11 + x11-libs/libXt )" +DEPEND="${RDEPEND} + doc? ( virtual/tetex ) + X? ( x11-libs/libXfont + x11-proto/xproto + x11-proto/fontsproto )" + +src_unpack() { + unpack ${A} + use ppc-macos && darwintoolize + cd "${S}" + + epatch "${FILESDIR}"/${P}-gentoo.diff + epatch "${FILESDIR}"/${P}-asneeded.patch + epatch "${FILESDIR}"/${P}-SA26241_buffer_overflow.patch + + sed -i -e "s:dvips:#dvips:" "${S}"/doc/Makefile.in + sed -i -e "s:\./\(t1lib\.config\):/etc/t1lib/\1:" "${S}"/xglyph/xglyph.c +} + +src_compile() { + local myopt="" + tc-export CC + + use alpha && append-flags -mieee + + if ! use doc; then + myopt="without_doc" + else + addwrite /var/cache/fonts + fi + + econf \ + --datadir=/etc \ + $(use_with X x) \ + || die "econf failed." + + emake ${myopt} || die "emake failed." +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed." + dodoc Changes README* + if use doc ; then + cd doc + insinto /usr/share/doc/${PF} + doins *.pdf *.dvi + fi +} + +pkg_postinst() { + ewarn + ewarn "You may have to rebuild other packages depending on t1lib." + ewarn "You may use revdep-rebuild (from app-portage/gentoolkit)" + ewarn "to do all necessary tricks." + ewarn +} |