# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils # Notice: # At the moment it's not possible compile CenterIM without ssl and crypt (=gpgme) disabled. # So the USE flags are disabled and CenterIM will be build "--with-ssl" enabled... # We will add these USE flags later again... IUSE="bidi gadu nls ssl crypt icq jabber aim msn yahoo irc rss lj" #IUSE="aim bidi gadu icq irc jabber lj msn nls rss yahoo" MY_PV=${PV/0.1_p/} 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" SRC_URI="http://cim.sbisinger.net/tars/${PN}-${MY_PV}.tar.gz" HOMEPAGE="http://centerim.org" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" DEPEND="virtual/libc >=sys-libs/ncurses-5.2 bidi? ( dev-libs/fribidi ) jabber? ( crypt? ( >=app-crypt/gpgme-1.0.2 ) ) ssl? ( >=dev-libs/openssl-0.9.6g ) msn? ( net-misc/curl )" DEPEND="virtual/libc >=sys-libs/ncurses-5.2 >=app-crypt/gpgme-1.0.2 >=dev-libs/openssl-0.9.6g bidi? ( dev-libs/fribidi ) msn? ( net-misc/curl )" RDEPEND="${DEPEND} nls? ( sys-devel/gettext )" # release version for developer snapshots, useful for setting ${S} MY_REL=4.22.0 S=${WORKDIR}/${PN}-${MY_REL} src_compile() { cd ${S} if useq msn && ! useq ssl; then eerror "" eerror "USE flag problem" eerror "================" eerror "'msn' USE flag detected, but 'ssl' USE flag missing:" eerror "MSN support needs libcurl with SSL support." eerror "" die "Please either activate the 'ssl' USE flag or deactivate the 'msn' USE flag for net-im/centerim" fi econf $(use_with ssl) \ $(use_enable aim) \ $(use_with bidi fribidi) \ $(use_enable gadu gg) \ $(use_enable icq) \ $(use_enable irc) \ $(use_enable jabber) \ $(use_enable lj) \ $(use_enable msn) \ $(use_enable nls locales-fix) \ $(use_enable nls nls) \ $(use_enable rss) \ $(use_enable yahoo) || die "econf failed" emake || die "Compilation failed" } src_install () { cd ${S} einstall || die "Installation failed" dodoc ABOUT-NLS AUTHORS ChangeLog COPYING FAQ README THANKS TODO }