# 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 }