Skip to content

Commit

Permalink
devel/sbt: add runtime ncurses (infocmp) dependency required by jline
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdupre committed Oct 20, 2022
1 parent 60077ba commit b7a5f13
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions devel/sbt/Makefile
@@ -1,5 +1,6 @@
PORTNAME= sbt
PORTVERSION= 1.7.2
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= https://github.com/sbt/sbt/releases/download/v${PORTVERSION}/

Expand All @@ -9,20 +10,20 @@ WWW= https://www.scala-sbt.org/

LICENSE= APACHE20

RUN_DEPENDS= infocmp:devel/ncurses

USES= tar:tgz

OPTIONS_DEFINE= ADVANCED # PRELOADED
OPTIONS_DEFAULT=ADVANCED
ADVANCED_DESC= Install advanced bash shell-script (required for Java 11+)
#PRELOADED_DESC= Install preloaded jars for offline usage

NO_BUILD= yes
NO_ARCH= yes
USE_JAVA= yes
WRKSRC= ${WRKDIR}/${PORTNAME}

ADVANCED_RUN_DEPENDS+= bash:shells/bash
#PRELOADED_RUN_DEPENDS+= rsync:net/rsync

ADVANCED_SUB_FILES_OFF= sbt.sh

Expand All @@ -42,9 +43,6 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/sbt ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DATADIR}/conf
${INSTALL_DATA} ${FILESDIR}/sbtopts ${STAGEDIR}${DATADIR}/conf
#.if ${PORT_OPTIONS:MPRELOADED}
# cd ${WRKSRC}/lib && ${COPYTREE_SHARE} local-preloaded ${STAGEDIR}${DATADIR}
#.endif
${LN} -s ../${DATADIR_REL}/sbt ${STAGEDIR}${PREFIX}/bin/
.else
${INSTALL_SCRIPT} ${WRKDIR}/sbt.sh ${STAGEDIR}${PREFIX}/bin/sbt
Expand Down

0 comments on commit b7a5f13

Please sign in to comment.