pkgsrc/lang/scala-sbt/Makefile
ryoon d2af4cfbf0 lang/scala-sbt: import scala-sbt-1.2.7
sbt is a build tool for Scala, Java, and more.

Features of sbt
  * Little or no configuration required for simple projects
  * Scala-based build definition that can use the full flexibility of Scala
    code
  * Accurate incremental recompilation using information extracted from the
    compiler
  * Continuous compilation and testing with triggered execution
  * Packages and publishes jars
  * Generates documentation with scaladoc
  * Supports mixed Scala/Java projects
  * Supports testing with ScalaCheck, specs, and ScalaTest. JUnit is
    supported by a plugin.
  * Starts the Scala REPL with project classes and dependencies on
    the classpath
  * Modularization supported with sub-projects
  * External project support (list a git repository as a dependency!)
  * Parallel task execution, including parallel test execution
  * Library management support: inline declarations, external Ivy or Maven
    configuration files, or manual management
2018-12-16 09:54:41 +00:00

39 lines
961 B
Makefile

# $NetBSD: Makefile,v 1.1 2018/12/16 09:54:41 ryoon Exp $
DISTNAME= sbt-1.2.7
PKGNAME= scala-${DISTNAME}
CATEGORIES= lang
MASTER_SITES= https://piccolo.link/
EXTRACT_SUFX= .tgz
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://www.scala-sbt.org/
COMMENT= Interactive build tool for Scala language
LICENSE= apache-2.0
WRKSRC= ${WRKDIR}/sbt
USE_LANGUAGES= # none
USE_JAVA= run
USE_JAVA2= 8
NO_BUILD= yes
SUBST_CLASSES+= path
SUBST_FILES.path= bin/sbt bin/sbt-launch-lib.bash
SUBST_STAGE.path= pre-configure
SUBST_MESSAGE.path= Fix pathes for pkgsrc installation
SUBST_VARS.path= PREFIX JAVA_BINPREFIX
USE_TOOLS+= bash:run pax
REPLACE_BASH+= bin/sbt bin/sbt-launch-lib.bash
INSTALLATION_DIRS+= bin share/sbt
do-install:
cd ${WRKDIR} && ${FIND} sbt -type f \! -name '*.orig' -print | \
pax -rw -pmp ${DESTDIR}${PREFIX}/share
cd ${DESTDIR}${PREFIX}/bin && \
${LN} -s ../share/sbt/bin/sbt .
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"