# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/evince/evince-0.3.1.ebuild,v 1.5 2005/06/22 14:52:53 dang Exp $ inherit gnome2 eutils DESCRIPTION="Simple document viewer for GNOME" HOMEPAGE="http://www.gnome.org/projects/evince/" LICENSE="GPL-2" IUSE="djvu doc dvi t1lib" # For use.local.desc: # app-text/evince:djvu - Enable DjVu files support # app-text/evince:t1lib - Enable Type1 fonts support in .dvi files SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" RDEPEND=" djvu? ( app-text/djvu ) dvi? ( app-text/tetex ) dvi? ( t1lib? ( >=media-libs/t1lib-5.0.0 ) ) >=app-text/poppler-0.3.2 >=dev-libs/glib-2 >=gnome-base/gnome-vfs-2.0 gnome-base/libgnome >=gnome-base/libgnomeprintui-2.6 >=gnome-base/libgnomeui-2.6 >=x11-libs/gtk+-2.6.1 virtual/x11 " DEPEND="${RDEPEND} app-text/scrollkeeper >=dev-util/pkgconfig-0.12.0 >=dev-util/intltool-0.30" PROVIDE="virtual/pdfviewer virtual/psviewer" G2CONF="${G2CONF} \ $(use_enable djvu) \ $(use_enable dvi) \ $(use_enable t1lib) \ --disable-deprecated" USE_DESTDIR="yes" ELTCONF="--portage" src_unpack(){ unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-t1lib_is_t1.patch epatch ${FILESDIR}/${P}-64bit.patch autoconf || die "autoconf failed" automake || die "automake failed" libtoolize --force || die "libtoolize failed" } src_install() { gnome2_src_install scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ } DOCS="AUTHORS ChangeLog NEWS README"