source: trunk/dports/devel/sbt-0.7/Portfile

Last change on this file was 84994, checked in by landonf@…, 6 years ago

Update sbt to 0.11.0, and create a new port for the legacy sbt-0.7 release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 84994 2011-10-06 23:41:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                sbt-0.7
7version             0.7.7
8categories          devel java
9maintainers         jon.buffington.name:me
10platforms           darwin
11
12description         Simple build tool (sbt) is designed to simplify building Scala projects.
13
14long_description    Simple build tool (sbt) is provides unintrusive and easy to set up for simple \
15                    Scala projects. All configuration, customization, and extension are done in Scala. \
16                    Sbt supports continuous compilation and testing with triggered execution in \
17                    mixed Scala/Java projects.
18
19set project_name    simple-build-tool
20homepage            http://code.google.com/p/${project_name}/
21master_sites        googlecode:${project_name}
22distname            sbt-launch-${version}
23
24checksums           sha1    6b5ba879e80a0464c9eaae786bef494e448e6df7 \
25                    rmd160  0b5257cc9a746036d6dbc18bc00014191421ecb7
26
27depends_build       bin:java:kaffe
28
29# Name the wrapper shell script.
30set wrapper         sbt.sh
31
32extract.suffix      .jar
33extract.mkdir       yes
34extract.only
35pre-extract {
36    file copy ${filespath}/${wrapper} ${worksrcpath}
37}
38
39set jarname ${distname}${extract.suffix}
40
41post-patch {
42    reinplace "s|__SBT_LAUNCHER_PATH__|${prefix}/share/${name}/${jarname}|g" ${worksrcpath}/${wrapper}
43}
44
45supported_archs     noarch
46use_configure       no
47build               {}
48
49destroot {
50    set sbtdir ${destroot}${prefix}/share/${name}
51
52    xinstall -m 755 -d ${sbtdir}
53    xinstall -m 644 ${distpath}/${jarname} ${sbtdir}/
54    xinstall -m 755 ${worksrcpath}/${wrapper} ${sbtdir}/${name}
55
56    ln -s ${prefix}/share/${name}/${name} ${destroot}${prefix}/bin
57}
Note: See TracBrowser for help on using the repository browser.