# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $ $ inherit eutils DESCRIPTION="Portable and multi-interface IRC client." HOMEPAGE="http://weechat.flashtux.org/" SRC_URI="http://weechat.flashtux.org/download/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc" IUSE="debug ncurses perl python" DEPEND="sys-libs/ncurses \ perl? ( dev-lang/perl ) \ python? ( dev-lang/python ) \ " src_unpack() { unpack ${A} cd ${S}; epatch ${FILESDIR}/${P}-gentoo.diff } src_compile() { local myconf="" use perl && einfo Configurating with perl support. && \ myconf="${myconf} --enable-perl" use python && einfo Configurating with python support. && \ myconf="${myconf} --enable-python" econf \ $(use_with debug debug 2) \ ${myconf} \ || die "Configure failed" emake || die "Make failed" } src_install() { emake DESTDIR=${D} install || die "Install failed" dodoc AUTHORS BUGS ChangeLog FAQ NEWS README TODO || die "dodoc failed" }