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.
27 lines
765 B
Bash
27 lines
765 B
Bash
#!/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} $@
|