source: trunk/dports/devel/sbt/Portfile

Last change on this file was 148685, checked in by blair@…, 18 months ago

sbt: new upstream 0.13.11 release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 148685 2016-05-15 02:28:21Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            sbt
7version         0.13.11
8categories      devel java
9license         BSD
10maintainers     blair openmaintainer
11platforms       darwin
12
13description     Simple build tool (sbt) simplifies building Scala projects
14
15long_description \
16    Simple build tool (sbt) is provides unintrusive and easy to set up \
17    for simple Scala projects. All configuration, customization, and \
18    extension are done in Scala.  Sbt supports continuous compilation \
19    and testing with triggered execution in mixed Scala/Java projects.
20
21homepage        http://www.scala-sbt.org/
22master_sites    https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${version}
23distname        ${name}-launch
24dist_subdir     ${name}/${version}
25
26checksums       md5    f6242d8097ac039ed3b32a6f7ba46343 \
27                sha1   7435a957b62743d81ae257c60bce11a641aef2a8 \
28                sha256 c63ade35a7a7aa0d8e3bdc7c2353ce79b045083cfabf6bc6fab88584f6100bc1
29
30depends_build   bin:java:kaffe
31
32# Name the wrapper shell script.
33set wrapper     sbt.sh
34
35extract.suffix  .jar
36extract.mkdir   yes
37extract.only
38pre-extract {
39    file copy ${filespath}/${wrapper} ${worksrcpath}
40}
41
42set jarname ${distname}${extract.suffix}
43
44post-patch {
45    reinplace "s|__SBT_LAUNCHER_PATH__|${prefix}/share/${name}/${jarname}|g" \
46        ${worksrcpath}/${wrapper}
47}
48
49supported_archs noarch
50use_configure   no
51build           {}
52
53destroot {
54    set sbtdir ${destroot}${prefix}/share/${name}
55
56    xinstall -m 755 -d ${sbtdir}
57    xinstall -m 644 ${distpath}/${jarname} ${sbtdir}/
58    xinstall -m 755 ${worksrcpath}/${wrapper} ${sbtdir}/${name}
59
60    ln -s ${prefix}/share/${name}/${name} ${destroot}${prefix}/bin
61}
62
63livecheck.type  regex
64livecheck.url   https://dl.bintray.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/
65livecheck.regex {>([0-9.]+)/<}
Note: See TracBrowser for help on using the repository browser.