head	1.12;
access;
symbols
	RELEASE_8_3_0:1.8
	RELEASE_9_0_0:1.8
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.2;
locks; strict;
comment	@# @;


1.12
date	2013.03.22.06.30.01;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2013.01.16.16.51.11;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.12.10.13.24.59;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.11.17.05.58.56;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2011.10.02.07.22.52;	author glewis;	state Exp;
branches;
next	1.7;

1.7
date	2011.06.27.13.29.58;	author jlaffaye;	state Exp;
branches;
next	1.6;

1.6
date	2011.06.09.13.29.58;	author jlaffaye;	state Exp;
branches;
next	1.5;

1.5
date	2010.11.23.13.49.44;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2010.09.14.11.52.05;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2009.11.04.13.25.07;	author miwi;	state Exp;
branches;
next	1.2;

1.2
date	2009.06.05.02.29.15;	author amdmi3;	state Exp;
branches;
next	1.1;

1.1
date	2009.05.15.17.43.14;	author glarkin;	state Exp;
branches;
next	;


desc
@@


1.12
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314862
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Mitsuru YOSHIDA <mitsuru@@riken.jp>
# $FreeBSD: head/lang/scala/Makefile 314862 2013-03-21 18:55:22Z pawel $

PORTNAME=	scala
PORTVERSION=	2.10.1
CATEGORIES=	lang java
MASTER_SITES=	http://www.scala-lang.org/downloads/distrib/files/
EXTRACT_SUFX=	.tgz

MAINTAINER=	mitsururike@@gmail.com
COMMENT=	The 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

MAN1=		${SCALA_BINS:S,$,.1,}

PLIST_FILES=	${SCALA_BINS:S,^,bin/,}
PORTDATA=	*
PORTDOCS=	*
PORTEXAMPLES=	*

pre-patch:
	@@${ECHO_MSG} "Installation settings:"
	@@${ECHO_MSG} "   SCALA_HOME:    ${SCALA_HOME}"

.include <bsd.port.options.mk>

do-install:
	@@${MKDIR} ${SCALA_HOME}/bin
.for f in ${SCALA_BINS}
	@@${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${SCALA_HOME}/bin/${f}
	@@${LN} -s ${SCALA_HOME}/bin/${f} ${PREFIX}/bin/${f}
.endfor
.for d in ${SCALA_SHRDIRS}
	@@cd ${WRKSRC}/${d} && ${COPYTREE_SHARE} . ${SCALA_HOME}/${d}
.endfor
.for m in ${MAN1}
	@@${INSTALL_MAN} ${WRKSRC}/man/man1/${m} ${MANPREFIX}/man/man1/${m}
.endfor
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
.for d in ${SCALA_DOCDIRS}
	@@cd ${WRKSRC}/doc/${d} && ${COPYTREE_SHARE} . ${DOCSDIR}/${d}
.endfor
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@@${MKDIR} ${EXAMPLESDIR}
	@@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>
@


1.11
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310503
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/scala/Makefile 310503 2013-01-16 16:31:26Z ale $
d5 1
a5 1
PORTVERSION=	2.10.0
@


1.10
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308604
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308604 | bapt | 2012-12-10 13:18:28 +0000 (Mon, 10 Dec 2012) | 3 lines
## SVN ##
## SVN ## Decommissioning java 1.5 (EOLed since October 2009):
## SVN ## suppress any reference to JAVA_VERSION=	1.5+ (part2)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/scala/Makefile 308604 2012-12-10 13:18:28Z bapt $
d5 1
a5 1
PORTVERSION=	2.9.1
d7 1
a7 3
MASTER_SITES=	http://www.scala-lang.org/downloads/distrib/files/ \
		LOCAL/glarkin
DISTNAME=	${PORTNAME}-${PORTVERSION}.final
d13 3
d18 2
a23 2
MAN1=		fsc.1 sbaz.1 scala.1 scalac.1 scaladoc.1 scalap.1

d25 2
a26 1
SCALA_SHRDIRS=	lib meta misc
a27 2
		sbaz \
		sbaz-setup \
d33 6
a38 1
.include <bsd.port.pre.mk>
d44 1
a44 5
post-patch:
.for f in ${SCALA_BINS}
	@@${REINPLACE_CMD} 's|^#!/bin/bash|#!${LOCALBASE}/bin/bash|' \
		${WRKSRC}/bin/${f}
.endfor
d47 1
a47 2
	@@${ECHO_MSG} ">> Installing Scala files..."
	@@${INSTALL} -d ${SCALA_HOME}/bin
d49 2
a50 2
	${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${SCALA_HOME}/bin/${f}
	${LN} -s ${SCALA_HOME}/bin/${f} ${PREFIX}/bin/${f}
d56 6
a61 1
	${INSTALL_MAN} ${WRKSRC}/man/man1/${m} ${MANPREFIX}/man/man1/${m}
d63 4
a66 6

.if !defined(NOPORTDOCS)
	@@${ECHO_MSG} ">> Installing documentation files..."
	@@${INSTALL} -d ${DOCSDIR}
	@@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
	@@${ECHO_MSG} " [ DONE ]"
d69 1
a69 1
.include <bsd.port.post.mk>
@


1.9
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	Scala
# Date created:			21 April 2009
# Whom:				Mitsuru YOSHIDA <mitsuru@@riken.jp>
#
# $FreeBSD: head/lang/scala/Makefile 300896 2012-07-14 13:54:48Z beat $
#
d19 1
a19 1
JAVA_VERSION=	1.5+
@


1.8
log
@. Update to 2.9.1.
. Set SCALA_HOME to DATADIR and use that in pkg-plist (quietens PORTLINT).

PR:		160650
Approved by:	maintainer timeout
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@Use a static SCALA_HOME
Fix broken symlink

PR:		ports/157740
Submitted by:	myself
Approved by:	maintainer timeout, tabthorpe (mentor)
@
text
@d9 1
a9 2
PORTVERSION=	2.9.0.1
PORTREVISION=	1
d13 1
d27 1
a27 1
SCALA_HOME=	${PREFIX}/share/${PORTNAME}
@


1.6
log
@Update to 2.9.0.1
Fix the do-install target to not install temporary files.
While I am here, use for loops and COPYTREE_SHARE instead of find.

PR:		ports/157705
Submitted by:	Mitsuru YOSHIDA <mitsururike@@gmail.com> (maintainer)
Approved by:	bapt (mentor)
@
text
@d10 1
d27 1
a27 1
SCALA_HOME?=	${PREFIX}/share/${PORTNAME}-${PORTVERSION}
a36 2
PLIST_SUB+=	PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}

d54 1
a54 1
	${LN} -s ${SCALA_HOME}/${f} ${PREFIX}/bin/${f}
@


1.5
log
@- Update to 2.8.1

PR:		ports/152091
Submitted by:	<mitsururike@@gmail.com> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	2.8.1
DISTVERSIONSUFFIX=	.final
d18 2
d28 7
d44 6
d53 9
a61 8
	@@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}/{} \;
a62 7
	@@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/{} \;
@


1.4
log
@- Update to 2.8.0

PR:		ports/148779
Submitted by:	<mitsuru@@riken.jp> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.8.0
@


1.3
log
@- Update to 2.7.7

PR:		140263
Submitted by:	mitsuru@@riken.jp (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.7.7
d16 1
a16 1
MAINTAINER=	mitsuru@@riken.jp
d23 1
a23 1
MAN1=		fsc.1 sbaz.1 scala.1 scalac.1 scaladoc.1
@


1.2
log
@- Update to 2.7.5

PR:		135204
Submitted by:	mitsuru@@riken.jp (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.7.5
@


1.1
log
@Scala is a general purpose programming language designed to express
common programming patterns in a concise, elegant, and type-safe
way. It smoothly integrates features of object-oriented and functional
languages, enabling Java and other programmers to be more productive.
Code sizes are typically reduced by a factor of two to three when
compared to an equivalent Java application.

WWW: http://www.scala-lang.org/

PR:		ports/133887
Submitted by:	Mitsuru YOSHIDA <mitsuru at riken.jp>
@
text
@d9 1
a9 1
PORTVERSION=	2.7.4
@

