summaryrefslogtreecommitdiff
path: root/java/eclipse-cdt/scripts/pre-patch
diff options
context:
space:
mode:
Diffstat (limited to 'java/eclipse-cdt/scripts/pre-patch')
-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