blob: 2de6b73b5279eaeda28c787f17ad46433a87aa00 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/systray4j/systray4j-2.4.ebuild,v 1.12 2005/07/15 14:45:21 axxo Exp $
inherit kde java-pkg eutils
DESCRIPTION="Library and daemon to give java applications access to the KDE tray"
HOMEPAGE="http://systray.sourceforge.net/"
SRC_URI="mirror://sourceforge/systray/${P}-kde3-src.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~sparc amd64 ppc ppc64"
IUSE="jikes"
RDEPEND=">=virtual/jre-1.3
=kde-base/kdelibs-3*"
DEPEND=">=virtual/jdk-1.3
${RDEPEND}
=kde-base/kdelibs-3*
jikes? ( >=dev-java/jikes-1.15 )
sys-apps/sed"
need-kde 3
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd ${S}
sed -i -e 's:^JDK_PATH = .*$:JDK_PATH = $(JAVA_HOME):g' \
-e 's:^QT3_PATH = .*$:QT3_PATH = $(QTDIR):g' \
-e 's:^KDE3_PATH = .*$:KDE3_PATH = $(KDEDIR):g' \
-e 's:-L/opt/kde3/lib:-L$(KDEDIR)/lib -L$(QTDIR)/lib:g' \
${S}/kde/Makefile || die "Could not edit Makefile"
epatch ${FILESDIR}/${P}-fPIC.patch
}
src_compile() {
cd ${S}/kde
emake || die "Failure compiling KDE daemon."
mkdir ${S}/java/classes.gentoo
cd ${S}/java/sources
if use jikes; then
for source in $(find . -name *.java); do
jikes -d ${S}/java/classes.gentoo ${source}
done
else
for source in $(find . -name *.java); do
javac -d ${S}/java/classes.gentoo ${source}
done
fi
cd ${S}/java/classes.gentoo
jar cvf systray4j.jar snoozesoft || die "failed to build jar"
}
src_install() {
dodoc README TODO
java-pkg_dojar ${S}/java/classes.gentoo/systray4j.jar
cd ${S}/kde
dolib.so libsystray4j.so
}
|