blob: 7f7971e54bb6bb61f530a9a8bfe21c5c36bae356 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 2009-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils java-pkg-2
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"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND=">=virtual/jre-1.5"
DEPEND=">=virtual/jdk-1.5
app-arch/unzip"
S=${WORKDIR}/Spark
src_install() {
java-pkg_dojar lib/*.jar
java-pkg_dojar .install4j/*.jar
insinto /usr/share/spark
doins -r resources xtra plugins || die
dobin "${FILESDIR}"/spark.sh || die
unzip -qq lib/spark.jar
doicon "${WORKDIR}"/images/spark-64x64.png
make_desktop_entry spark.sh "Spark IM" spark-64x64 "Network;InstantMessaging"
if use doc; then
dohtml -r documentation/* || die
fi
}
pkg_postinst() {
ewarn "If you have problems with system-tray, read following:"
ewarn "http://www.igniterealtime.org/community/message/168762#168711"
ewarn
ewarn "And then, please, do:"
ewarn "1. replace /usr/share/spark/plugins/jniwrapper.jar with attachment from the post above;"
ewarn "2. remove ~/.Spark/plugins"
ewarn "3. re-start Spark IM"
}
|