# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/centerim/centerim-4.22.0.ebuild,v 1.7 2007/03/21 16:38:52 blubb Exp $ inherit eutils IUSE="nls ssl threads" DESCRIPTION="CenterIM is a fork of CenterICQ - a ncurses ICQ/Yahoo!/AIM/IRC/MSN/Jabber/GaduGadu/RSS/LiveJournal Client" SRC_URI="ftp://ftp.centerim.org/${P}.tar.gz" HOMEPAGE="http://centerim.org" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND="virtual/libc >=sys-libs/ncurses-5.2 >=app-crypt/gpgme-1.1.2 ssl? ( >=dev-libs/openssl-0.9.6g )" RDEPEND="${DEPEND} nls? ( sys-devel/gettext )" src_compile() { local myopts="" use nls >&/dev/null && myopts="${myopts} --enable-locales-fix" || myopts="${myopts} --disable-nls" use ssl >&/dev/null && myopts="${myopts} --with-ssl" use threads >&/dev/null && myopts="${myopts} --enable-threads=posix" econf ${myopts} || die "Configure failed" emake || die "Compilation failed" } src_install () { einstall || die "Installation failed" dodoc ABOUT-NLS AUTHORS ChangeLog COPYING FAQ README THANKS TODO }