Update to Apache licensed Netbeans 10.0
ok rsadowski@
This commit is contained in:
parent
a85eec7d64
commit
77bde72d46
@ -1,24 +1,22 @@
|
||||
# $OpenBSD: Makefile,v 1.33 2018/09/04 12:46:11 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.34 2019/02/22 13:37:56 giovanni Exp $
|
||||
|
||||
COMMENT= NetBeans Java IDE
|
||||
|
||||
V= 8.2
|
||||
DISTNAME= netbeans-${V}
|
||||
V= 10.0
|
||||
DISTNAME= incubating-netbeans-${V}-bin
|
||||
PKGNAME= netbeans-${V}
|
||||
CATEGORIES= devel
|
||||
REVISION= 2
|
||||
|
||||
HOMEPAGE= https://www.netbeans.org/
|
||||
|
||||
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org> \
|
||||
Rafael Sadowski <rsadowski@openbsd.org>
|
||||
|
||||
# CDDL and GPLv2 dual-licensed
|
||||
# See:
|
||||
# https://netbeans.org/about/legal/index.html
|
||||
# Apache 2.0
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
MASTER_SITES= http://download.netbeans.org/netbeans/${V}/final/zip/
|
||||
EXTRACT_SUFX= -201609300101.zip
|
||||
MASTER_SITES= ${MASTER_SITE_APACHE:=incubator/netbeans/incubating-netbeans/incubating-${V}/}
|
||||
EXTRACT_SUFX= .zip
|
||||
|
||||
MODULES= java
|
||||
MODJAVA_VER= 1.8+
|
||||
@ -43,7 +41,6 @@ do-install:
|
||||
-o -name "*.orig" | xargs rm
|
||||
@${SUBST_PROGRAM} ${FILESDIR}/netbeans ${PREFIX}/bin/netbeans
|
||||
@${INSTALL_DATA_DIR} ${NB}/cnd/bin
|
||||
@${INSTALL_SCRIPT} ${WRKDIST}/cnd/bin/dorun.sh ${NB}/cnd/bin/
|
||||
@${INSTALL_DATA_DIR} ${NB}/ide/bin/nativeexecution
|
||||
@${INSTALL_SCRIPT} ${WRKDIST}/ide/bin/nativeexecution/hostinfo.sh \
|
||||
${NB}/ide/bin/nativeexecution/
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (netbeans-8.2-201609300101.zip) = rZiIM0uabB8RONyy7MyM5JIUY+hx5G3vTsxhdTgWCUg=
|
||||
SIZE (netbeans-8.2-201609300101.zip) = 351110790
|
||||
SHA256 (incubating-netbeans-10.0-bin.zip) = 77kXXppPdz13sQcveWJZugtG4R4/QnexxS9ulSY6kkI=
|
||||
SIZE (incubating-netbeans-10.0-bin.zip) = 189738071
|
||||
|
@ -1,11 +1,12 @@
|
||||
$OpenBSD: patch-bin_netbeans,v 1.1 2017/04/12 19:29:48 rsadowski Exp $
|
||||
$OpenBSD: patch-bin_netbeans,v 1.2 2019/02/22 13:37:56 giovanni Exp $
|
||||
|
||||
- remove hidden bash dependency
|
||||
- add OpenBSD mem size calculation
|
||||
|
||||
--- bin/netbeans.orig Fri Sep 30 01:33:04 2016
|
||||
+++ bin/netbeans Fri Nov 25 23:42:31 2016
|
||||
@@ -161,8 +161,12 @@ heap_size () {
|
||||
Index: bin/netbeans
|
||||
--- bin/netbeans.orig
|
||||
+++ bin/netbeans
|
||||
@@ -136,8 +136,12 @@ heap_size () {
|
||||
mem=`/usr/sbin/sysctl hw.memsize | tr -d [:alpha:][:space:].:`
|
||||
mem=`expr $mem / 1048576`
|
||||
;;
|
||||
@ -19,7 +20,7 @@ $OpenBSD: patch-bin_netbeans,v 1.1 2017/04/12 19:29:48 rsadowski Exp $
|
||||
esac
|
||||
if [ -z "$mem" ] ; then
|
||||
mem=640
|
||||
@@ -194,11 +198,6 @@ launchNbexec() {
|
||||
@@ -169,11 +173,6 @@ launchNbexec() {
|
||||
fi
|
||||
done | head -n 1`
|
||||
sh=sh
|
||||
@ -31,11 +32,11 @@ $OpenBSD: patch-bin_netbeans,v 1.1 2017/04/12 19:29:48 rsadowski Exp $
|
||||
if [ "${founduserdir}" = "yes" ]; then
|
||||
exec $sh "$nbexec" "$@"
|
||||
else
|
||||
@@ -230,6 +229,7 @@ case "`uname`" in
|
||||
@@ -204,6 +203,7 @@ case "`uname`" in
|
||||
--jdkhome '"$netbeans_jdkhome"' \
|
||||
--branding nb \
|
||||
--clusters '"$netbeans_clusters"' \
|
||||
+ -J-Dawt.useSystemAAFontSettings=lcd \
|
||||
-J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade \
|
||||
-J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense \
|
||||
${netbeans_default_options} \
|
||||
'"$@"'
|
||||
|
@ -1,16 +0,0 @@
|
||||
$OpenBSD: patch-etc_netbeans_conf,v 1.4 2017/04/12 19:29:48 rsadowski Exp $
|
||||
|
||||
Turn autoupdate off by default. The relevant options are documented here:
|
||||
http://wiki.netbeans.org/FaqPluginManagerCustomization
|
||||
|
||||
--- etc/netbeans.conf.orig Fri Sep 30 01:33:04 2016
|
||||
+++ etc/netbeans.conf Wed Nov 23 21:17:08 2016
|
||||
@@ -43,7 +43,7 @@ netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/8.
|
||||
# Concurrent Mark & Sweep garbage collector.
|
||||
# (see http://wiki.netbeans.org/FaqGCPauses)
|
||||
#
|
||||
-netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"
|
||||
+netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dplugin.manager.check.updates=false -J-Dplugin.manager.check.interval=NEVER"
|
||||
|
||||
# Default location of JDK:
|
||||
# (set by installer or commented out if launcher should decide)
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user