# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/eclectic/eclectic-0.9.3.ebuild,v 1.3 2005/05/17 16:29:09 ciaranm Exp $ inherit bash-completion DESCRIPTION="Modular -config replacement utility" HOMEPAGE="http://eclectic.berlios.de/" SRC_URI="http://download.berlios.de/eclectic/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" IUSE="doc" RESTRICT="primaryuri" RDEPEND=">=app-shells/bash-3 doc? ( dev-python/docutils )" src_compile() { econf || die "econf failed" emake || die "emake failed" if use doc ; then cd doc ; make html || die "failed to build html" fi } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc README doc/*.txt use doc && dohtml doc/* dobashcompletion misc/eclectic.bashcomp }