Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2012 08:07:30 +0000 (UTC)
From:      Alex Dupre <ale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305574 - in head/devel: . sbt sbt/files
Message-ID:  <201210090807.q9987Uam067008@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ale
Date: Tue Oct  9 08:07:30 2012
New Revision: 305574
URL: http://svn.freebsd.org/changeset/ports/305574

Log:
  simple build tool (sbt) is a minimally intrusive
  build tool for Scala projects.
  
  WWW: http://www.scala-sbt.org/

Added:
  head/devel/sbt/
  head/devel/sbt/Makefile   (contents, props changed)
  head/devel/sbt/distinfo   (contents, props changed)
  head/devel/sbt/files/
  head/devel/sbt/files/patch-bin_sbt   (contents, props changed)
  head/devel/sbt/files/patch-bin_sbt-launch-lib.bash   (contents, props changed)
  head/devel/sbt/files/sbt.sh.in   (contents, props changed)
  head/devel/sbt/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue Oct  9 08:07:04 2012	(r305573)
+++ head/devel/Makefile	Tue Oct  9 08:07:30 2012	(r305574)
@@ -4005,6 +4005,7 @@
     SUBDIR += sabre
     SUBDIR += safe-iop
     SUBDIR += safestr
+    SUBDIR += sbt
     SUBDIR += scalatest
     SUBDIR += scandoc
     SUBDIR += scons

Added: head/devel/sbt/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sbt/Makefile	Tue Oct  9 08:07:30 2012	(r305574)
@@ -0,0 +1,53 @@
+# Created by: Alex Dupre <ale@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	sbt
+PORTVERSION=	0.12.1
+CATEGORIES=	devel java
+MASTER_SITES=	http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/${PORTVERSION}/
+DISTNAME=	${PORTNAME}
+EXTRACT_SUFX=	.tgz
+DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}
+
+MAINTAINER=	ale@FreeBSD.org
+COMMENT=	A build tool for Scala projects
+
+LICENSE=	AL2
+
+OPTIONS_DEFINE=	ADVANCED
+ADVANCED_DESC=	Install advanced bash shell-script
+
+NO_BUILD=	yes
+USE_JAVA=	yes
+
+PLIST_FILES=	bin/sbt \
+		%%DATADIR%%/sbt-launch.jar
+PLIST_DIRS=	%%DATADIR%%
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MADVANCED}
+RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
+
+PLIST_FILES+=	%%DATADIR%%/sbt \
+		%%DATADIR%%/sbt-launch-lib.bash
+.else
+SUB_FILES=	sbt.sh
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" \
+		${WRKSRC}/bin/sbt ${WRKSRC}/bin/sbt-launch-lib.bash
+
+do-install:
+	${MKDIR} ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/bin/sbt-launch.jar ${DATADIR}
+.if ${PORT_OPTIONS:MADVANCED}
+	${INSTALL_SCRIPT} ${WRKSRC}/bin/sbt ${DATADIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/bin/sbt-launch-lib.bash ${DATADIR}
+	${LN} -s ${DATADIR}/sbt ${PREFIX}/bin/
+.else
+	${INSTALL_SCRIPT} ${WRKDIR}/sbt.sh ${PREFIX}/bin/sbt
+.endif
+
+.include <bsd.port.mk>

Added: head/devel/sbt/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sbt/distinfo	Tue Oct  9 08:07:30 2012	(r305574)
@@ -0,0 +1,2 @@
+SHA256 (sbt/0.12.1/sbt.tgz) = bb446337ca8c988bdf9815748375466746b2d1a5634268188e22a3890f393335
+SIZE (sbt/0.12.1/sbt.tgz) = 1083996

Added: head/devel/sbt/files/patch-bin_sbt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sbt/files/patch-bin_sbt	Tue Oct  9 08:07:30 2012	(r305574)
@@ -0,0 +1,25 @@
+--- bin/sbt.orig	2012-09-18 09:35:52.000000000 +0200
++++ bin/sbt	2012-09-18 09:37:14.000000000 +0200
+@@ -1,11 +1,11 @@
+ #!/usr/bin/env bash
+ 
+-. $(dirname $0)/sbt-launch-lib.bash
++. %%PREFIX%%/share/sbt/sbt-launch-lib.bash
+ 
+ 
+ declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy"
+ declare -r sbt_opts_file=".sbtopts"
+-declare -r etc_sbt_opts_file="/etc/sbt/sbtopts"
++declare -r etc_sbt_opts_file="%%PREFIX%%/etc/sbt/sbtopts"
+ 
+ usage() {
+  cat <<EOM
+@@ -39,7 +39,7 @@
+   SBT_OPTS           environment variable, if unset uses "$default_sbt_opts"
+   .sbtopts           if this file exists in the current directory, it is
+                      prepended to the runner args
+-  /etc/sbt/sbtopts   if this file exists, it is prepended to the runner args
++  %%PREFIX%%/etc/sbt/sbtopts   if this file exists, it is prepended to the runner args
+   -Dkey=val          pass -Dkey=val directly to the java runtime
+   -J-X               pass option -X directly to the java runtime 
+                      (-J is stripped)

Added: head/devel/sbt/files/patch-bin_sbt-launch-lib.bash
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sbt/files/patch-bin_sbt-launch-lib.bash	Tue Oct  9 08:07:30 2012	(r305574)
@@ -0,0 +1,11 @@
+--- bin/sbt-launch-lib.bash.orig	2012-09-18 09:35:57.000000000 +0200
++++ bin/sbt-launch-lib.bash	2012-09-18 09:37:53.000000000 +0200
+@@ -29,7 +29,7 @@
+ }
+ 
+ jar_file () {
+-  echo "$(dirname $0)/sbt-launch.jar"
++  echo "%%PREFIX%%/share/sbt/sbt-launch.jar"
+ }
+ 
+ acquire_sbt_jar () {

Added: head/devel/sbt/files/sbt.sh.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sbt/files/sbt.sh.in	Tue Oct  9 08:07:30 2012	(r305574)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "%%LOCALBASE%%/bin/java" -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -jar "%%DATADIR%%/sbt-launch.jar" "$@"

Added: head/devel/sbt/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sbt/pkg-descr	Tue Oct  9 08:07:30 2012	(r305574)
@@ -0,0 +1,4 @@
+simple build tool (sbt) is a minimally intrusive
+build tool for Scala projects.
+
+WWW: http://www.scala-sbt.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210090807.q9987Uam067008>