1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name spring-boot-cli |
---|
6 | version 1.1.9 |
---|
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 | use_zip yes |
---|
31 | |
---|
32 | checksums rmd160 fc8867671f3deff26ed77e36251d797d5b84826f \ |
---|
33 | sha256 0dc1584fb7ef813a7b49ee6d1c70ff6994f128cc14c6b14814896123b2758248 |
---|
34 | |
---|
35 | worksrcdir spring-${version}.RELEASE |
---|
36 | |
---|
37 | use_configure no |
---|
38 | |
---|
39 | build {} |
---|
40 | |
---|
41 | destroot { |
---|
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 | |
---|
61 | variant 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 | } |
---|