# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit eutils java-pkg DESCRIPTION="Eclipse JFace Libraries" HOMEPAGE="http://www.eclipse.org/" SRC_URI="http://misc.ajiaojr.org/gentoo/jface-${PV}.tar.bz2" LICENSE="CPL-1.0 LGPL-2.1 MPL-1.1" KEYWORDS="x86" SLOT="3" IUSE="gnome mozilla" RDEPEND=">=dev-java/swt-3* =dev-java/eclipse-osgi-3.0.1 =dev-java/eclipse-runtime-3.0.1" DEPEND="${RDEPEND} >=virtual/jdk-1.4 dev-java/ant" src_unpack() { unpack ${A} } src_compile() { echo "swt.jar = `java-config -p swt-3`" >> classpath.properties echo "osgi.libs = `java-config -p eclipse-osgi-3`" >> classpath.properties echo "runtime.libs = `java-config -p eclipse-runtime-3`" >> classpath.properties ant || die "Failed to create jar" } src_install() { cd dist for i in *.jar ; do java-pkg_dojar ${i} || die "Installation of ${i} failed" done }