# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="The GNU Image-Finding Tool" HOMEPAGE="http://www.gnu.org/software/gift/" SRC_URI="ftp://ftp.gnu.org/gnu/gift/${P}+3epsilon.tar.gz" LICENSE="LGPL-2.1" IUSE="" KEYWORDS="~x86" DEPEND=" media-gfx/imagemagick dev-perl/XML-DOM dev-perl/XML-XQL dev-perl/Text-Iconv " SLOT="0" S="${S}+3epsilon" GIFT_USER="gift" GIFT_HOME="/home/${GIFT_USER}/" GIFT_INIT="gnu-gift" src_compile() { epatch ${FILESDIR}/${PN}-0.1.9-gcc3.patch epatch ${FILESDIR}/${PN}-0.1.9-noDoc.patch epatch ${FILESDIR}/${PN}-0.1.9-gentoo.patch ./bootstrap-cvs.sh econf --enable-multithreading \ --enable-bayesian \ --datadir=/usr/share/${PN} \ --includedir=/usr/include/${PN} || die emake || die } src_install() { emake DESTDIR=${D} install || die dodoc README NEWS AUTHORS insinto /etc/conf.d newins ${FILESDIR}/${PN}.confd ${GIFT_INIT} exeinto /etc/init.d newexe ${FILESDIR}/${PN}.initd ${GIFT_INIT} enewuser ${GIFT_USER} -1 /bin/bash ${GIFT_HOME} users }