# Copyright 1999-2007 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/*_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/${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 ) ssl? ( >=dev-libs/openssl-0.9.6g ) jabber? ( crypt? ( >=app-crypt/gpgme-1.0.2 ) ) msn? ( net-misc/curl dev-libs/openssl )" RDEPEND="${DEPEND} nls? ( sys-devel/gettext )" # release version for developer snapshots, useful for setting ${S} MY_REL=4.22.0 S=${WORKDIR}/${PN}-${PV/_p*/} 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 if useq msn && ! built_with_use net-misc/curl ssl; then eerror "" eerror " USE Flag issues" eerror "===================" eerror "As of right now, the msn use flags requires curl to be built" eerror "with SSL support. Make sure ssl is in your USE flags and" eerror "re-emerge net-misc/curl" eerror "" die "net-misc/curl dependencie issue" 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 }