Skip to content

Commit

Permalink
java/netbeans: Update to 12.6
Browse files Browse the repository at this point in the history
For the replacing of the python command, use the default python 3 version instead of hardcoding python 2.7.
Drop the netbeans version from the .desktop file.
Don't use absolute path for the symlink and add a non-versioned.

This also makes netbeans fetchable again, all distfiles prior to 12.6 where removed upsteam [1].

PR:		ports/260414 [1]
Reported by:	Marko Cupać <marko.cupac@mimar.rs> [1]
  • Loading branch information
kwm81 committed Dec 30, 2021
1 parent 7cfbd7c commit 1af70d2
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 131 deletions.
11 changes: 6 additions & 5 deletions java/netbeans/Makefile
@@ -1,7 +1,7 @@
# Created by: olgeni@FreeBSD.org

PORTNAME= netbeans
DISTVERSION= 12.3
DISTVERSION= 12.6
CATEGORIES= java devel
MASTER_SITES= APACHE/netbeans/netbeans/${PORTVERSION}/
DISTNAME= netbeans-${DISTVERSION}-bin
Expand All @@ -17,7 +17,7 @@ USES= cpe shebangfix zip
CPE_VENDOR= apache

USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VERSION= 11+
NO_BUILD= yes

SHEBANG_FILES= extide/ant/bin/antRun.pl \
Expand All @@ -28,7 +28,7 @@ SHEBANG_FILES= extide/ant/bin/antRun.pl \
perl_OLD_CMD= /usr/bin/perl
perl_CMD= ${LOCALBASE}/bin/perl
python_OLD_CMD= /usr/bin/python
python_CMD= ${LOCALBASE}/bin/python2.7
python_CMD= ${LOCALBASE}/bin/python${PYTHON_DEFAULT}

WRKSRC= ${WRKDIR}/netbeans
DATADIR= ${PREFIX}/${PORTNAME}-${PORTVERSION}
Expand All @@ -38,7 +38,7 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION}
DESKTOP_ENTRIES="Apache NetBeans" \
"Apache NetBeans IDE (incubating)" \
${DATADIR}/nb/netbeans.png \
${PORTNAME}-${PORTVERSION} \
${PORTNAME} \
"Development;" \
false

Expand All @@ -49,7 +49,8 @@ post-patch:

do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}
cd ${STAGEDIR}${PREFIX} && ${LN} -sf ${DATADIR}/bin/netbeans bin/${PORTNAME}-${PORTVERSION}
cd ${STAGEDIR}${PREFIX} && ${LN} -sf ../${PORTNAME}-${PORTVERSION}/bin/netbeans bin/${PORTNAME}
cd ${STAGEDIR}${PREFIX} && ${LN} -sf ../${PORTNAME}-${PORTVERSION}/bin/netbeans bin/${PORTNAME}-${PORTVERSION}
${RM} -rf ${STAGEDIR}${DATADIR}/profiler/lib/deployed/jdk16/linux-arm*

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions java/netbeans/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1615570628
SHA256 (netbeans-12.3-bin.zip) = ff522451e2ce32991dc2ced7cd089dc060d58639659a5767f1765e1a807ab5d4
SIZE (netbeans-12.3-bin.zip) = 405963068
TIMESTAMP = 1638891298
SHA256 (netbeans-12.6-bin.zip) = 95ea3f8aab954ee44e68ee2f2a8828e46f91fda86efa9312b1186e7736ab8b49
SIZE (netbeans-12.6-bin.zip) = 432790335

0 comments on commit 1af70d2

Please sign in to comment.