source: trunk/dports/devel/sbt/Portfile @ 148684

Last change on this file since 148684 was 148684, checked in by blair@…, 3 years ago

sbt: fix livecheck.

  • 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 148684 2016-05-15 02:25:12Z blair@macports.org $
3
4PortSystem      1.0
5
6name            sbt
7version         0.13.7
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    http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${version}
23distname        ${name}-launch
24dist_subdir     ${name}/${version}
25
26checksums       md5    7341059aa30c953021d6af41c89d2cac \
27                sha1   b407b2a76ad72165f806ac7e7ea09132b951ef53 \
28                sha256 9673ca4611e6367955ae068d5888f7ae665ab013c3e8435ffe2ca94318c6d607
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.