diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-11-15 23:32:15 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-11-15 23:32:15 +0000 |
commit | b6da9475f409df3c32fbcf6bf2c5c9da9d9bf0c1 (patch) | |
tree | 729c22c1fd8fe99dfcdc6b0a83aa75ec962f599a /dev-java | |
parent | Fixes #71328. (diff) | |
download | historical-b6da9475f409df3c32fbcf6bf2c5c9da9d9bf0c1.tar.gz historical-b6da9475f409df3c32fbcf6bf2c5c9da9d9bf0c1.tar.bz2 historical-b6da9475f409df3c32fbcf6bf2c5c9da9d9bf0c1.zip |
Fixes #70306. Saleem rocks.
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/swt/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/swt/Manifest | 5 | ||||
-rw-r--r-- | dev-java/swt/files/build-3.1.xml | 17 | ||||
-rw-r--r-- | dev-java/swt/files/digest-swt-3.1 | 1 | ||||
-rw-r--r-- | dev-java/swt/swt-3.1.ebuild | 112 |
5 files changed, 140 insertions, 2 deletions
diff --git a/dev-java/swt/ChangeLog b/dev-java/swt/ChangeLog index c8bf38c79a06..2cceefbafa9e 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.5 2004/10/31 20:07:24 karltk Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/ChangeLog,v 1.6 2004/11/15 23:32:15 karltk Exp $ + +*swt-3.1 (16 Nov 2004) + + 16 Nov 2004; <karltk@gentoo.org> +files/build-3.1.xml, +swt-3.1.ebuild: + New upstream version. Ebuild by Saleem A. <compnerd@compnerd.org>. *swt-3.0-r1 (31 Oct 2004) diff --git a/dev-java/swt/Manifest b/dev-java/swt/Manifest index a88766bab643..b17bc8af66f6 100644 --- a/dev-java/swt/Manifest +++ b/dev-java/swt/Manifest @@ -1,7 +1,10 @@ MD5 d41dc2a84d1d9c0b098868d2e41e7ba0 swt-3.0.ebuild 3076 MD5 9f4047480c5ad0f61d96e0987e97f93b swt-3.0-r1.ebuild 3079 -MD5 a689813e30571e30327f971004e1e41f ChangeLog 808 +MD5 534c77699827329afc557e96384f54d3 ChangeLog 976 MD5 4dcb6dd494f5e369aed5a367e303aef4 metadata.xml 433 +MD5 e03bb1ab21709b6a75c6cdb37401277b swt-3.1.ebuild 3920 MD5 9932fd2bc009c4a3fce8b5cc57214297 files/digest-swt-3.0-r1 67 MD5 bb07a2eb9c04e5f3190e6743705062d7 files/build-3.0.xml 437 +MD5 bb07a2eb9c04e5f3190e6743705062d7 files/build-3.1.xml 437 MD5 9932fd2bc009c4a3fce8b5cc57214297 files/digest-swt-3.0 67 +MD5 6f0351cc3517fc6665af5422acc29a7b files/digest-swt-3.1 69 diff --git a/dev-java/swt/files/build-3.1.xml b/dev-java/swt/files/build-3.1.xml new file mode 100644 index 000000000000..79a86eba692e --- /dev/null +++ b/dev-java/swt/files/build-3.1.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.1 b/dev-java/swt/files/digest-swt-3.1 new file mode 100644 index 000000000000..533ce998aa5e --- /dev/null +++ b/dev-java/swt/files/digest-swt-3.1 @@ -0,0 +1 @@ +MD5 1c50c1c49f29c76a9feb5d7dd9bb476a swt-3.1M2-linux-gtk.zip 2332510 diff --git a/dev-java/swt/swt-3.1.ebuild b/dev-java/swt/swt-3.1.ebuild new file mode 100644 index 000000000000..493582d5d4e3 --- /dev/null +++ b/dev-java/swt/swt-3.1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +inherit eutils java-pkg + +DESCRIPTION="SWT Library" +HOMEPAGE="http://www.eclipse.org/" +SRC_URI="http://download.eclipse.org/downloads/drops/S-3.1M2-200409240800/swt-3.1M2-linux-gtk.zip" +LICENSE="CPL-1.0 LGPL-2.1 MPL-1.1" +KEYWORDS="~x86" +SLOT="3" + +IUSE="gnome mozilla" + +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} + + 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 && cp library/*.cpp ${S} || die "Failed copy *.cpp" + + mkdir src && mv org src/ + cp ${FILESDIR}/build-${PV}.xml ${S}/build.xml || die "Failed to copy 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-dynamic:--export-dynamic:"` + fi + + gtk_libs=`pkg-config --libs gtk+-2.0 | sed -e "s:-Wl,--export-dynamic:--export-dynamic:"` + gtk_lib=`pkg-config --libs gtk+-2.0 gthread-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export-dynamic:--export-dynamic:"` + atk_lib=`pkg-config --libs atk gtk+-2.0 | sed -e "s:-Wl,--export-dynamic:--export-dynamic:"` + + sed -e :a -e '/\\$/N; s/\\\n//; ta' make_linux.mak > makefile.mak + moz_cflags="-O -fno-rtti -fno-exceptions -fPIC -Wall -Wno-non-virtual-dtor -DNO_nsEmbedString_1Equals \ + -DXPCOM_GLUE=1 -DMOZILLA_STRICT_API=1 -DSWT_VERSION=\$(SWT_VERSION) \$(NATIVE_STATS) \ + -include \$(MOZILLA_FIVE_HOME)/include/mozilla-config.h \ + -I./ -I./library \ + -I\$(MOZILLA_FIVE_HOME)/include \ + -I\$(MOZILLA_FIVE_HOME)/include/java \ + -I\$(MOZILLA_FIVE_HOME)/include/nspr -I\$(MOZILLA_FIVE_HOME)/include/nspr/include \ + -I\$(MOZILLA_FIVE_HOME)/include/xpcom -I\$(MOZILLA_FIVE_HOME)/include/xpcom/include \ + -I\$(MOZILLA_FIVE_HOME)/include/string -I\$(MOZILLA_FIVE_HOME)/include/string/include \ + -I\$(MOZILLA_FIVE_HOME)/include/embed_base -I\$(MOZILLA_FIVE_HOME)/include/embed_base/include \ + -I\$(MOZILLA_FIVE_HOME)/include/embedstring -I\$(MOZILLA_FIVE_HOME)/include/embedstring/include" + moz_libs="-shared -Wl,--version-script=mozilla_exports -Bsymbolic -L\$(MOZILLA_FIVE_HOME) -lgtkembedmoz" + + sed -e "s:\`pkg-config --libs gtk+-2.0\`:${gtk_libs}:" \ + -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_libs}:" \ + -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \ + -e "s:-I\$(JAVA_HOME)/include\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \ + -e "s:MOZILLACFLAGS = .*$:MOZILLACFLAGS = ${moz_cflags}:" \ + -e "s:MOZILLALIBS = .*$:MOZILLALIBS = ${moz_libs}:" \ + makefile.mak > Makefile + + export XTEST_LIB_PATH=/usr/X11R6/lib + export AWT_LIB_PATH=$JAVA_HOME/jre/bin + + 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 || die "Failed to create jar" +} + +src_install() { + java-pkg_dojar swt.jar || die "Installation of swt.jar failed" + + java-pkg_sointo /usr/lib + java-pkg_doso *.so || die "Install of .so-files failed" + + dohtml about.html +} + |