Update port to version 5.5 and remove pkg-plist.

(add support for empty directories and bin/netbeans symlink to ports/105254)

PR:		ports/105254
Submitted by:	David Sledge <dsledge(at)appriss.com>
This commit is contained in:
Jimmy Olgeni 2006-11-21 22:58:56 +00:00
parent e57b4a5ed9
commit 8bb28dcc0c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177768
10 changed files with 60 additions and 2758 deletions

View File

@ -6,30 +6,26 @@
#
PORTNAME= netbeans
PORTVERSION= 5.0
PORTVERSION= 5.5
CATEGORIES= java devel
MASTER_SITES=
DISTNAME= netbeans-5_0
MASTER_SITES= http://us1.mirror.netbeans.org/download/5_5/fcs/200610171010/ \
http://us2.mirror.netbeans.org/download/5_5/fcs/200610171010/
DISTNAME= netbeans-5_5
MAINTAINER= olgeni@FreeBSD.org
COMMENT= A full-featured integrated environment for Java
USE_BZIP2= yes
USE_JAVA= yes
JAVA_VERSION= 1.4+
JAVA_VERSION= 1.5+
NO_BUILD= yes
RESTRICTED= Restrictive license
WRKSRC= ${WRKDIR}/netbeans
DOWNLOAD_URL?= http://www.netbeans.info/downloads/download.php?type=5.0&p=1&a=bsd&os=1&lang=1&rv=5.0&b_bt=2
SUB_FILES= pkg-install pkg-deinstall
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
IGNORE= you must manually fetch the source distribution (${DISTFILES}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
post-patch:
@${RM} ${WRKSRC}/etc/netbeans.conf.orig
@ -42,5 +38,8 @@ do-install:
@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/netbeans
@${LN} -sf ${PREFIX}/netbeans/bin/netbeans ${PREFIX}/bin/netbeans
@(cd ${WRKDIR}; ${FIND} -s netbeans -not -type d) >> ${TMPPLIST}
@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d) | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d -empty) | ${SED} -ne 's,^,@exec mkdir -p %D/,p' >> ${TMPPLIST}
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (netbeans-5_0.tar.bz2) = ad2646c47b79a9a5a832f1f24ff84e69
SHA256 (netbeans-5_0.tar.bz2) = d1e7e3fad3a75b8b9543426efc79a6508b06510b12b43aca02f2429e6112cc49
SIZE (netbeans-5_0.tar.bz2) = 50819931
MD5 (netbeans-5_5.tar.bz2) = 1edcc422b215e53a8346d282f51e274f
SHA256 (netbeans-5_5.tar.bz2) = a9d530beda310dd27509d6326efe830a576e4d26b12c9322ea6ec828916ac069
SIZE (netbeans-5_5.tar.bz2) = 67887731

View File

@ -0,0 +1,9 @@
#!/bin/sh
case "$2" in
DEINSTALL)
rm -f %%PREFIX%%/bin/netbeans
;;
esac
exit 0

View File

@ -0,0 +1,9 @@
#!/bin/sh
case "$2" in
POST-INSTALL)
ln -sf %%PREFIX%%/netbeans/bin/netbeans %%PREFIX%%/bin/netbeans
;;
esac
exit 0

File diff suppressed because it is too large Load Diff

View File

@ -6,30 +6,26 @@
#
PORTNAME= netbeans
PORTVERSION= 5.0
PORTVERSION= 5.5
CATEGORIES= java devel
MASTER_SITES=
DISTNAME= netbeans-5_0
MASTER_SITES= http://us1.mirror.netbeans.org/download/5_5/fcs/200610171010/ \
http://us2.mirror.netbeans.org/download/5_5/fcs/200610171010/
DISTNAME= netbeans-5_5
MAINTAINER= olgeni@FreeBSD.org
COMMENT= A full-featured integrated environment for Java
USE_BZIP2= yes
USE_JAVA= yes
JAVA_VERSION= 1.4+
JAVA_VERSION= 1.5+
NO_BUILD= yes
RESTRICTED= Restrictive license
WRKSRC= ${WRKDIR}/netbeans
DOWNLOAD_URL?= http://www.netbeans.info/downloads/download.php?type=5.0&p=1&a=bsd&os=1&lang=1&rv=5.0&b_bt=2
SUB_FILES= pkg-install pkg-deinstall
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
IGNORE= you must manually fetch the source distribution (${DISTFILES}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
post-patch:
@${RM} ${WRKSRC}/etc/netbeans.conf.orig
@ -42,5 +38,8 @@ do-install:
@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/netbeans
@${LN} -sf ${PREFIX}/netbeans/bin/netbeans ${PREFIX}/bin/netbeans
@(cd ${WRKDIR}; ${FIND} -s netbeans -not -type d) >> ${TMPPLIST}
@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d) | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d -empty) | ${SED} -ne 's,^,@exec mkdir -p %D/,p' >> ${TMPPLIST}
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (netbeans-5_0.tar.bz2) = ad2646c47b79a9a5a832f1f24ff84e69
SHA256 (netbeans-5_0.tar.bz2) = d1e7e3fad3a75b8b9543426efc79a6508b06510b12b43aca02f2429e6112cc49
SIZE (netbeans-5_0.tar.bz2) = 50819931
MD5 (netbeans-5_5.tar.bz2) = 1edcc422b215e53a8346d282f51e274f
SHA256 (netbeans-5_5.tar.bz2) = a9d530beda310dd27509d6326efe830a576e4d26b12c9322ea6ec828916ac069
SIZE (netbeans-5_5.tar.bz2) = 67887731

View File

@ -0,0 +1,9 @@
#!/bin/sh
case "$2" in
DEINSTALL)
rm -f %%PREFIX%%/bin/netbeans
;;
esac
exit 0

View File

@ -0,0 +1,9 @@
#!/bin/sh
case "$2" in
POST-INSTALL)
ln -sf %%PREFIX%%/netbeans/bin/netbeans %%PREFIX%%/bin/netbeans
;;
esac
exit 0

File diff suppressed because it is too large Load Diff