# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" ESVN_REPO_URI="http://toxygen.net/svn/ekg/trunk" inherit autotools eutils subversion DESCRIPTION="EKG (Eksperymentalny Klient Gadu-Gadu) - a text client for Polish instant messaging system Gadu-Gadu" HOMEPAGE="http://ekg.chmurka.net/" SLOT="0" LICENSE="GPL-2" KEYWORDS="" IUSE="gif gsm gtk jpeg ncurses python readline spell ssl zlib" RDEPEND=">=net-libs/libgadu-9999 gif? ( media-libs/giflib ) gsm? ( media-sound/gsm ) gtk? ( >=x11-libs/gtk+:2 ) jpeg? ( media-libs/jpeg ) ncurses? ( sys-libs/ncurses ) python? ( dev-lang/python ) readline? ( sys-libs/readline ) spell? ( >=app-text/aspell-0.50.3 ) ssl? ( dev-libs/openssl ) zlib? ( sys-libs/zlib )" DEPEND="${RDEPEND}" src_prepare() { epatch "${FILESDIR}/"ekg-1.8_rc1-gtkutil-button-decl.patch epatch "${FILESDIR}/"ekg-1.8_rc1-as-needed.patch eaclocal -I m4 eautoreconf } src_configure() { local myconf="--enable-ioctld --without-bind" if use ncurses; then myconf="${myconf} --enable-force-ncurses" else myconf="${myconf} --disable-ui-ncurses" fi use readline && myconf="${myconf} --enable-ui-readline" econf ${myconf} \ $(use_with gif libungif)\ $(use_enable gtk ui-gtk)\ $(use_with jpeg libjpeg)\ $(use_with python)\ $(use_enable readline ui-readline)\ $(use_enable spell aspell)\ $(use_with ssl openssl)\ $(use_enable wap wap)\ $(use_with zlib) } src_install() { emake DESTDIR="${D}" install || die "install failed" dodoc docs/{*.txt,ULOTKA,TODO,README,FAQ} || die "dodoc failed" }