diff options
author | Peter Volkov <pva@gentoo.org> | 2008-05-04 15:11:50 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-05-04 15:11:50 +0000 |
commit | a672073d4cac967cabc7abee4dc0f4f397f8fe5a (patch) | |
tree | 264ebb4cbf2efad5bba84bad321d3ae20ba35502 /media-libs | |
parent | Use mirror://berlios, bug #218657. (diff) | |
download | gentoo-2-a672073d4cac967cabc7abee4dc0f4f397f8fe5a.tar.gz gentoo-2-a672073d4cac967cabc7abee4dc0f4f397f8fe5a.tar.bz2 gentoo-2-a672073d4cac967cabc7abee4dc0f4f397f8fe5a.zip |
Version bump, bug #214010 reported by Craig; fixed installation of docs into /etc, bug #216778 reported by Jens Rutschmann.
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/t1lib/ChangeLog | 11 | ||||
-rw-r--r-- | media-libs/t1lib/files/t1lib-do-not-install-t1lib_doc.patch | 19 | ||||
-rw-r--r-- | media-libs/t1lib/t1lib-5.1.2.ebuild | 72 |
3 files changed, 100 insertions, 2 deletions
diff --git a/media-libs/t1lib/ChangeLog b/media-libs/t1lib/ChangeLog index 925260ed0655..ed312fc66580 100644 --- a/media-libs/t1lib/ChangeLog +++ b/media-libs/t1lib/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-libs/t1lib -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/ChangeLog,v 1.68 2007/12/08 15:18:23 dirtyepic Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/ChangeLog,v 1.69 2008/05/04 15:11:50 pva Exp $ + +*t1lib-5.1.2 (04 May 2008) + + 04 May 2008; Peter Volkov <pva@gentoo.org> + +files/t1lib-do-not-install-t1lib_doc.patch, +t1lib-5.1.2.ebuild: + Version bump, bug #214010 reported by Craig; fixed installation of docs + into /etc, bug #216778 reported by Jens Rutschmann. 08 Dec 2007; Ryan Hill <dirtyepic@gentoo.org> -t1lib-1.3.1.ebuild: Remove old vulnerable version (bug #198053). diff --git a/media-libs/t1lib/files/t1lib-do-not-install-t1lib_doc.patch b/media-libs/t1lib/files/t1lib-do-not-install-t1lib_doc.patch new file mode 100644 index 000000000000..e8dc5585e23a --- /dev/null +++ b/media-libs/t1lib/files/t1lib-do-not-install-t1lib_doc.patch @@ -0,0 +1,19 @@ +--- doc/Makefile.in.orig 2008-05-04 17:55:52.000000000 +0400 ++++ doc/Makefile.in 2008-05-04 17:55:58.000000000 +0400 +@@ -89,16 +89,6 @@ + + + install: dummy +- if (test -f t1lib_doc.ps) \ +- then \ +- $(MKINSTALLDIRS) $(DESTDIR)@T1LIB_DATA_DIR@/doc; \ +- $(INSTALL_DATA) t1lib_doc.ps $(DESTDIR)@T1LIB_DATA_DIR@/doc; \ +- fi; +- if (test -f t1lib_doc.pdf) \ +- then \ +- $(MKINSTALLDIRS) $(DESTDIR)@T1LIB_DATA_DIR@/doc; \ +- $(INSTALL_DATA) t1lib_doc.pdf $(DESTDIR)@T1LIB_DATA_DIR@/doc; \ +- fi; + + + uninstall: dummy diff --git a/media-libs/t1lib/t1lib-5.1.2.ebuild b/media-libs/t1lib/t1lib-5.1.2.ebuild new file mode 100644 index 000000000000..84596d29fec1 --- /dev/null +++ b/media-libs/t1lib/t1lib-5.1.2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/t1lib-5.1.2.ebuild,v 1.1 2008/05/04 15:11:50 pva 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 ~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/latex-base ) + X? ( x11-libs/libXfont + x11-proto/xproto + x11-proto/fontsproto )" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-5.1.1-parallel.patch + epatch "${FILESDIR}"/${PN}-do-not-install-t1lib_doc.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 +} |