[69713] trunk/dports/devel

ryandesign at macports.org ryandesign at macports.org
Tue Jul 13 16:38:09 PDT 2010


Revision: 69713
          http://trac.macports.org/changeset/69713
Author:   ryandesign at macports.org
Date:     2010-07-13 16:38:08 -0700 (Tue, 13 Jul 2010)
Log Message:
-----------
sbt: new port, version 0.7.4; see #25658

Added Paths:
-----------
    trunk/dports/devel/sbt/
    trunk/dports/devel/sbt/Portfile
    trunk/dports/devel/sbt/files/
    trunk/dports/devel/sbt/files/sbt.sh

Added: trunk/dports/devel/sbt/Portfile
===================================================================
--- trunk/dports/devel/sbt/Portfile	                        (rev 0)
+++ trunk/dports/devel/sbt/Portfile	2010-07-13 23:38:08 UTC (rev 69713)
@@ -0,0 +1,57 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                sbt
+version             0.7.4
+categories          devel java
+maintainers         jon.buffington.name:me
+platforms           darwin
+
+description         Simple build tool (sbt) is designed to simplify building Scala projects.
+
+long_description    Simple build tool (sbt) is provides unintrusive and easy to set up for simple \
+                    Scala projects. All configuration, customization, and extension are done in Scala. \
+                    Sbt supports continuous compilation and testing with triggered execution in \
+                    mixed Scala/Java projects.
+
+set project_name    simple-build-tool
+homepage            http://code.google.com/p/${project_name}/
+master_sites        googlecode:${project_name}
+distname            ${name}-launch-${version}
+
+checksums           md5     8903fb141037056a497925f3efdb9edf \
+                    sha1    2b7cfadf05b3b26285bb2038145479741268d334 \
+                    rmd160  19c39da679d05b600fde06acf9acf657a7701f93
+
+depends_build       bin:java:kaffe
+
+# Name the wrapper shell script.
+set wrapper         sbt.sh
+
+extract.suffix      .jar
+extract.mkdir       yes
+pre-extract {
+    file copy ${filespath}/${wrapper} ${worksrcpath}
+}
+
+set jarname ${distname}${extract.suffix}
+
+post-patch {
+    reinplace "s|__SBT_LAUNCHER_PATH__|${prefix}/share/${name}/${jarname}|g" ${worksrcpath}/${wrapper}
+}
+
+supported_archs     noarch
+use_configure       no
+build               {}
+
+destroot {
+    set sbtdir ${destroot}${prefix}/share/${name}
+
+    xinstall -m 755 -d ${sbtdir}
+    xinstall -m 644 ${distpath}/${jarname} ${sbtdir}/
+    xinstall -m 755 ${worksrcpath}/${wrapper} ${sbtdir}/${name}
+
+    ln -s ${prefix}/share/${name}/${name} ${destroot}${prefix}/bin
+}


Property changes on: trunk/dports/devel/sbt/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/sbt/files/sbt.sh
===================================================================
--- trunk/dports/devel/sbt/files/sbt.sh	                        (rev 0)
+++ trunk/dports/devel/sbt/files/sbt.sh	2010-07-13 23:38:08 UTC (rev 69713)
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# Copyright (c) 2007-2009 Jon Buffington. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Is the location of the SBT launcher JAR file.
+LAUNCHJAR="__SBT_LAUNCHER_PATH__"
+
+# Capture any arguments
+QUOTED_ARGS=""
+while [ "$1" != "" ] ; do
+	QUOTED_ARGS="$QUOTED_ARGS \"$1\""
+	shift
+done
+
+# Ensure enough heap space is created for SBT.
+if [ -z "$JAVA_OPTS" ]; then
+	JAVA_OPTS="-Xmx512M"
+fi
+
+# Assume java is already in the shell path.
+exec java $JAVA_OPTS -jar "$LAUNCHJAR" $QUOTED_ARGS


Property changes on: trunk/dports/devel/sbt/files/sbt.sh
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100713/1b3562eb/attachment.html>


More information about the macports-changes mailing list