summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2004-12-20 16:23:59 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2004-12-20 16:23:59 +0000
commit893dc081df48161777aedecc80756d2963c834ee (patch)
tree989f2192bb30267b0eaaf54159180a0be2ab8cb1 /dev-java/swt
parenthppa/ia64 stable #73592 (Manifest recommit) (diff)
downloadgentoo-2-893dc081df48161777aedecc80756d2963c834ee.tar.gz
gentoo-2-893dc081df48161777aedecc80756d2963c834ee.tar.bz2
gentoo-2-893dc081df48161777aedecc80756d2963c834ee.zip
Updated SLOT
Diffstat (limited to 'dev-java/swt')
-rw-r--r--dev-java/swt/ChangeLog7
-rw-r--r--dev-java/swt/files/digest-swt-3.0-r21
-rw-r--r--dev-java/swt/swt-3.0-r2.ebuild96
3 files changed, 103 insertions, 1 deletions
diff --git a/dev-java/swt/ChangeLog b/dev-java/swt/ChangeLog
index a77576c33cc7..143cca244751 100644
--- a/dev-java/swt/ChangeLog
+++ b/dev-java/swt/ChangeLog
@@ -1,6 +1,11 @@
# 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.7 2004/11/20 11:49:17 sejo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/ChangeLog,v 1.8 2004/12/20 16:23:59 karltk Exp $
+
+*swt-3.0-r2 (20 Dec 2004)
+
+ 20 Dec 2004; <karltk@gentoo.org> +swt-3.0-r2.ebuild:
+ SLOT=3 instead of SLOT=0, to be future-compatible.
20 Nov 2004; <SeJo@gentoo.org> swt-3.1.ebuild:
changed the use mozilla && cp library/*.cpp to if use mozilla; then blabla
diff --git a/dev-java/swt/files/digest-swt-3.0-r2 b/dev-java/swt/files/digest-swt-3.0-r2
new file mode 100644
index 000000000000..cedefab664d8
--- /dev/null
+++ b/dev-java/swt/files/digest-swt-3.0-r2
@@ -0,0 +1 @@
+MD5 f2ebcfdb917bdd380dc1a3fb33da5936 swt-3.0-linux-gtk.zip 2228684
diff --git a/dev-java/swt/swt-3.0-r2.ebuild b/dev-java/swt/swt-3.0-r2.ebuild
new file mode 100644
index 000000000000..873840e75af3
--- /dev/null
+++ b/dev-java/swt/swt-3.0-r2.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-r2.ebuild,v 1.1 2004/12/20 16:23:59 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="3"
+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
+}