# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger # Update: Roman Weber # /space/gentoo/cvsroot/gentoo-x86/media-libs/t1lib/t1lib-1.3.ebuild,v 1.4 2002/04/16 01:14:04 seemant Exp 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="http://www.neuroinformatik.ruhr-uni-bochum.de/ini/PEOPLE/rmz/t1lib/t1lib.html" DEPEND="X? ( virtual/x11 ) tetex? ( >=app-text/tetex-1.0.7 )" src_unpack() { unpack "${P}.tar.gz" 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` ./configure \ --host=${CHOST} \ --prefix=/usr \ --datadir=/etc \ ${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.1.3.1} dosym libt1x.so.1.3.1 /usr/lib/libt1x.so.1 dosym libt1x.so.1.3.1 /usr/lib/libt1x.so ) ln -s -f libt1.lai .libs/libt1.la dolib .libs/libt1.{la,a,so.1.3.1} dosym libt1.so.1.3.1 /usr/lib/libt1.so.1 dosym libt1.so.1.3.1 /usr/lib/libt1.so insinto /etc/t1lib doins t1lib.config cd .. dodoc Changes LGPL LICENSE README* cd doc insinto /usr/share/doc/t1lib-1.3.1/ doins *.pdf *.dvi }