ports/110373: [NEW PORT]Netbeans5 : an open source java IDE

Nemo Liu nemoliu at gmail.com
Fri Mar 16 03:10:04 UTC 2007


>Number:         110373
>Category:       ports
>Synopsis:       [NEW PORT]Netbeans5 : an open source java IDE
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 16 03:10:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Nemo Liu
>Release:        6.2
>Organization:
>Environment:
FreeBSD monitor.internal.sina.com.cn 6.2-STORM-r3 FreeBSD 6.2-STORM-r3 #0: Tue Jan 30 18:26:24 CST 2007     delphij at monitor.internal.sina.com.cn:/usr/obj/usr/src/sys/SINAMAIL  i386
>Description:
I'm not very sure the Licence of Netbeans allow package distribution.Could commiter who handler this PR would like to help me analysis it.The licence's URL is bellow:
http://www.netbeans.info/downloads/licence/show.php?l=ide-5.0-rc1-2006-01-09.inc


The NetBeans IDE is a free, Open-Source Integrated Development Environment for software developers. The IDE runs on many platforms including Windows, Linux, Solaris, and the MacOS. It is easy to install and use straight out of the box. The NetBeans IDE provides developers with all the tools they need to create professional cross-platform desktop, enterprise, web and mobile applications.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	netbeans5
#	netbeans5/files
#	netbeans5/files/patch-etc_netbeans.conf
#	netbeans5/files/pkg-deinstall.in
#	netbeans5/files/pkg-install.in
#	netbeans5/Makefile
#	netbeans5/distinfo
#	netbeans5/pkg-descr
#
echo c - netbeans5
mkdir -p netbeans5 > /dev/null 2>&1
echo c - netbeans5/files
mkdir -p netbeans5/files > /dev/null 2>&1
echo x - netbeans5/files/patch-etc_netbeans.conf
sed 's/^X//' >netbeans5/files/patch-etc_netbeans.conf << 'END-of-netbeans5/files/patch-etc_netbeans.conf'
X
X$FreeBSD$
X
X--- etc/netbeans.conf.orig
X+++ etc/netbeans.conf
X@@ -6,7 +6,7 @@
X netbeans_default_options="-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none"
X 
X # default location of J2SE JDK, can be overridden by using --jdkhome <dir> switch
X-#netbeans_jdkhome="/path/to/jdk"
X+netbeans_jdkhome="%%JAVA_HOME%%"
X 
X # clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
X #netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"
END-of-netbeans5/files/patch-etc_netbeans.conf
echo x - netbeans5/files/pkg-deinstall.in
sed 's/^X//' >netbeans5/files/pkg-deinstall.in << 'END-of-netbeans5/files/pkg-deinstall.in'
X#!/bin/sh
X
Xcase "$2" in
X    DEINSTALL)
X	rm -f %%PREFIX%%/bin/netbeans5
X	;;
Xesac
X
Xexit 0
END-of-netbeans5/files/pkg-deinstall.in
echo x - netbeans5/files/pkg-install.in
sed 's/^X//' >netbeans5/files/pkg-install.in << 'END-of-netbeans5/files/pkg-install.in'
X#!/bin/sh
X
Xcase "$2" in
X    POST-INSTALL)
X	ln -sf %%PREFIX%%/netbeans4/bin/netbeans %%PREFIX%%/bin/netbeans5
X	;;
Xesac
X
Xexit 0
END-of-netbeans5/files/pkg-install.in
echo x - netbeans5/Makefile
sed 's/^X//' >netbeans5/Makefile << 'END-of-netbeans5/Makefile'
X# New ports collection makefile for:	netbeans
X# Date Created:				15 May 2007
X# Whom:				 	Nemo Liu <nemoliu at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	netbeans
XPORTVERSION=	5
XCATEGORIES=	java devel
XMASTER_SITES=	http://us1.mirror.netbeans.org/download/5_0/fcs/200601251500/
XDISTNAME=	netbeans-5_0
X
XMAINTAINER=	nemoliu at gmail.com
XCOMMENT=	A free and open-source IDE for Java
X
XUSE_BZIP2=	yes
XUSE_JAVA=	yes
XJAVA_VERSION=	1.4+
XNO_BUILD=	yes
X
XWRKSRC=		${WRKDIR}/netbeans
X
XSUB_FILES=	pkg-install pkg-deinstall
X
XDOWNLOAD_URL?=	http://www.netbeans.info/downloads/index.php?rs=2
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${RM} ${WRKSRC}/etc/netbeans.conf.orig
X
Xdo-configure:
X	@${REINPLACE_CMD} 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/etc/netbeans.conf
X	@${RM} ${WRKSRC}/etc/netbeans.conf.bak
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/netbeans5
X	@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans5
X	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/netbeans5
X	@${LN} -sf ${PREFIX}/netbeans5/bin/netbeans ${PREFIX}/bin/netbeans5
X	@(cd ${WRKDIR}; ${FIND} -s netbeans -not -type d) | ${SED} -ne 's,^netbeans,netbeans5,p' >> ${TMPPLIST}
X	@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d) | ${SED} -ne 's,^netbeans,netbeans5,' -ne 's,^, at dirrm ,p' >> ${TMPPLIST}
X	@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d -empty) | ${SED} -ne 's,^netbeans,netbeans5,' -ne 's,^, at exec ${MKDIR} %D/,p' >> ${TMPPLIST}
X
X.include <bsd.port.post.mk>
END-of-netbeans5/Makefile
echo x - netbeans5/distinfo
sed 's/^X//' >netbeans5/distinfo << 'END-of-netbeans5/distinfo'
XMD5 (netbeans-5_0.tar.bz2) = ad2646c47b79a9a5a832f1f24ff84e69
XSHA256 (netbeans-5_0.tar.bz2) = d1e7e3fad3a75b8b9543426efc79a6508b06510b12b43aca02f2429e6112cc49
XSIZE (netbeans-5_0.tar.bz2) = 50819931
END-of-netbeans5/distinfo
echo x - netbeans5/pkg-descr
sed 's/^X//' >netbeans5/pkg-descr << 'END-of-netbeans5/pkg-descr'
XThe NetBeans IDE is a world-class development environment written
Xin Java.  It can be used to develop code in Java, HTML, XML, JSP,
XC/C++ and other languages. The IDE is modular, and there is a huge
Xvariety of commercial and free extensions to it to support various
Xtechnologies.
X
XWWW: http://www.netbeans.org/
END-of-netbeans5/pkg-descr
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list