# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Spark is an Open Source, cross-platform IM client optimized for businesses and organizations" HOMEPAGE="http://www.igniterealtime.org/projects/spark/" SRC_URI="http://www.igniterealtime.org/builds/spark/${PN//-/_}_${PV//./_}.tar.gz" RESTRICT="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc" RDEPEND=">=virtual/jre-1.5" DEPEND=">=virtual/jdk-1.5" src_unpack() { unpack ${PN//-/_}_${PV//./_}.tar.gz mv ${WORKDIR}/Spark ${S} cd ${S} } src_install() { dodir /opt/spark insinto /opt/spark doins * dodir /opt/spark/.install4j insinto /opt/spark/.install4j doins .install4j/* dodir /opt/spark/jre insinto /optC/spark/jre doins -r jre/* dodir /opt/spark/logs keepdir /opt/spark/logs dodir /opt/spark/lib insinto /opt/spark/lib doins -r lib/* dodir /opt/spark/plugins insinto /opt/spark/plugins doins plugins/* dodir /opt/spark/resources insinto /opt/spark/resources doins -r resources/* dodir /opt/spark/xtra insinto /opt/spark/xtra doins -r xtra/* if use doc; then dohtml -r documentation/* fi } pkg_postinst() { chmod 555 /opt/spark/Spark chmod 555 /opt/spark/starter ln -s /opt/spark/Spark /usr/local/bin/spark }