summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@gentoo.org>2005-07-05 04:20:14 +0000
committerSaleem Abdulrasool <compnerd@gentoo.org>2005-07-05 04:20:14 +0000
commit52500f1fa38e4f4220f2c1e42ab73e511c6777bf (patch)
tree6b06a78081bc95cb0000b3c5b5e1f63e49697957 /dev-java/swt
parentKeyworded ~ppc-macos, removed gentoolkit-0.2.1_pre3.ebuild (diff)
downloadhistorical-52500f1fa38e4f4220f2c1e42ab73e511c6777bf.tar.gz
historical-52500f1fa38e4f4220f2c1e42ab73e511c6777bf.tar.bz2
historical-52500f1fa38e4f4220f2c1e42ab73e511c6777bf.zip
Version bump, 3.1 is released!!
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'dev-java/swt')
-rw-r--r--dev-java/swt/ChangeLog7
-rw-r--r--dev-java/swt/Manifest6
-rw-r--r--dev-java/swt/files/SWTMessages.properties5
-rw-r--r--dev-java/swt/files/digest-swt-3.13
-rw-r--r--dev-java/swt/swt-3.1.ebuild172
5 files changed, 189 insertions, 4 deletions
diff --git a/dev-java/swt/ChangeLog b/dev-java/swt/ChangeLog
index 8675fa8fb1fd..a94b01d846a0 100644
--- a/dev-java/swt/ChangeLog
+++ b/dev-java/swt/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/swt
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/ChangeLog,v 1.17 2005/05/26 18:10:12 compnerd Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/ChangeLog,v 1.18 2005/07/05 04:20:14 compnerd Exp $
+
+ 04 Jul 2005; Saleem Abdulrasool <compnerd@gentoo.org>
+ files/SWTMessages.properties, +swt-3.1.ebuild:
+ Version bump; Changing AWT_LIB_PATH handling as IBM JDk is not liking the new
+ setup.
26 May 2005; Saleem Abdulrasool <compnerd@gentoo.org> swt-3.1_pre7.ebuild:
Fixing the extraction for amd64
diff --git a/dev-java/swt/Manifest b/dev-java/swt/Manifest
index e87f477db855..625507525cba 100644
--- a/dev-java/swt/Manifest
+++ b/dev-java/swt/Manifest
@@ -1,10 +1,12 @@
MD5 19a0752ddae4465ec127bb1d568990e8 swt-3.1_pre7.ebuild 4614
MD5 5e58ddd732765aa23433a53dd039326b swt-3.1_pre5-r1.ebuild 5228
-MD5 bc87cb6e4859ad022d43244ecc090ac2 ChangeLog 3294
+MD5 f27fbee4f56e7efe2c16e957bd3aa748 ChangeLog 3489
MD5 4dcb6dd494f5e369aed5a367e303aef4 metadata.xml 433
+MD5 cce82759e4cc28b4fcce9e009a30aca8 swt-3.1.ebuild 5327
MD5 bd191dfc71013927ffb09f1e464399e8 files/digest-swt-3.1_pre5-r1 147
MD5 c964f0ff0b83afdfd76d872821540574 files/build-3.1_pre7.xml 476
-MD5 6f51993c9ea2f4f0f82da84b19184dc7 files/SWTMessages.properties 2037
+MD5 ad4aa305806513ab198281b6e485fbbc files/SWTMessages.properties 2085
MD5 bb61f479853836959ad766e10161e80a files/build.xml 2106
MD5 f33d8fd0bacf2ed4f835b70f6f7836b4 files/cairo.patch 302
+MD5 4d4ba9daee2ceef312b8e18be3ab70ed files/digest-swt-3.1 216
MD5 17063119b227c091134a0a6c6492f5c1 files/digest-swt-3.1_pre7 222
diff --git a/dev-java/swt/files/SWTMessages.properties b/dev-java/swt/files/SWTMessages.properties
index 6286f04dd3cf..d3f061bf0ba2 100644
--- a/dev-java/swt/files/SWTMessages.properties
+++ b/dev-java/swt/files/SWTMessages.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2000, 2004 IBM Corporation and others.
+# Copyright (c) 2000, 2005 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@@ -58,6 +58,9 @@ SWT_Charset_ASCII=ASCII
SWT_InputMethods=Input Methods
SWT_Password=Password:
SWT_Username=User Name:
+SWT_Switch=Switch
+SWT_Press=Press
+SWT_Open=Open
SWT_Close=Close
SWT_Minimize=Minimize
SWT_Maximize=Maximize
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..21e67436fa42
--- /dev/null
+++ b/dev-java/swt/files/digest-swt-3.1
@@ -0,0 +1,3 @@
+MD5 a7d5f5f593e423f9aec7713c548f3817 swt-3.1-gtk-linux-x86.zip 2643472
+MD5 37907f265059d9853911fc9538743280 swt-3.1-gtk-linux-x86_64.zip 2702033
+MD5 6fa2922701a0e360e0035fd0363fcae8 swt-3.1-gtk-linux-ppc.zip 2525054
diff --git a/dev-java/swt/swt-3.1.ebuild b/dev-java/swt/swt-3.1.ebuild
new file mode 100644
index 000000000000..2c5ead4c702a
--- /dev/null
+++ b/dev-java/swt/swt-3.1.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/swt-3.1.ebuild,v 1.7 2005/07/05 04:20:14 compnerd Exp $
+
+inherit eutils java-pkg
+
+MY_DMF="R-3.1-200506271435"
+MY_VERSION="3.1"
+
+DESCRIPTION="GTK based SWT Library"
+HOMEPAGE="http://www.eclipse.org/"
+SRC_URI="x86? ( http://download.eclipse.org/downloads/drops/${MY_DMF}/swt-${MY_VERSION}-gtk-linux-x86.zip )
+ amd64? ( http://download.eclipse.org/downloads/drops/${MY_DMF}/swt-${MY_VERSION}-gtk-linux-x86_64.zip )
+ ppc? ( http://download.eclipse.org/downloads/drops/${MY_DMF}/swt-${MY_VERSION}-gtk-linux-ppc.zip )"
+
+SLOT="3"
+LICENSE="CPL-1.0 LGPL-2.1 MPL-1.1"
+KEYWORDS="~x86 ~amd64 ~ppc"
+
+IUSE="accessibility cairo firefox gnome mozilla"
+DEPEND="${RDEPEND}
+ >=virtual/jdk-1.4
+ dev-java/ant-core
+ app-arch/unzip"
+RDEPEND=">=virtual/jre-1.4
+ mozilla? (
+ firefox? ( >=www-client/mozilla-firefox-1.0.3 )
+ !firefox? ( >=www-client/mozilla-1.4 )
+ )
+ gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* )
+ cairo? ( >=x11-libs/cairo-0.3.0 )"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ if use firefox ; then
+ if ! use mozilla ; then
+ echo
+ ewarn "You must enable the mozilla useflag to build the browser"
+ ewarn "component. The firefox flag is used only to determine"
+ ewarn "what to build against."
+
+ die "Firefox useflag enabled without mozilla support"
+ fi
+ fi
+}
+
+src_unpack() {
+ # Extract based on architecture
+ if [[ ${ARCH} == 'x86_64' ]] ; then
+ unpack swt-${MY_VERSION}-gtk-linux-x86_64.zip || die "Unable to unpack sources"
+ elif [[ ${ARCH} == 'ppc' ]] ; then
+ unpack swt-${MY_VERSION}-gtk-linux-ppc.zip || die "Unable to unpack sources"
+ else
+ unpack swt-${MY_VERSION}-gtk-linux-x86.zip || die "Unable to unpack sources"
+ fi
+
+ # Clean up the directory structure
+ for f in $(ls) ; do
+ if [[ "${f}" != "src.zip" ]] ; then
+ rm -rf ${f}
+ fi
+ done
+
+ # Unpack the sources
+ einfo "Unpacking src.zip to ${S}"
+ unzip src.zip &> /dev/null || die "Unable to extract sources"
+
+ # Cleanup the redirtied directory structure
+ rm -rf about_files/
+ rm -f .classpath .project
+
+ # Replace the build.xml to allow compilation without Eclipse tasks
+ cp ${FILESDIR}/build-${PV}.xml ${S}/build.xml || die "Unable to update build.xml"
+ mkdir ${S}/src && mv ${S}/org ${S}/src || die "Unable to restructure SWT sources"
+}
+
+src_compile() {
+ JAVA_HOME=$(java-config -O)
+
+ # Identify the AWT path
+ if [[ ! -z "$(java-config --java-version | grep 'IBM')" ]] ; then
+ export AWT_LIB_PATH=$JAVA_HOME/jre/bin
+ else
+ if [[ ${ARCH} == 'x86' ]] ; then
+ export AWT_LIB_PATH=$JAVA_HOME/jre/lib/i386
+ elif [[ ${ARCH} == 'ppc' ]] ; then
+ export AWT_LIB_PATH=$JAVA_HOME/jre/lib/ppc
+ else
+ export AWT_LIB_PATH=$JAVA_HOME/jre/lib/amd64
+ fi
+ fi
+
+ # Identity the XTEST library location
+ export XTEST_LIB_PATH=/usr/X11R6/lib
+
+ # Fix the pointer size for AMD64
+ [[ ${ARCH} == 'amd64' ]] && export SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64
+
+ einfo "Building AWT library"
+ emake -f make_linux.mak make_awt || die "Failed to build AWT support"
+
+ einfo "Building SWT library"
+ emake -f make_linux.mak make_swt || die "Failed to build SWT support"
+
+ if use accessibility ; then
+ einfo "Building JAVA-AT-SPI bridge"
+ emake -f make_linux.mak make_atk || die "Failed to build ATK support"
+ fi
+
+ if use gnome ; then
+ einfo "Building GNOME VFS support"
+ emake -f make_linux.mak make_gnome || die "Failed to build GNOME VFS support"
+ fi
+
+ if use mozilla ; then
+ if use firefox ; then
+ GECKO_SDK=/usr/lib/MozillaFirefox
+ else
+ GECKO_SDK=/usr/lib/mozilla
+ fi
+
+ export GECKO_INCLUDES="-include ${GECKO_SDK}/include/mozilla-config.h \
+ -I${GECKO_SDK}/include \
+ -I${GECKO_SDK}/include/java \
+ -I${GECKO_SDK}/include/nspr -I${GECKO_SDK}/include/nspr/include \
+ -I${GECKO_SDK}/include/xpcom -I${GECKO_SDK}/include/xpcom/include \
+ -I${GECKO_SDK}/include/string -I${GECKO_SDK}/include/string/include \
+ -I${GECKO_SDK}/include/embed_base -I${GECKO_SDK}/include/embed_base/include \
+ -I${GECKO_SDK}/include/embedstring -I${GECKO_SDK}/include/embedstring/include"
+ export GECKO_LIBS="-L${GECKO_SDK} -lgtkembedmoz"
+
+ einfo "Building the Mozilla component"
+ emake -f make_linux.mak make_mozilla || die "Failed to build Mozilla support"
+ fi
+
+ if use cairo ; then
+ einfo "Building CAIRO support"
+ emake -f make_linux.mak make_cairo || die "Unable to build CAIRO support"
+ fi
+
+ einfo "Building JNI libraries"
+ ant compile || die "Failed to compile JNI interfaces"
+
+ einfo "Creating missing files"
+ echo "version 3.138" > ${S}/build/version.txt
+ cp ${FILESDIR}/SWTMessages.properties ${S}/build/org/eclipse/swt/internal/
+
+ einfo "Packing JNI libraries"
+ ant jar || die "Failed to create JNI jar"
+}
+
+src_install() {
+ java-pkg_dojar swt.jar || die "Unable to install SWT Java interfaces"
+
+ java-pkg_sointo /usr/lib
+ java-pkg_doso *.so || die "Unable to install SWT libraries"
+
+ dohtml about.html
+}
+
+pkg_postinst() {
+ if [[ $(use_enable cairo) ]] ; then
+ ewarn
+ ewarn "CAIRO Support is experimental! We are not responsible if"
+ ewarn "enabling support for CAIRO corrupts your Gentoo install,"
+ ewarn "if it blows up your computer, or if it becoming sentient"
+ ewarn "and chases you down the street yelling random binary!"
+ ewarn
+ ebeep 5
+ fi
+}