diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-10-31 20:07:24 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-10-31 20:07:24 +0000 |
commit | d3a57185ea1b446f6984bd2e97a899751747617f (patch) | |
tree | c4accc85e83ff487cedc5c77a14d7e6e4ad21acd /dev-java/swt | |
parent | No bug reports on this, stable on sparc mips x86 (Manifest recommit) (diff) | |
download | gentoo-2-d3a57185ea1b446f6984bd2e97a899751747617f.tar.gz gentoo-2-d3a57185ea1b446f6984bd2e97a899751747617f.tar.bz2 gentoo-2-d3a57185ea1b446f6984bd2e97a899751747617f.zip |
Builds with 1.5, doesn't require mozilla anymore, installs .so files in a sensible place.
Diffstat (limited to 'dev-java/swt')
-rw-r--r-- | dev-java/swt/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/swt/files/digest-swt-3.0-r1 | 1 | ||||
-rw-r--r-- | dev-java/swt/swt-3.0-r1.ebuild | 96 | ||||
-rw-r--r-- | dev-java/swt/swt-3.0.ebuild | 16 |
4 files changed, 117 insertions, 4 deletions
diff --git a/dev-java/swt/ChangeLog b/dev-java/swt/ChangeLog index 260614686dcd..c8bf38c79a06 100644 --- a/dev-java/swt/ChangeLog +++ b/dev-java/swt/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/swt # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/ChangeLog,v 1.4 2004/10/22 10:22:36 absinthe Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/ChangeLog,v 1.5 2004/10/31 20:07:24 karltk Exp $ + +*swt-3.0-r1 (31 Oct 2004) + + 31 Oct 2004; Karl Trygve Kalleberg <karltk@gentoo.org> swt-3.0-r1.ebuild: + Now install *.so in /usr/lib. Can be built without mozilla in USE. + Works with 1.5. 22 Oct 2004; Dylan Carlson <absinthe@gentoo.org> swt-3.0.ebuild: Keywords ~amd64. diff --git a/dev-java/swt/files/digest-swt-3.0-r1 b/dev-java/swt/files/digest-swt-3.0-r1 new file mode 100644 index 000000000000..cedefab664d8 --- /dev/null +++ b/dev-java/swt/files/digest-swt-3.0-r1 @@ -0,0 +1 @@ +MD5 f2ebcfdb917bdd380dc1a3fb33da5936 swt-3.0-linux-gtk.zip 2228684 diff --git a/dev-java/swt/swt-3.0-r1.ebuild b/dev-java/swt/swt-3.0-r1.ebuild new file mode 100644 index 000000000000..4c9bdeafc2b4 --- /dev/null +++ b/dev-java/swt/swt-3.0-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/swt-3.0-r1.ebuild,v 1.1 2004/10/31 20:07:24 karltk Exp $ + +inherit eutils java-pkg + +IUSE="gnome mozilla" +DESCRIPTION="SWT library" +HOMEPAGE="http://www.eclipse.org/" +SRC_URI="http://download.eclipse.org/downloads/drops/R-3.0-200406251208/swt-3.0-linux-gtk.zip" +LICENSE="CPL-1.0 LGPL-2.1 MPL-1.1" +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64" + +RDEPEND=">=x11-libs/gtk+-2.2.4 + mozilla? ( >=net-www/mozilla-1.5 ) + gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* )" +DEPEND="${RDEPEND} + >=virtual/jdk-1.4 + dev-java/ant + app-arch/unzip" + +src_unpack() { + mkdir ${S} && cd ${S} + unpack ${A} + + # remove some files + rm -f *.so *.jar + use mozilla || rm -f swt-mozillasrc.zip + + for i in *.zip + do + einfo "Unpacking ${i} to ${S}" + unzip ${i} &> /dev/null + done + use mozilla && mv library/xpcom.cpp ${S} + + mkdir src && mv org src/ + cp ${FILESDIR}/build-${PV}.xml ${S}/build.xml + + sed 's/<javac /<javac target="1.2" source="1.3" /' -i ${S}/build.xml + + use mozilla || + ( + rm -rf ${S}/src/org/eclipse/swt/browser + rm -rf ${S}/src/org/eclipse/swt/internal/mozilla + ) +} + +src_compile() { + if use gnome ; then + gnome_lib=`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"` + fi + + gtk_lib=`pkg-config --libs gtk+-2.0 gthread-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"` + atk_lib=`pkg-config --libs atk gtk+-2.0 | sed -e "s:-Wl,--export:--export:"` + + sed -e "s:/bluebird/teamswt/swt-builddir/IBMJava2-141:$JAVA_HOME:" \ + -e "s:/bluebird/teamswt/swt-builddir/jdk1.5.0:$JAVA_HOME:" \ + -e "s:/mozilla/mozilla/1.6/linux_gtk2/mozilla/dist:$MOZILLA_FIVE_HOME:" \ + -e "s:/usr/lib/mozilla-1.6:$MOZILLA_FIVE_HOME:" \ + -e "s:\`pkg-config --libs gtk+-2.0 gthread-2.0\`:${gtk_lib}:" \ + -e "s:\`pkg-config --libs atk gtk+-2.0\`:${atk_lib}:" \ + -e "s:\`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0\`:${gnome_lib}:" \ + -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \ + -e "s:-I\$(JAVA_HOME)\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \ + -e "s:-L\$(MOZILLA_HOME)/lib -lembed_base_s:-L\$(MOZILLA_HOME) -lgtkembedmoz:" \ + -e "s:MOZILLACFLAGS = -O:MOZILLACFLAGS = -O -fPIC:" \ + -e "s:\$(JAVA_HOME)/jre/bin:\$(JAVA_HOME)/jre/lib/i386:" \ + make_gtk.mak > Makefile + + make make_swt || die "Failed to build platform-independent SWT support" + make make_atk || die "Failed to build atk support" + + if use gnome ; then + einfo "Building GNOME VFS support" + make make_gnome || die "Failed to build GNOME VFS support" + fi + + if use mozilla ; then + einfo "Building Mozilla component" + make make_mozilla || die "Failed to build Mozilla support" + fi + + einfo "Building java source" + ant jar +} + +src_install() { + java-pkg_dojar swt.jar || die "Installation of swt.jar failed" + + exeinto /usr/lib + doexe *.so ${D}/usr/lib || die "Install of .so-files failed" + + dohtml about.html +} diff --git a/dev-java/swt/swt-3.0.ebuild b/dev-java/swt/swt-3.0.ebuild index c830b4c857c3..fd086c18f1f9 100644 --- a/dev-java/swt/swt-3.0.ebuild +++ b/dev-java/swt/swt-3.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/swt-3.0.ebuild,v 1.3 2004/10/22 10:22:36 absinthe Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/swt-3.0.ebuild,v 1.4 2004/10/31 20:07:24 karltk Exp $ inherit eutils java-pkg @@ -37,6 +37,14 @@ src_unpack() { mkdir src && mv org src/ cp ${FILESDIR}/build-${PV}.xml ${S}/build.xml + + sed 's/<javac /<javac target="1.2" source="1.3" /' -i ${S}/build.xml + + use mozilla || + ( + rm -rf ${S}/src/org/eclipse/swt/browser + rm -rf ${S}/src/org/eclipse/swt/internal/mozilla + ) } src_compile() { @@ -79,8 +87,10 @@ src_compile() { } src_install() { - java-pkg_dojar swt.jar || die "install failed." - install *.so ${D}/usr/share/${PN}/lib/ || die "install failed" + java-pkg_dojar swt.jar || die "Installation of swt.jar failed" + + exeinto /usr/lib + doexe *.so ${D}/usr/lib || die "Install of .so-files failed" dohtml about.html } |