blob: 07052e7901fd9084b1c2a139f18b679becc28105 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $NetBSD: Makefile,v 1.11 2015/04/07 14:21:43 yyamano Exp $
DISTNAME= scala-2.11.6
CATEGORIES= lang
MASTER_SITES= http://www.scala-lang.org/files/archive/
EXTRACT_SUFX= .tgz
MAINTAINER= yyamano@NetBSD.org
HOMEPAGE= http://www.scala-lang.org/
COMMENT= Scala is a multi-paradigm programming language
USE_JAVA= run
USE_JAVA2= 6
NO_BUILD= yes
USE_TOOLS+= bash:run
REPLACE_BASH+= bin/fsc bin/scala bin/scalac \
bin/scaladoc bin/scalap
SCALA_HOME= ${PREFIX}/share/${DISTNAME}
SUBST_CLASSES+= scala
SUBST_FILES.scala= bin/fsc bin/scala bin/scalac bin/scaladoc bin/scalap
SUBST_STAGE.scala= pre-configure
SUBST_SED.scala= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.scala+= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'
SUBST_SED.scala+= -e 's,@SCALA_HOME@,${SCALA_HOME},g'
PLIST_SUBST+= DISTNAME=${DISTNAME}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/${DISTNAME}
post-extract:
@${RM} ${WRKSRC}/bin/*.bat
do-install:
@${RM} -f ${WRKSRC}/bin/*.orig
${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
@cd ${WRKSRC} && ${TAR} cf - doc lib | ${TAR} xf - -C ${DESTDIR}${SCALA_HOME}
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|