6e7cb4e0c2
- Update MASTER_SITES [1] - Improve COMMENT - Add stage support PR: ports/182992 Submitted by: mitsururike@gmail.com (maintainer) [1] Approved by: wg/culot (mentors, implicit)
68 lines
1.6 KiB
Makefile
68 lines
1.6 KiB
Makefile
# Created by: Mitsuru YOSHIDA <mitsuru@riken.jp>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= scala
|
|
PORTVERSION= 2.10.3
|
|
CATEGORIES= lang java
|
|
MASTER_SITES= http://www.scala-lang.org/files/archive/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= mitsururike@gmail.com
|
|
COMMENT= Scala Programming Language
|
|
|
|
LICENSE= BSD
|
|
LICENSE_FILE= ${WRKSRC}/doc/LICENSE
|
|
|
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
NO_BUILD= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
|
|
SCALA_HOME= ${DATADIR}
|
|
SCALA_SHRDIRS= lib misc src
|
|
SCALA_DOCDIRS= tools
|
|
SCALA_BINS= fsc \
|
|
scala \
|
|
scalac \
|
|
scaladoc \
|
|
scalap
|
|
|
|
SCALA_MANS= ${SCALA_BINS:S,$,.1,}
|
|
PLIST_FILES= ${SCALA_BINS:S,^,bin/,} \
|
|
man/man1/fsc.1.gz \
|
|
man/man1/scala.1.gz \
|
|
man/man1/scalac.1.gz \
|
|
man/man1/scaladoc.1.gz \
|
|
man/man1/scalap.1.gz
|
|
|
|
PORTDATA= *
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
pre-patch:
|
|
@${ECHO_MSG} "Installation settings:"
|
|
@${ECHO_MSG} " SCALA_HOME: ${SCALA_HOME}"
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${SCALA_HOME}/bin
|
|
.for f in ${SCALA_BINS}
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${SCALA_HOME}/bin/${f}
|
|
@${LN} -s ${SCALA_HOME}/bin/${f} ${STAGEDIR}${PREFIX}/bin/${f}
|
|
.endfor
|
|
.for d in ${SCALA_SHRDIRS}
|
|
@cd ${WRKSRC}/${d} && ${COPYTREE_SHARE} . ${STAGEDIR}${SCALA_HOME}/${d}
|
|
.endfor
|
|
.for m in ${SCALA_MANS}
|
|
@${INSTALL_MAN} ${WRKSRC}/man/man1/${m} ${STAGEDIR}${MANPREFIX}/man/man1/${m}
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for d in ${SCALA_DOCDIRS}
|
|
@cd ${WRKSRC}/doc/${d} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${d}
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|