Update to netbeans 6.8, from Daniel Dickman on ports@ a while ago,

who also takes maintainership, with a minor tweak by me (chown
${BINOWN}:${BINGRP} in do-install so that it packages properly when
built as user)
See http://marc.info/?l=openbsd-ports&m=126223375703003&w=2 and
http://marc.info/?l=openbsd-ports&m=126216832521398&w=2 for details.
Also tested by Brandon Mercer and Fred Crowson, with much prodding from
Brandon Mercer.
This commit is contained in:
landry 2010-04-03 11:42:06 +00:00
parent 7af6370187
commit 0bf80f5e3f
14 changed files with 9507 additions and 1546 deletions

View File

@ -1,51 +1,52 @@
# $OpenBSD: Makefile,v 1.11 2009/04/26 09:38:25 sthen Exp $
# $OpenBSD: Makefile,v 1.12 2010/04/03 11:42:06 landry Exp $
SHARED_ONLY= Yes
COMMENT= NetBeans Java IDE
DISTNAME= netbeans-5_5-ide_sources
PKGNAME= netbeans-5.5p5
CATEGORIES= devel
V= 6.8
DISTNAME= netbeans-${V}-200912041610-ml
PKGNAME= netbeans-${V}
CATEGORIES= java devel
HOMEPAGE= http://www.netbeans.org/
MAINTAINER= Ian Darwin <ian@openbsd.org>
MAINTAINER= Daniel Dickman <didickman@gmail.com>
# CDDL
PERMIT_PACKAGE_CDROM= CDDL
# CDDL and GPLv2 dual-licensed
#
# For external components see:
# http://www.netbeans.info/downloads/licence/netbeans-3rd-party.txt
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= CDDL
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://us2-mirror.netbeans.info/download/5_5/mlfcs/200612070100/
MASTER_SITES= http://download.netbeans.org/netbeans/sync/${V}/zip/
EXTRACT_SUFX= .zip
VMEM_WARNING= Yes
MODULES= java
MODJAVA_VER= 1.5+
USE_ZIP= Yes
BUILD_DEPENDS= :apache-ant->=1.7.0:devel/apache-ant
MODJAVA_VER= 1.6+
RUN_DEPENDS= ::java/javaPathHelper
MAKE_ENV= JAVA_HOME=${JAVA_HOME} \
ANT_HOME=${LOCALBASE}/ant
NO_BUILD= Yes
NO_REGRESS= Yes
WRKDIST= ${WRKDIR}/netbeans-src
WRKDIST= ${WRKDIR}/netbeans
do-build:
@cd ${WRKDIST}/nbbuild && exec ${SETENV} ${MAKE_ENV} ant -q \
-Dant.build.javac.source="1.5" -Dant.build.javac.target="1.5"
NB= ${PREFIX}/netbeans
do-install:
@rm -f ${WRKDIST}/nbbuild/netbeans/bin/*.{cmd,exe}
@tar -czf - -C ${WRKDIST}/nbbuild netbeans | tar xzf - -C ${PREFIX}
@sed -e "s+%%NETBEANS_HOME%%+${TRUEPREFIX}/netbeans+g" \
${WRKBUILD}/netbeans.in > ${WRKBUILD}/netbeans.tmp
${INSTALL_SCRIPT} ${WRKBUILD}/netbeans.tmp ${PREFIX}/bin/netbeans
${INSTALL_DATA_DIR} ${NB}
@tar -czf - -C ${WRKDIR}/netbeans . | tar xzf - -C ${NB}
@rm -rf ${NB}/profiler3
@find ${NB} -name "*.dll" -o -name "*.exe" -o -name "*.cmd" \
-o -name "*.bat" -o -name "*.orig" | xargs rm
${SUBST_CMD} -c ${FILESDIR}/netbeans \
${PREFIX}/bin/netbeans
@chmod ${BINMODE} ${PREFIX}/bin/netbeans
@chown ${BINOWN}:${BINGRP} ${PREFIX}/bin/netbeans
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${NB}
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
MD5 (netbeans-5_5-ide_sources.zip) = MVvpwc0+jywEO2mI+1DPzA==
RMD160 (netbeans-5_5-ide_sources.zip) = 2T1KyYwKSgfIcgvXZvTrJ++qCvw=
SHA1 (netbeans-5_5-ide_sources.zip) = X7BFZI9ln0pUMCa9waWmOjrIU7Y=
SHA256 (netbeans-5_5-ide_sources.zip) = tb5JhUqor2IcPnnqfcyBAjiFUuNePB9v01Ve26tufnw=
SIZE (netbeans-5_5-ide_sources.zip) = 161324200
MD5 (netbeans-6.8-200912041610-ml.zip) = RU5QH4BWK+cBWT+9+7tR5w==
RMD160 (netbeans-6.8-200912041610-ml.zip) = oUmAOIylxbgKHtQ/qtttMQjNTUQ=
SHA1 (netbeans-6.8-200912041610-ml.zip) = YVUO1ecHxOxXvGQCPn+g/feyBPw=
SHA256 (netbeans-6.8-200912041610-ml.zip) = WUFBPL43gJ4G8KihEiVbkpB0+qbNto3zd7vxE6s2Kjw=
SIZE (netbeans-6.8-200912041610-ml.zip) = 223543561

View File

@ -0,0 +1,60 @@
NetBeans 6.8 on OpenBSD
=======================
1. Help System
--------------
NetBeans relies on the presence of a firefox binary for access to
the online help system. Firefox is not set up as a runtime dependency
as this dependency is optional.
If you have Firefox 3.5 on your system (but don't have Firefox 3.0)
you may want to set up the following symbolic link:
ln -s /usr/local/bin/firefox35 /usr/local/bin/firefox
You can also customize this setting within the IDE by going to
Tools> Options> General> Web Browser.
2. BindException
----------------
You may get a BindException when you launch NetBeans:
java.net.BindException: Can't assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.netbeans.CLIHandler$Server.<init>(CLIHandler.java:966)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:518)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:343)
at org.netbeans.MainImpl.execute(MainImpl.java:197)
at org.netbeans.MainImpl.main(MainImpl.java:78)
at org.netbeans.Main.main(Main.java:75)
Bug 179113 was filed:
https://netbeans.org/bugzilla/show_bug.cgi?id=179113
This issue should be fixed in the upcoming 6.9 release.
3. Font issues in the output window
-----------------------------------
After hitting the Clean & Build or the Run buttons from
within the IDE, the output window will show square boxes
instead of fonts.
Bug 145696 was filed but marked as WONTFIX by NetBeans developers:
https://netbeans.org/bugzilla/show_bug.cgi?id=145696
4. Native Libraries
-------------------
The profiler3 module is not included in the port. Additionally,
the following modules, although included, contain native code which
will likely not work:
- cnd3
- dlight2
- ruby2

View File

@ -0,0 +1,26 @@
#!/bin/sh
#
# $OpenBSD: netbeans,v 1.1 2010/04/03 11:42:06 landry Exp $
#
# OpenBSD-specific startup script for NetBeans IDE
NETBEANS_HOME=${TRUEPREFIX}/netbeans
#-----------------------------------------------------------------------------
# Determine configuration settings
#-----------------------------------------------------------------------------
JAVA_HOME=`javaPathHelper -h netbeans`
if [ -z "${JAVA_HOME}" ]; then
exit 1
fi
# Check if 'netbeans' executable can be found
if [ ! -x "${NETBEANS_HOME}/bin/netbeans" ]; then
echo "Error: NETBEANS_HOME is not defined correctly: ${NETBEANS_HOME}"
echo " Unable to find launcher binary"
exit 1
fi
PATH=${JAVA_HOME}/bin:$PATH exec "${NETBEANS_HOME}/bin/netbeans" --jdkhome ${JAVA_HOME} $@

View File

@ -1,32 +0,0 @@
$OpenBSD: patch-core_swing_tabcontrol_beanstubs_org_openide_util_Utilities_java,v 1.1 2008/03/16 13:26:55 kurt Exp $
--- core/swing/tabcontrol/beanstubs/org/openide/util/Utilities.java.orig Tue Feb 26 07:30:30 2008
+++ core/swing/tabcontrol/beanstubs/org/openide/util/Utilities.java Tue Feb 26 07:40:32 2008
@@ -95,11 +95,14 @@ public final class Utilities {
* @since 4.50
*/
public static final int OS_FREEBSD = OS_OTHER << 1;
+ /** Operating system is OpenBSD
+ */
+ public static final int OS_OPENBSD = OS_FREEBSD << 1;
/** A mask for Windows platforms. */
public static final int OS_WINDOWS_MASK = OS_WINNT | OS_WIN95 | OS_WIN98 | OS_WIN2000 | OS_WIN_OTHER;
/** A mask for Unix platforms. */
- public static final int OS_UNIX_MASK = OS_SOLARIS | OS_LINUX | OS_HP | OS_AIX | OS_IRIX | OS_SUNOS | OS_TRU64 | OS_MAC | OS_FREEBSD;
+ public static final int OS_UNIX_MASK = OS_SOLARIS | OS_LINUX | OS_HP | OS_AIX | OS_IRIX | OS_SUNOS | OS_TRU64 | OS_MAC | OS_FREEBSD | OS_OPENBSD;
/** A height of the windows's taskbar */
public static final int TYPICAL_WINDOWS_TASKBAR_HEIGHT = 27;
@@ -148,9 +151,10 @@ public final class Utilities {
operatingSystem = OS_MAC;
else if (osName.startsWith ("Darwin")) // NOI18N
operatingSystem = OS_MAC;
- else if (osName.toLowerCase (Locale.US).startsWith ("freebsd")) { // NOI18N
+ else if (osName.toLowerCase (Locale.US).startsWith ("freebsd")) // NOI18N
operatingSystem = OS_FREEBSD;
- }
+ else if ("OpenBSD".equals (osName)) // NOI18N
+ operatingSystem = OS_OPENBSD;
else
operatingSystem = OS_OTHER;
}

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-nbbuild_templates_common_xml,v 1.1.1.1 2007/01/12 16:30:04 ian Exp $
--- nbbuild/templates/common.xml.orig Mon Jan 8 20:35:51 2007
+++ nbbuild/templates/common.xml Mon Jan 8 20:36:08 2007
@@ -85,7 +85,7 @@ Microsystems, Inc. All Rights Reserved.
<target name="compile" depends="init">
<mkdir dir="${build.classes.dir}"/>
- <javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
+ <javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false" fork="true">
<classpath refid="cp"/>
<compilerarg line="${javac.compilerargs}"/>
</javac>

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-nbbuild_templates_projectized_xml,v 1.1 2008/10/22 16:04:30 kurt Exp $
--- nbbuild/templates/projectized.xml.orig Fri Sep 26 19:23:03 2008
+++ nbbuild/templates/projectized.xml Fri Sep 26 19:35:38 2008
@@ -98,7 +98,7 @@ Microsystems, Inc. All Rights Reserved.
</condition>
<property name="tmp.java.home" value="${java.home}"/>
- <javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
+ <javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false" fork="true">
<bootclasspath>
<fileset dir="${tmp.java.home}/lib">
<include name="*.jar"/>

View File

@ -1,30 +0,0 @@
$OpenBSD: patch-netbeans_in,v 1.1.1.1 2007/01/12 16:30:04 ian Exp $
--- netbeans.in.orig Mon Jan 8 16:01:29 2007
+++ netbeans.in Mon Jan 8 16:09:23 2007
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# $OpenBSD: patch-netbeans_in,v 1.1.1.1 2007/01/12 16:30:04 ian Exp $
+#
+# OpenBSD-specific startup script for NetBeans IDE
+
+NETBEANS_HOME=%%NETBEANS_HOME%%
+
+#-----------------------------------------------------------------------------
+# Determine configuration settings
+#-----------------------------------------------------------------------------
+
+JAVA_HOME=`javaPathHelper -h netbeans`
+
+if [ -z "${JAVA_HOME}" ]; then
+ exit 1
+fi
+
+# Check if 'netbeans' executable can be found
+if [ ! -x "${NETBEANS_HOME}/bin/netbeans" ]; then
+ echo "Error: NETBEANS_HOME is not defined correctly: ${NETBEANS_HOME}"
+ echo " Unable to find launcher binary"
+ exit 1
+fi
+
+PATH=${JAVA_HOME}/bin:$PATH exec "${NETBEANS_HOME}/bin/netbeans" --jdkhome ${JAVA_HOME} $@

View File

@ -1,30 +0,0 @@
$OpenBSD: patch-openide_util_src_org_openide_util_Utilities_java,v 1.1 2008/03/16 13:26:55 kurt Exp $
--- openide/util/src/org/openide/util/Utilities.java.orig Tue Feb 26 07:37:16 2008
+++ openide/util/src/org/openide/util/Utilities.java Tue Feb 26 07:39:58 2008
@@ -143,12 +143,16 @@ public final class Utilities {
*/
public static final int OS_FREEBSD = OS_OTHER << 1;
+ /** Operating system is OpenBSD
+ */
+ public static final int OS_OPENBSD = OS_FREEBSD << 1;
+
/** A mask for Windows platforms. */
public static final int OS_WINDOWS_MASK = OS_WINNT | OS_WIN95 | OS_WIN98 | OS_WIN2000 | OS_WIN_OTHER;
/** A mask for Unix platforms. */
public static final int OS_UNIX_MASK = OS_SOLARIS | OS_LINUX | OS_HP | OS_AIX | OS_IRIX | OS_SUNOS | OS_TRU64 |
- OS_MAC | OS_FREEBSD;
+ OS_MAC | OS_FREEBSD | OS_OPENBSD;
/** A height of the windows's taskbar */
public static final int TYPICAL_WINDOWS_TASKBAR_HEIGHT = 27;
@@ -298,6 +302,8 @@ public final class Utilities {
operatingSystem = OS_MAC;
} else if (osName.toLowerCase(Locale.US).startsWith("freebsd")) { // NOI18N
operatingSystem = OS_FREEBSD;
+ } else if ("OpenBSD".equals(osName)) { // NOI18N
+ operatingSystem = OS_OPENBSD;
} else {
operatingSystem = OS_OTHER;
}

View File

@ -1,29 +0,0 @@
$OpenBSD: patch-openide_util_test_unit_src_org_openide_util_UtilitiesTest_java,v 1.1 2008/03/16 13:26:55 kurt Exp $
--- openide/util/test/unit/src/org/openide/util/UtilitiesTest.java.orig Tue Feb 26 07:40:43 2008
+++ openide/util/test/unit/src/org/openide/util/UtilitiesTest.java Tue Feb 26 07:44:39 2008
@@ -77,6 +77,12 @@ public class UtilitiesTest extends TestCase {
assertEquals ("FreeBSD recognized as OS_FREEBSD", Utilities.OS_FREEBSD, Utilities.getOperatingSystem ());
}
+ public void testGetOperatingSystemOpenbsd () {
+ System.setProperty ("os.name", "OpenBSD");
+ assertEquals ("System.getProperty (os.name) returns OpenBSD", "OpenBSD", System.getProperty ("os.name"));
+ assertEquals ("OpenBSD recognized as OS_OPENBSD", Utilities.OS_OPENBSD, Utilities.getOperatingSystem ());
+ }
+
public void testGetUnknownOperatingSystem () {
System.setProperty ("os.name", "Unknown");
assertEquals ("Windows NT recognized as Unknown", Utilities.OS_OTHER, Utilities.getOperatingSystem ());
@@ -98,6 +104,12 @@ public class UtilitiesTest extends TestCase {
System.setProperty ("os.name", "freebsd");
assertFalse ("freebsd is not isWindows", Utilities.isWindows ());
assertTrue ("freebsd isUnix", Utilities.isUnix ());
+ }
+
+ public void testWhatIsOpenBSD () {
+ System.setProperty ("os.name", "OpenBSD");
+ assertFalse ("OpenBSD not isWindows", Utilities.isWindows ());
+ assertTrue ("OpenBSD isUnix", Utilities.isUnix ());
}
// XXX sorry, but NoCustomCursorToolkit does not compile on Mustang:

View File

@ -1,16 +1,16 @@
$OpenBSD: patch-core_launcher_unix_nbexec,v 1.1.1.1 2007/01/12 16:30:04 ian Exp $
--- core/launcher/unix/nbexec.orig Mon Jan 8 19:32:04 2007
+++ core/launcher/unix/nbexec Mon Jan 8 19:33:05 2007
@@ -277,18 +277,18 @@ detect_gnome_proxy () {
$OpenBSD: patch-platform11_lib_nbexec,v 1.1 2010/04/03 11:42:06 landry Exp $
--- platform11/lib/nbexec.orig Tue Dec 29 15:24:00 2009
+++ platform11/lib/nbexec Tue Dec 29 15:24:36 2009
@@ -383,18 +383,18 @@ detect_gnome_proxy () {
detect_kde_proxy () {
kioslaverc="${HOME}/.kde/share/config/kioslaverc"
if [ -f $kioslaverc ] ; then
- if /bin/grep -q 'ProxyType=1' "$kioslaverc" ; then
- http_proxy=`/bin/grep 'httpProxy=http://' "$kioslaverc"`
- http_proxy_tmp=`/bin/grep 'httpProxy=http://' "$kioslaverc"`
+ if /usr/bin/grep -q 'ProxyType=1' "$kioslaverc" ; then
+ http_proxy=`/usr/bin/grep 'httpProxy=http://' "$kioslaverc"`
+ http_proxy_tmp=`/usr/bin/grep 'httpProxy=http://' "$kioslaverc"`
if [ $? ] ; then
http_proxy=`echo $http_proxy | /bin/sed 's/httpProxy=http:\/\///'`
http_proxy_tmp=`echo $http_proxy_tmp | /bin/sed 's/httpProxy=http:\/\///'`
return 0
fi
- http_non_proxy_hosts=`/bin/grep 'NoProxyFor=' "$kioslaverc"`
@ -21,6 +21,6 @@ $OpenBSD: patch-core_launcher_unix_nbexec,v 1.1.1.1 2007/01/12 16:30:04 ian Exp
else
- if /bin/grep -q 'ProxyType=0' "$kioslaverc" ; then
+ if /usr/bin/grep -q 'ProxyType=0' "$kioslaverc" ; then
http_proxy="DIRECT"
return 0
fi
detect_system_proxy
if [ -z "$http_proxy_tmp" ]; then
http_proxy_tmp="DIRECT"

View File

@ -1,14 +1,6 @@
NetBeans is Sun's official Java IDE.
"NetBeans IDE includes comprehensive support for developing IDE
plug-in modules and rich client applications based on the NetBeans
platform. It also includes the intuitive GUI builder Matisse,
redesigned CVS support, support for Sun Application Server 8.2,
Weblogic9 and JBoss 4, and many editor enhancements including new
refactorings. NetBeans IDE is a robust, open source Java IDE
that has everything software developers need to develop cross-platform
desktop, web and mobile applications straight out of the box. ..."
NetBeans is modular, and many add-ons can be downloaded from
netbeans.org. NetBeans is also used as the platform for many of
Sun's commercial development environments.
The NetBeans IDE is a multi-platform, integrated development
environment consisting of an open-source IDE and an application
platform that enable developers to create web, enterprise, desktop,
and mobile applications using the Java platform, as well as JavaFX,
PHP, JavaScript and Ajax, Ruby and Ruby on Rails, Groovy and Grails,
and C/C++.

View File

@ -0,0 +1,2 @@
Please see ${PREFIX}/netbeans/README.OpenBSD for information about
running NetBeans on OpenBSD.

File diff suppressed because it is too large Load Diff