blob: 1ad98f7052791dd0af79555ba449c5a1c30a051a (
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
70
71
72
73
74
75
76
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# 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.3 2004/05/13 18:28:21 aliz Exp $
inherit kde java-pkg
IUSE="jikes"
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"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~sparc ~amd64"
DEPEND="=kde-base/kdelibs-3*
dev-java/java-config
>=virtual/jdk-1.3
jikes? ( >=dev-java/jikes-1.15 )
sys-apps/sed"
RDEPEND="=kde-base/kdelibs-3*
>=virtual/jre-1.3"
need-kde 3
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
sed -i -e 's:^JDK_PATH = .*$:JDK_PATH = `java-config --jdk-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"
cd ${S} ; 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
}
src_install() {
dodoc README TODO
cd ${S}/java/classes.gentoo
java-pkg_dojar systray4j.jar
cd ${S}/kde
dolib.so libsystray4j.so
}
pkg_postinst() {
einfo "To test out this java class, run:"
einfo "$ java snoozesoft.systray4j.test.Controller"
einfo "Don't forget to put it in your CLASSPATH:"
einfo "java-config --add-system-classpath=${PN}"
}
|