1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/devel/sbt/Makefile
Jimmy Olgeni 76c7f8fbe6 Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. Categories D-F.

CR:		D196
Approved by:	portmgr (bapt)
2014-06-10 07:39:01 +00:00

53 lines
1.2 KiB
Makefile

# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$
PORTNAME= sbt
PORTVERSION= 0.13.5
CATEGORIES= devel java
MASTER_SITES= http://dl.bintray.com/sbt/native-packages/sbt/${PORTVERSION}/
MAINTAINER= ale@FreeBSD.org
COMMENT= Build tool for Scala projects
LICENSE= APACHE20
OPTIONS_DEFINE= ADVANCED
ADVANCED_DESC= Install advanced bash shell-script
USES= tar:tgz
NO_BUILD= yes
USE_JAVA= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/sbt \
%%DATADIR%%/sbt-launch.jar
PLIST_DIRS= %%DATADIR%%
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MADVANCED}
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
PLIST_FILES+= %%DATADIR%%/sbt \
%%DATADIR%%/sbt-launch-lib.bash
.else
SUB_FILES= sbt.sh
.endif
post-patch:
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" \
${WRKSRC}/bin/sbt
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/bin/sbt-launch.jar ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MADVANCED}
${INSTALL_SCRIPT} ${WRKSRC}/bin/sbt ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/bin/sbt-launch-lib.bash ${STAGEDIR}${DATADIR}
${LN} -s ${DATADIR}/sbt ${STAGEDIR}${PREFIX}/bin/
.else
${INSTALL_SCRIPT} ${WRKDIR}/sbt.sh ${STAGEDIR}${PREFIX}/bin/sbt
.endif
.include <bsd.port.mk>