Ticket #46127: Portfile

File Portfile, 2.1 KB (added by breun (Nils Breunese), 10 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name            spring-boot-cli
6version         1.1.9
7
8categories      java
9platforms       darwin
10maintainers     breun.nl:nils openmaintainer
11license         Apache-2
12supported_archs noarch
13
14description     Spring Boot CLI -- An opinionated view of building \
15                production-ready Spring applications.
16
17long_description The Spring Boot CLI is a command line tool that can be used \
18                if you want to quickly prototype with Spring. It allows you to \
19                run Groovy scripts, which means that you have a familiar \
20                Java-like syntax, without much boilerplate code. \
21                \
22                You don't need to use the CLI to work with Spring Boot but \
23                it's definitely the quickest way to get a Spring application \
24                off the ground.
25
26homepage        http://projects.spring.io/spring-boot/
27master_sites    http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/${version}.RELEASE/
28
29distname        spring-boot-cli-${version}.RELEASE-bin
30use_zip         yes
31
32checksums       rmd160  fc8867671f3deff26ed77e36251d797d5b84826f \
33                sha256  0dc1584fb7ef813a7b49ee6d1c70ff6994f128cc14c6b14814896123b2758248
34
35worksrcdir      spring-${version}.RELEASE
36
37use_configure   no
38
39build {}
40
41destroot {
42    set target ${destroot}${prefix}/share/java/${name}
43
44    # Create the target java directory
45    xinstall -m 755 -d ${target}
46
47    # Copy over the needed elements of our directory tree
48    foreach d { bin lib } {
49        copy ${worksrcpath}/${d} ${target}
50    }
51
52    # Remove extraneous bat files
53    foreach f [glob -directory ${target}/bin *.bat] {
54        delete ${f}
55    }
56
57    # Add symlink to the script
58    ln -s ../share/java/${name}/bin/spring ${destroot}${prefix}/bin
59}
60
61variant bash_completion {
62    depends_run-append path:etc/bash_completion:bash-completion
63    post-destroot {
64        xinstall -d ${destroot}${prefix}/etc/bash_completion.d
65        copy ${worksrcpath}/shell-completion/bash/spring \
66             ${destroot}${prefix}/etc/bash_completion.d/spring
67    }
68}