# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Dan Armak # $Header: /var/cvsroot/gentoo-x86/kde-base/kdegraphics/kdegraphics-2.2.1-r2.ebuild,v 1.2 2001/11/14 06:02:49 achim Exp $ . /usr/portage/eclass/inherit.eclass || die inherit kde-dist || die DESCRIPTION="${DESCRIPTION}Graphics" DEPEND="$DEPEND sys-devel/perl media-gfx/sane-backends tex? ( >=app-text/tetex-1.0.7 ) gphoto2? ( =media-gfx/gphoto-2.0_beta1 >=media-libs/libgpio-20010607 )" RDEPEND="$RDEPEND gphoto2? ( =media-gfx/gphoto-2.0_beta1 >=media-libs/libgpio-20010607 )" src_unpack() { base_src_unpack all patch cd ${S} } src_compile() { kde_src_compile myconf use gphoto2 && myconf="$myconf --with-gphoto2-includes=/usr/include/gphoto2 --with-gphoto2-libraries=/usr/lib/gphoto2" || myconf="$myconf --without-kamera" use tex && myconf="$myconf --with-system-kpathsea --with-tex-datadir=/usr/share" kde_src_compile configure make }