# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A graphical frontend to the F-Prot Antivirus(TM) for Linux" HOMEPAGE="http://web.tiscali.it/sharp/xfprot/" SRC_URI="http://web.tiscali.it/sharp/xfprot/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="debug gtk2" DEPEND="gtk2? ( >=x11-libs/gtk+-2 >=dev-libs/glib-2 ) !gtk2? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2* )" RDEPEND="${DEPEND} >=app-antivirus/f-prot-4.6.0-r2" src_compile() { local myconf use gtk2 && myconf="--with-gtk2" || myconf="--with-gtk1" # not using econf because script does not like --prefix=/usr ./configure \ --autodetect \ --with-install-dir="${D}/usr/share" \ --with-lang=en_GB \ $(use_with debug) \ ${myconf} \ || die emake || die } src_install(){ make DESTDIR="${D}" install || die }