diff options
author | Mamoru Komachi <usata@gentoo.org> | 2003-08-09 07:04:45 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2003-08-09 07:04:45 +0000 |
commit | 6a189670f6a2dbef9c6812bb6b14b1a7c2ffdd13 (patch) | |
tree | 39170897590f6647a2d959c85f955118edd33bb6 /media-libs/t1lib/t1lib-5.0.0-r2.ebuild | |
parent | fixed doc location, added doc IUSE flag. closes #26226 (diff) | |
download | gentoo-2-6a189670f6a2dbef9c6812bb6b14b1a7c2ffdd13.tar.gz gentoo-2-6a189670f6a2dbef9c6812bb6b14b1a7c2ffdd13.tar.bz2 gentoo-2-6a189670f6a2dbef9c6812bb6b14b1a7c2ffdd13.zip |
fixed doc location, added doc IUSE flag. closes #26226
Diffstat (limited to 'media-libs/t1lib/t1lib-5.0.0-r2.ebuild')
-rw-r--r-- | media-libs/t1lib/t1lib-5.0.0-r2.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/media-libs/t1lib/t1lib-5.0.0-r2.ebuild b/media-libs/t1lib/t1lib-5.0.0-r2.ebuild new file mode 100644 index 000000000000..44162ec949f4 --- /dev/null +++ b/media-libs/t1lib/t1lib-5.0.0-r2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/t1lib-5.0.0-r2.ebuild,v 1.1 2003/08/09 07:04:35 usata Exp $ + +inherit gnuconfig + +IUSE="X tetex doc" + +S=${WORKDIR}/${P} +DESCRIPTION="A Type 1 Rasterizer Library for UNIX/X11" +SRC_URI="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/${P}.tar.gz" +HOMEPAGE="ftp://metalab.unc.edu/pub/Linux/libs/graphics" + +DEPEND="X? ( virtual/x11 ) + tetex? ( virtual/tetex )" + +SLOT="0" +LICENSE="LGPL-2 GPL-2" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64" + +src_unpack() { + unpack ${A} + use amd64 && gnuconfig_update + + cd ${S}/doc + mv Makefile.in Makefile.in-orig + sed -e "s:dvips:#dvips:" Makefile.in-orig>Makefile.in + +} + +src_compile() { + + local myconf + local myopt + + use X \ + && myconf="--with-x" \ + || myconf="--without-x" + + use tetex \ + || myopt="without_doc" + echo `pwd` + econf ${myconf} || die + make ${myopt} || die +} + +src_install() { + + cd lib + insinto /usr/include + doins t1lib.h + + use X && ( \ + doins t1libx.h + ln -s -f libt1x.lai .libs/libt1x.la + dolib .libs/libt1x.{la,a,so.${PV}} + dosym libt1x.so.${PV} /usr/lib/libt1x.so.${PV%%.*} + dosym libt1x.so.${PV} /usr/lib/libt1x.so + ) + + ln -s -f libt1.lai .libs/libt1.la + dolib .libs/libt1.{la,a,so.${PV}} + dosym libt1.so.${PV} /usr/lib/libt1.so.${PV%%.*} + dosym libt1.so.${PV} /usr/lib/libt1.so + insinto /etc/t1lib + doins t1lib.config + + cd .. + dodoc Changes LGPL LICENSE README* + if [ `use doc` ] ; then + cd doc + insinto /usr/share/doc/${PF} + doins *.pdf *.dvi + fi +} + +pkg_postinst () { + + ewarn + ewarn "You must rebuild other packages depending on t1lib." + ewarn "You may use revdep-rebuild (from app-admin/gentoolkit)" + ewarn "to do all necessary tricks." + ewarn +} |