aboutsummaryrefslogtreecommitdiffstats
path: root/java/eclipse-cdt/scripts
diff options
context:
space:
mode:
authorgirgen <girgen@FreeBSD.org>2006-11-07 19:04:47 +0800
committergirgen <girgen@FreeBSD.org>2006-11-07 19:04:47 +0800
commit3adcd97a4912d2218b3af67aa00fda692bd00374 (patch)
tree6cd00e4c8fa837afdc5d8a1a7f9c91d5e72672b7 /java/eclipse-cdt/scripts
parent177200ddbd013f98f177a1c7c75db577a14191d6 (diff)
downloadfreebsd-ports-gnome-3adcd97a4912d2218b3af67aa00fda692bd00374.tar.gz
freebsd-ports-gnome-3adcd97a4912d2218b3af67aa00fda692bd00374.tar.zst
freebsd-ports-gnome-3adcd97a4912d2218b3af67aa00fda692bd00374.zip
Update to 3.1.1, which is compatibale with Eclipse 3.2.1
Diffstat (limited to 'java/eclipse-cdt/scripts')
-rw-r--r--java/eclipse-cdt/scripts/pre-patch32
1 files changed, 24 insertions, 8 deletions
diff --git a/java/eclipse-cdt/scripts/pre-patch b/java/eclipse-cdt/scripts/pre-patch
index 70042434e547..3a5e9550f38f 100644
--- a/java/eclipse-cdt/scripts/pre-patch
+++ b/java/eclipse-cdt/scripts/pre-patch
@@ -1,5 +1,5 @@
-#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/java/eclipse-cdt/scripts/pre-patch,v 1.2 2006-06-14 16:03:54 glewis Exp $
+#!/bin/sh -x
+# $FreeBSD: /tmp/pcvs/ports/java/eclipse-cdt/scripts/pre-patch,v 1.3 2006-11-07 11:04:47 girgen Exp $
copy_dir()
{
@@ -30,14 +30,30 @@ prepare_files()
find ${WRKSRC} -type d -name linux | xargs rm -r
}
+unpack_jars()
+{
+ for src in ${JAR_UNPACK_LIST}
+ do
+ cd ${WRKSRC} &&
+ mkdir ${src} &&
+ ${UNZIP_CMD} -q ${src}.jar -d ${src}
+ done
+}
+
COPY_LIST="
-eclipse/plugins/org.eclipse.cdt.core.linux.x86_3.0.2
-eclipse/plugins/org.eclipse.cdt.core.linux.x86_3.0.2/os/linux
-eclipse/plugins/org.eclipse.cdt.core.linux.x86_3.0.2/os/linux/x86
-eclipse/plugins/org.eclipse.cdt.core.linux_3.0.2
-eclipse/plugins/org.eclipse.cdt.source.linux.gtk.x86_3.0.2
-eclipse/plugins/org.eclipse.cdt.source.linux.gtk.x86_3.0.2/src/org.eclipse.cdt.core.linux_3.0.2
+eclipse/plugins/org.eclipse.cdt.core.linux.x86_${PORTVERSION_TS}
+eclipse/plugins/org.eclipse.cdt.core.linux.x86_${PORTVERSION_TS}/os/linux
+eclipse/plugins/org.eclipse.cdt.core.linux.x86_${PORTVERSION_TS}/os/linux/x86
+eclipse/plugins/org.eclipse.cdt.core.linux_${PORTVERSION_TS}
+eclipse/plugins/org.eclipse.cdt.source.linux.gtk.x86_${PORTVERSION_TS}
+eclipse/plugins/org.eclipse.cdt.source.linux.gtk.x86_${PORTVERSION_TS}/src/org.eclipse.cdt.core.linux_${PORTVERSION_TS}
"
+JAR_UNPACK_LIST="
+eclipse/plugins/org.eclipse.cdt.managedbuilder.gnu.ui_${PORTVERSION_TS}
+eclipse/plugins/org.eclipse.cdt.core_${PORTVERSION_TS}"
+
prepare_files
+unpack_jars
+
exit 0