SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
42
devel/netbeans/files/netbeans
Normal file
42
devel/netbeans/files/netbeans
Normal file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# OpenBSD-specific startup script for NetBeans IDE
|
||||
|
||||
NETBEANS_HOME=${TRUEPREFIX}/netbeans
|
||||
|
||||
DATASIZE="2048000"
|
||||
[[ `arch -s` == i386 ]] && DATASIZE="1536000"
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Determine configuration settings
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
export JAVA_BIN=$(javaPathHelper -c netbeans)
|
||||
export JAVA_HOME=$(javaPathHelper -h netbeans)
|
||||
|
||||
if [ ! -x "${JAVA_BIN}" ]; then
|
||||
echo "Error: JAVA_HOME may not be defined correctly: ${JAVA_HOME}"
|
||||
echo " Unable to find Java binary ${JAVA_BIN}"
|
||||
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
|
||||
|
||||
xm_log() {
|
||||
echo -n "$@\nDo you want to run PyCharm anyway?\n\
|
||||
(If you don't increase these limits, PyCharm might fail to work properly.)" | \
|
||||
${X11BASE}/bin/xmessage -file - -center -buttons yes:0,no:1 -default no
|
||||
}
|
||||
|
||||
if [ $(ulimit -Sd) -lt ${DATASIZE} ]; then
|
||||
ulimit -Sd ${DATASIZE} || \
|
||||
xm_log "Cannot increase datasize-cur to at least ${DATASIZE}"
|
||||
[ $? -eq 0 ] || exit
|
||||
fi
|
||||
|
||||
PATH=${JAVA_HOME}/bin:$PATH exec "${NETBEANS_HOME}/bin/netbeans" --jdkhome ${JAVA_HOME} $@
|
12
devel/netbeans/files/netbeans.desktop
Normal file
12
devel/netbeans/files/netbeans.desktop
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Encoding=UTF-8
|
||||
Type=Application
|
||||
Name=NetBeans
|
||||
GenericName=NetBeans IDE
|
||||
Comment=NetBeans Integrated Development Environment
|
||||
Icon=${TRUEPREFIX}/netbeans/nb/netbeans.png
|
||||
Exec=${TRUEPREFIX}/bin/netbeans
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
Categories=Application;Development;
|
Loading…
Add table
Add a link
Reference in a new issue