summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2004-07-31 23:21:23 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2004-07-31 23:21:23 +0000
commit56f271690ae32ba0aac194c01d67568dfef7cdb4 (patch)
treedcd3361f4f704f23570e2683425628b656491f7e /dev-java/swt
parentMarked amd64 as stable. Added to ~sparc. (diff)
downloadhistorical-56f271690ae32ba0aac194c01d67568dfef7cdb4.tar.gz
historical-56f271690ae32ba0aac194c01d67568dfef7cdb4.tar.bz2
historical-56f271690ae32ba0aac194c01d67568dfef7cdb4.zip
Initial import. Fixes #58155.
Diffstat (limited to 'dev-java/swt')
-rw-r--r--dev-java/swt/ChangeLog8
-rw-r--r--dev-java/swt/Manifest5
-rw-r--r--dev-java/swt/files/build-3.0.xml17
-rw-r--r--dev-java/swt/files/digest-swt-3.01
-rw-r--r--dev-java/swt/metadata.xml11
-rw-r--r--dev-java/swt/swt-3.0.ebuild86
6 files changed, 128 insertions, 0 deletions
diff --git a/dev-java/swt/ChangeLog b/dev-java/swt/ChangeLog
new file mode 100644
index 000000000000..cf70bf59e340
--- /dev/null
+++ b/dev-java/swt/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for dev-java/ant
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/ChangeLog,v 1.1 2004/07/31 23:21:23 karltk Exp $
+
+*swt-3.0 (01 Aug 2004)
+
+ 01 Aug 2004; Karl Trygve Kalleberg <karltk@gentoo.org> swt-3.0.ebuild:
+ Initial import. Ebuild submitted by Ming Zhao <zhaoming@tsinghua.org.cn>.
diff --git a/dev-java/swt/Manifest b/dev-java/swt/Manifest
new file mode 100644
index 000000000000..2a488a47322d
--- /dev/null
+++ b/dev-java/swt/Manifest
@@ -0,0 +1,5 @@
+MD5 8137c8f6024ed4f81820fc6e881844e7 swt-3.0.ebuild 2843
+MD5 8c3dafb3202b816794f5a8d07ba9e96f ChangeLog 370
+MD5 4dcb6dd494f5e369aed5a367e303aef4 metadata.xml 433
+MD5 bb07a2eb9c04e5f3190e6743705062d7 files/build-3.0.xml 437
+MD5 9932fd2bc009c4a3fce8b5cc57214297 files/digest-swt-3.0 67
diff --git a/dev-java/swt/files/build-3.0.xml b/dev-java/swt/files/build-3.0.xml
new file mode 100644
index 000000000000..79a86eba692e
--- /dev/null
+++ b/dev-java/swt/files/build-3.0.xml
@@ -0,0 +1,17 @@
+<project name="SWT" default="jar" basedir=".">
+ <property name="src" location="src"/>
+ <property name="bin" location="class"/>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${bin}"/>
+ </target>
+
+ <target name="compile" depends="init" description="compile the source">
+ <javac srcdir="${src}" destdir="${bin}" />
+ </target>
+
+ <target name="jar" depends="compile">
+ <jar destfile="swt.jar" basedir="${bin}" />
+ </target>
+</project>
diff --git a/dev-java/swt/files/digest-swt-3.0 b/dev-java/swt/files/digest-swt-3.0
new file mode 100644
index 000000000000..cedefab664d8
--- /dev/null
+++ b/dev-java/swt/files/digest-swt-3.0
@@ -0,0 +1 @@
+MD5 f2ebcfdb917bdd380dc1a3fb33da5936 swt-3.0-linux-gtk.zip 2228684
diff --git a/dev-java/swt/metadata.xml b/dev-java/swt/metadata.xml
new file mode 100644
index 000000000000..7d4816e9e620
--- /dev/null
+++ b/dev-java/swt/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+
+<longdescription>
+SWT is the software component that delivers native widget functionality for the
+Eclipse platform in an operating system independent manner. It is analogous to
+AWT/Swing in Java with a difference - SWT uses a rich set of native widgets.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-java/swt/swt-3.0.ebuild b/dev-java/swt/swt-3.0.ebuild
new file mode 100644
index 000000000000..47e3b7db9140
--- /dev/null
+++ b/dev-java/swt/swt-3.0.ebuild
@@ -0,0 +1,86 @@
+# 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.1 2004/07/31 23:21:23 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"
+
+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
+}
+
+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 "install failed."
+ install *.so ${D}/usr/share/${PN}/lib/ || die "install failed"
+
+ dohtml about.html
+}