1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

Update netbeans to 10.0.

This is the second release of Apache Netbeans (incubating).

The first release (9.0) was skipped because it only included java support.
This version should support most if not all of the project types the older
netbeans 8.2 did.

PR:		230420
This commit is contained in:
Koop Mast 2018-12-31 15:18:58 +00:00
parent ad884521f7
commit ca13b006a9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=488794
5 changed files with 310 additions and 5286 deletions

View File

@ -2,54 +2,53 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= netbeans PORTNAME= netbeans
PORTVERSION= 8.2 DISTVERSION= 10.0
CATEGORIES= java devel CATEGORIES= java devel
MASTER_SITES= http://download.netbeans.org/netbeans/${PORTVERSION}/final/zip/ \ MASTER_SITES= APACHE/incubator/netbeans/incubating-netbeans/incubating-${PORTVERSION}/
http://dlc.sun.com.edgesuite.net/netbeans/${PORTVERSION}/final/zip/ DISTNAME= incubating-netbeans-${DISTVERSION}-bin
DISTNAME= netbeans-${PORTVERSION}-201609300101
MAINTAINER= kwm@FreeBSD.org MAINTAINER= kwm@FreeBSD.org
COMMENT= Modular, standards-based integrated development environment (unstable version) COMMENT= Modular, standards-based integrated development environment
LICENSE= CDDL GPLv2 LICENSE= APACHE20
LICENSE_COMB= dual LICENSE_FILE= ${WRKSRC}/LICENSE
USES= shebangfix zip USES= shebangfix zip
USE_JAVA= yes
JAVA_VERSION= 1.8+
NO_BUILD= yes
SHEBANG_FILES= extide/ant/bin/antRun.pl \ SHEBANG_FILES= extide/ant/bin/antRun.pl \
extide/ant/bin/complete-ant-cmd.pl \ extide/ant/bin/complete-ant-cmd.pl \
extide/ant/bin/runant.pl \ extide/ant/bin/runant.pl \
extide/ant/bin/runant.py extide/ant/bin/runant.py
perl_OLD_CMD= /usr/bin/perl perl_OLD_CMD= /usr/bin/perl
perl_CMD= ${LOCALBASE}/bin/perl perl_CMD= ${LOCALBASE}/bin/perl
python_OLD_CMD= /usr/bin/python python_OLD_CMD= /usr/bin/python
python_CMD= ${LOCALBASE}/bin/python2.7 python_CMD= ${LOCALBASE}/bin/python2.7
USE_JAVA= yes
JAVA_VERSION= 1.8
NO_BUILD= yes
WRKSRC= ${WRKDIR}/netbeans WRKSRC= ${WRKDIR}/netbeans
DATADIR= ${PREFIX}/${PORTNAME}-${PORTVERSION} DATADIR= ${PREFIX}/${PORTNAME}-${PORTVERSION}
PLIST_SUB+= PORTVERSION=${PORTVERSION} PLIST_SUB+= PORTVERSION=${PORTVERSION}
DESKTOP_ENTRIES="NetBeans" \ DESKTOP_ENTRIES="Apache NetBeans" \
"NetBeans IDE" \ "Apache NetBeans IDE (incubating)" \
${DATADIR}/nb/netbeans.png \ ${DATADIR}/nb/netbeans.png \
${PORTNAME}-${PORTVERSION} \ ${PORTNAME}-${PORTVERSION} \
"Development;" \ "Development;" \
false false
post-patch: post-patch:
@${REINPLACE_CMD} -i "" -e '57s|#||;57s|/path/to/jdk|${JAVA_HOME}|' \ @${REINPLACE_CMD} -i '' -e '80s|#||;80s|/path/to/jdk|${JAVA_HOME}|' \
${WRKSRC}/etc/netbeans.conf ${WRKSRC}/etc/netbeans.conf
@${FIND} ${WRKSRC} -name "*.orig" -delete @${FIND} ${WRKSRC} -name "*.orig" -delete
do-install: do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR} cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}
${CHMOD} ${BINMODE} ${STAGEDIR}${DATADIR}/bin/netbeans cd ${STAGEDIR}${PREFIX} && ${LN} -sf ${DATADIR}/bin/netbeans bin/${PORTNAME}-${PORTVERSION}
${LN} -sf ${DATADIR}/bin/netbeans ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${PORTVERSION} ${RM} -rf ${STAGEDIR}${DATADIR}/profiler/lib/deployed/jdk16/linux-arm*
${FIND} ${STAGEDIR}${DATADIR} -type f -ipath "*/bin/*" | ${XARGS} ${CHMOD} ${BINMODE}
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1503582610 TIMESTAMP = 1545827013
SHA256 (netbeans-8.2-201609300101.zip) = ad9888334b9a6c1f1138dcb2eccc8ce4921463e871e46def4ecc617538160948 SHA256 (incubating-netbeans-10.0-bin.zip) = efb9175e9a4f773d77b1072f796259ba0b46e11e3f4277b1c52f6e95263a9242
SIZE (netbeans-8.2-201609300101.zip) = 351110790 SIZE (incubating-netbeans-10.0-bin.zip) = 189738071

View File

@ -1,22 +1,23 @@
--- bin/netbeans.orig 2014-03-10 17:32:04.000000000 +0100 --- bin/netbeans.orig 2018-12-17 03:32:36 UTC
+++ bin/netbeans 2014-04-11 09:48:06.000000000 +0200 +++ bin/netbeans
@@ -152,7 +152,7 @@ @@ -136,7 +136,11 @@ heap_size () {
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=`/usr/sbin/sysctl hw.memsize | tr -d [:alpha:][:space:].:`
mem=`expr $mem / 1048576` mem=`expr $mem / 1048576`
;; ;;
- *)
+ FreeBSD*) + FreeBSD*)
+ mem=`/sbin/sysctl -n hw.realmem` + mem=`/sbin/sysctl -n hw.realmem`
+ mem=`expr $mem / 1048576` + mem=`expr $mem / 1048576`
+ ;; + ;;
*) + *)
;; ;;
esac esac
if [ -z "$mem" ] ; then
@@ -204,6 +208,7 @@ case "`uname`" in
--jdkhome '"$netbeans_jdkhome"' \
--branding nb \
--clusters '"$netbeans_clusters"' \
+ -J-Dawt.useSystemAAFontSettings=on \
-J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade \
${netbeans_default_options} \
'"$@"'

View File

@ -1,7 +1,9 @@
Apache NetBeans
The NetBeans IDE is a world-class development environment written The NetBeans IDE is a world-class development environment written
in Java. It can be used to develop code in Java, HTML, XML, JSP, in Java. It can be used to develop code in Java, HTML, XML, JSP,
C/C++ and other languages. The IDE is modular, and there is a huge C/C++ and other languages. The IDE is modular, and there is a huge
variety of commercial and free extensions to it to support various variety of commercial and free extensions to it to support various
technologies. technologies.
WWW: http://www.netbeans.org/ WWW: https://netbeans.apache.org/

File diff suppressed because it is too large Load Diff