1 # Copyright 2009-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils java-pkg-2
7 DESCRIPTION="Spark is an Open Source, cross-platform IM client optimized for businesses and organizations"
8 HOMEPAGE="http://www.igniterealtime.org/projects/spark/"
9 SRC_URI="http://www.igniterealtime.org/builds/spark/${PN//-/_}_${PV//./_}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
16 RDEPEND=">=virtual/jre-1.5"
17 DEPEND=">=virtual/jdk-1.5
23 java-pkg_dojar lib/*.jar
24 java-pkg_dojar .install4j/*.jar
26 insinto /usr/share/spark
27 doins -r resources xtra plugins || die
29 dobin "${FILESDIR}"/spark.sh || die
30 unzip -qq lib/spark.jar
31 doicon "${WORKDIR}"/images/spark-64x64.png
32 make_desktop_entry spark.sh "Spark IM" spark-64x64 "Network;InstantMessaging"
35 dohtml -r documentation/* || die
40 ewarn "If you have problems with system-tray, read following:"
41 ewarn "http://www.igniterealtime.org/community/message/168762#168711"
43 ewarn "And then, please, do:"
44 ewarn "1. replace /usr/share/spark/plugins/jniwrapper.jar with attachment from the post above;"
45 ewarn "2. remove ~/.Spark/plugins"
46 ewarn "3. re-start Spark IM"