# Copyright 1999-2009 soul9.org # Distributed under the terms of the WTFPL inherit cmake-utils git DESCRIPTION="A new xmpp transport based on libpurple" HOMEPAGE="http://spectrum.im" EGIT_PROJECT="spectrum" EGIT_REPO_URI="git://github.com/hanzz/${EGIT_PROJECT}.git" EGIT_TREE="master" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86 " IUSE="python" RDEPEND="dev-libs/poco >=net-im/pidgin-2.6.0 >=net-libs/gloox-1.0 python? ( dev-lang/python dev-python/twisted dev-python/twisted-words )" DEPEND="${RDEPEND} sys-devel/gettext" src_install () { cmake-utils_src_install if use python; then dobin "${WORKDIR}/${P}/tools/spectrumctl/spectrumctl" || die fi #install init scripts and configs insinto /etc/spectrum for protocol in msn yahoo facebook icq myspace gg aim simple irc; do sed -e 's,SPECTRUMGEN2PROTOCOL,'${protocol}',g' "${FILESDIR}/spectrum.cfg" > "${WORKDIR}/spectrum-${protocol}.cfg" || die doins "${WORKDIR}/spectrum-${protocol}.cfg" || die sed -e 's,SPECTRUMGEN2PROTOCOL,'${protocol}',g' "${FILESDIR}/spectrum.init" > "${WORKDIR}/spectrum-${protocol}" || die doinitd "${WORKDIR}/spectrum-${protocol}" || die done }