1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Update netbeans to version 8.0

Release notes: https://netbeans.org/community/releases/80/relnotes.html
  New and noteworthy: http://wiki.netbeans.org/NewAndNoteworthyNB80
- IGNORE netbeans-devel
This commit is contained in:
Pietro Cerutti 2014-04-11 08:07:34 +00:00
parent f027d4ff58
commit 30cf4a8a62
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350897
6 changed files with 341 additions and 420 deletions

View File

@ -24,7 +24,7 @@ PREFIXDIR= ${PREFIX}/netbeans-${PORTVERSION}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
#IGNORE= No development version available right now. Please use java/netbeans instead.
IGNORE= No development version available right now. Please use java/netbeans instead.
post-patch:
@${REINPLACE_CMD} -e '57s|#||;57s|/path/to/jdk|${JAVA_HOME}|' \

View File

@ -2,17 +2,17 @@
# $FreeBSD$
PORTNAME= netbeans
PORTVERSION= 7.4
PORTVERSION= 8.0
CATEGORIES= java devel
MASTER_SITES= http://download.netbeans.org/netbeans/${PORTVERSION}/final/zip/ \
http://dlc.sun.com.edgesuite.net/netbeans/${PORTVERSION}/final/zip/
DISTNAME= netbeans-${PORTVERSION}-201310111528
DISTNAME= netbeans-${PORTVERSION}-201403101706
MAINTAINER= gahr@FreeBSD.org
COMMENT= A full-featured integrated environment for Java
COMMENT= Modular, standards-based integrated development environment
LICENSE= CDDL GPLv2
LICENSE_COMB= multi
LICENSE_COMB= dual
USES= zip
USE_JAVA= yes
@ -34,8 +34,6 @@ DESKTOP_ENTRIES="NetBeans" \
post-patch:
@${REINPLACE_CMD} -i "" -e '57s|#||;57s|/path/to/jdk|${JAVA_HOME}|' \
${WRKSRC}/etc/netbeans.conf
@${REINPLACE_CMD} -i "" -e 's|%%GREP%%|${GREP}|g' \
${WRKSRC}/platform/lib/nbexec
@${FIND} ${WRKSRC} -name "*.orig" -delete
do-install:
@ -44,6 +42,6 @@ do-install:
${LN} -sf ${DATADIR}/bin/netbeans ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${PORTVERSION}
post-install:
@${CHMOD} ${BINMODE} ${STAGEDIR}${DATADIR}/java/maven/bin/mvn
${FIND} ${STAGEDIR}${DATADIR} -type f -ipath "*/bin/*" | ${XARGS} ${CHMOD} ${BINMODE}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (netbeans-7.4-201310111528.zip) = bd9a7d1faab7c6a45c1b8d2e5ad11453c2ac767d2176836e65a5c7a62d7c365b
SIZE (netbeans-7.4-201310111528.zip) = 302752292
SHA256 (netbeans-8.0-201403101706.zip) = 0d063507f48292f4033a238783fb318a6df58485a7be86206a45a97ce12de97b
SIZE (netbeans-8.0-201403101706.zip) = 314477441

View File

@ -1,13 +1,22 @@
--- bin/netbeans.orig 2013-10-11 15:56:12.000000000 +0200
+++ bin/netbeans 2013-10-30 09:25:19.000000000 +0100
--- bin/netbeans.orig 2014-03-10 17:32:04.000000000 +0100
+++ bin/netbeans 2014-04-11 09:48:06.000000000 +0200
@@ -152,7 +152,7 @@
heap_size () {
mem=640
case "`uname`" in
- Linux*)
+ Linux*)
mem=`cat /proc/meminfo | grep MemTotal | tr -d [:space:][:alpha:]:`
mem=`expr $mem / 1024`
;;
@@ -163,6 +163,10 @@
mem=`/usr/sbin/sysctl hw.memsize | tr -d [:alpha:][:space:].:`
mem=`expr $mem / 1048576`
;;
+ FreeBSD*)
+ mem=`/sbin/sysctl -n hw.realmem`
+ mem=`expr $mem / 1048576`
+ ;;
+ mem=`/sbin/sysctl -n hw.realmem`
+ mem=`expr $mem / 1048576`
+ ;;
*)
;;
esac

View File

@ -1,20 +0,0 @@
--- platform/lib/nbexec.orig 2013-10-30 09:45:15.000000000 +0100
+++ platform/lib/nbexec 2013-10-30 09:45:20.000000000 +0100
@@ -213,7 +213,7 @@
# if the Java option for heap dump on OOME is supported enable it
if "${jdkhome}/bin/java" -XX:+HeapDumpOnOutOfMemoryError -cp "${progdir}/boot.jar" org.netbeans.NbExecJavaStartTry > /dev/null 2>&1 ; then
jargs="$jargs -XX:+HeapDumpOnOutOfMemoryError"
- if [ -z "`echo $jargs | grep -- "-XX:HeapDumpPath="`" ] ; then
+ if [ -z "`echo $jargs | %%GREP%% -- "-XX:HeapDumpPath="`" ] ; then
jargs="$jargs -XX:HeapDumpPath=\"${userdir}/var/log/heapdump.hprof\""
fi
# rename old heap dump to .old
@@ -244,7 +244,7 @@
if [ "`echo "${dir}"/*.$ex`" != "${dir}/*.$ex" ] ; then
for x in "${dir}"/*.$ex ; do
subx=`basename "$x"`
- if [ -z "`echo "$paths" | egrep "$subpath$subx"`" ] ; then
+ if [ -z "`echo "$paths" | %%GREP%% "$subpath$subx"`" ] ; then
if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
cp="$cp$x"
if [ ! -z "$paths" ] ; then paths="$paths:" ; fi

File diff suppressed because it is too large Load Diff