summaryrefslogtreecommitdiffstats
path: root/java/netbeans4
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2003-06-07 19:55:11 +0000
committerolgeni <olgeni@FreeBSD.org>2003-06-07 19:55:11 +0000
commitc492a0d9a77478860a7c1c2310b27a719851a9e8 (patch)
treeea908e16716f1d5ae2e0da355f2be94e7f127d5e /java/netbeans4
parent4c69c7db6c6f7cdb9ba15724f9c9d0a04414cdda (diff)
downloadFreeBSD-ports-c492a0d9a77478860a7c1c2310b27a719851a9e8.zip
FreeBSD-ports-c492a0d9a77478860a7c1c2310b27a719851a9e8.tar.gz
The NetBeans startup script should be patched on -CURRENT only.
The -CURRENT /bin/expr command may get confused when matching regexps against strings that begin with "-", because they are interpreted as command flags. Using "--" as the first flag solves this, but it will in turn confuse -STABLE expr (syntax error), so it looks like there's no common way to do it (that I can think of).
Diffstat (limited to 'java/netbeans4')
-rw-r--r--java/netbeans4/Makefile5
-rw-r--r--java/netbeans4/files/bin_runide.sh.diff (renamed from java/netbeans4/files/patch-bin_runide.sh)2
2 files changed, 6 insertions, 1 deletions
diff --git a/java/netbeans4/Makefile b/java/netbeans4/Makefile
index a943272..0f163fb 100644
--- a/java/netbeans4/Makefile
+++ b/java/netbeans4/Makefile
@@ -30,6 +30,11 @@ DOWNLOAD_URL?= http://www.netbeans.org/download/dev/daily/build200306020100/plat
IGNORE= You must manually fetch the source distribution (${DISTFILES}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
+.if ${OSVERSION} >= 500000
+post-patch:
+ @${CAT} ${FILESDIR}/bin_runide.sh.diff | ${PATCH} ${WRKSRC}/bin/runide.sh
+.endif
+
do-install:
@${MKDIR} ${PREFIX}/netbeans
@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans
diff --git a/java/netbeans4/files/patch-bin_runide.sh b/java/netbeans4/files/bin_runide.sh.diff
index aa73ffb..f7d27f9 100644
--- a/java/netbeans4/files/patch-bin_runide.sh
+++ b/java/netbeans4/files/bin_runide.sh.diff
@@ -1,5 +1,5 @@
-$FreeBSD$
+$FreeBSD: /tmp/pcvs/ports/java/netbeans4/files/Attic/bin_runide.sh.diff,v 1.1 2003-06-07 19:55:11 olgeni Exp $
--- bin/runide.sh.orig Mon Jun 2 11:23:48 2003
+++ bin/runide.sh Mon Jun 2 11:26:50 2003
OpenPOWER on IntegriCloud