1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name spring-boot-cli |
---|
6 | version 1.2.0 |
---|
7 | |
---|
8 | categories java |
---|
9 | platforms darwin |
---|
10 | maintainers breun.nl:nils openmaintainer |
---|
11 | license Apache-2 |
---|
12 | supported_archs noarch |
---|
13 | |
---|
14 | description Spring Boot CLI -- An opinionated view of building \ |
---|
15 | production-ready Spring applications. |
---|
16 | |
---|
17 | long_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 | |
---|
26 | homepage http://projects.spring.io/spring-boot/ |
---|
27 | master_sites http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/${version}.RELEASE/ |
---|
28 | |
---|
29 | distname spring-boot-cli-${version}.RELEASE-bin |
---|
30 | |
---|
31 | checksums rmd160 dc25d8b5773a25d083c287f9f72ec8b8e54386d8 \ |
---|
32 | sha256 ac6563b5f02cb9928c29d543c122af47f307b01faced63feadc66956e9334739 |
---|
33 | |
---|
34 | worksrcdir spring-${version}.RELEASE |
---|
35 | |
---|
36 | use_configure no |
---|
37 | |
---|
38 | build {} |
---|
39 | |
---|
40 | destroot { |
---|
41 | set target ${destroot}${prefix}/share/java/${name} |
---|
42 | |
---|
43 | # Create the target java directory |
---|
44 | xinstall -m 755 -d ${target} |
---|
45 | |
---|
46 | # Copy over the needed elements of our directory tree |
---|
47 | foreach d { bin lib } { |
---|
48 | copy ${worksrcpath}/${d} ${target} |
---|
49 | } |
---|
50 | |
---|
51 | # Remove extraneous bat files |
---|
52 | foreach f [glob -directory ${target}/bin *.bat] { |
---|
53 | delete ${f} |
---|
54 | } |
---|
55 | |
---|
56 | # Add symlink to the script |
---|
57 | ln -s ../share/java/${name}/bin/spring ${destroot}${prefix}/bin |
---|
58 | } |
---|
59 | |
---|
60 | variant bash_completion { |
---|
61 | depends_run-append path:etc/bash_completion:bash-completion |
---|
62 | post-destroot { |
---|
63 | xinstall -d ${destroot}${prefix}/etc/bash_completion.d |
---|
64 | copy ${worksrcpath}/shell-completion/bash/spring \ |
---|
65 | ${destroot}${prefix}/etc/bash_completion.d/spring |
---|
66 | } |
---|
67 | } |
---|