blob: 9d3cb8c55af75a0daf1aaaa4ef7a4bda5e108a83 (
plain) (
blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: Scala
# Date created: 21 April 2009
# Whom: Mitsuru YOSHIDA <mitsuru@riken.jp>
#
# $FreeBSD$
#
PORTNAME= scala
PORTVERSION= 2.7.5
DISTVERSIONSUFFIX= .final
CATEGORIES= lang java
MASTER_SITES= http://www.scala-lang.org/downloads/distrib/files/ \
LOCAL/glarkin
EXTRACT_SUFX= .tgz
MAINTAINER= mitsuru@riken.jp
COMMENT= The Scala Programming Language
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.5+
MAN1= fsc.1 sbaz.1 scala.1 scalac.1 scaladoc.1
SCALA_HOME?= ${PREFIX}/share/${PORTNAME}-${PORTVERSION}
SCALA_SHRDIRS= lib meta misc
PLIST_SUB+= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}
.include <bsd.port.pre.mk>
pre-patch:
@${ECHO_MSG} "Installation settings:"
@${ECHO_MSG} " SCALA_HOME: ${SCALA_HOME}"
do-install:
@${ECHO_MSG} ">> Installing Scala files..."
@${INSTALL} -d ${SCALA_HOME}/bin
@cd ${WRKSRC}/bin \
&& ${FIND} . -perm 755 -type f -exec ${INSTALL_SCRIPT} {} \
${SCALA_HOME}/bin/{} \;
.for target in ${SCALA_SHRDIRS}
@cd ${WRKSRC}/${target} \
&& ${FIND} . -type d -exec ${INSTALL} -d ${SCALA_HOME}/${target}/{} \; \
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} \
${SCALA_HOME}/${target}/{} \;
.endfor
@cd ${WRKSRC}/man/man1 \
&& ${FIND} . -type f -exec ${INSTALL_MAN} {} \
${MANPREFIX}/man/man1/{} \;
@${ECHO_MSG} ">> Installing symlinks in ${PREFIX}/bin..."
@cd ${SCALA_HOME}/bin \
&& ${FIND} . -type f -exec ${LN} -s ${SCALA_HOME}/bin/{} \
${PREFIX}/bin/{} \;
.if !defined(NOPORTDOCS)
@${ECHO_MSG} ">> Installing documentation files..."
@${INSTALL} -d ${DOCSDIR}
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.post.mk>
|