# Created by: olgeni@FreeBSD.org # $FreeBSD$ PORTNAME= netbeans PORTVERSION= 7.3 CATEGORIES= java devel MASTER_SITES= http://download.netbeans.org/netbeans/${PORTVERSION}/final/zip/ \ http://dlc.sun.com.edgesuite.net/netbeans/${PORTVERSION}/final/zip/ DISTNAME= netbeans-${PORTVERSION}-201302132200 MAINTAINER= gahr@FreeBSD.org COMMENT= A full-featured integrated environment for Java USE_ZIP= yes USE_JAVA= yes JAVA_VERSION= 1.6+ NO_BUILD= yes WRKSRC= ${WRKDIR}/netbeans DATADIR= ${PREFIX}/${PORTNAME}-${PORTVERSION} PLIST_SUB+= PORTVERSION=${PORTVERSION} DESKTOP_ENTRIES="NetBeans" \ "NetBeans IDE" \ ${DATADIR}/nb/netbeans.png \ ${PORTNAME}-${PORTVERSION} \ "Development;" \ ${FALSE} NO_STAGE= yes post-patch: @${REINPLACE_CMD} -i "" -e '57s|#||;57s|/path/to/jdk|${JAVA_HOME}|' \ ${WRKSRC}/etc/netbeans.conf @${REINPLACE_CMD} -i "" -e 's|%%GCONFTOOL2%%|${LOCALBASE}/bin/gconftool-2|g; \ s|%%GREP%%|${GREP}|g;s|%%SED%%|${SED}|g;s|%%AWK%%|${AWK}|g' \ ${WRKSRC}/platform/lib/nbexec @${FIND} ${WRKSRC} -name "*.orig" -delete do-install: @(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR}) @${CHMOD} ${BINMODE} ${DATADIR}/bin/netbeans @${LN} -sf ${DATADIR}/bin/netbeans ${PREFIX}/bin/${PORTNAME}-${PORTVERSION} post-install: @${CHMOD} ${BINMODE} ${DATADIR}/java/maven/bin/mvn .include