Ticket #46127: Portfile.2

File Portfile.2, 2.1 KB (added by breun (Nils Breunese), 10 years ago)

Portfile updated for Spring Boot CLI 1.2.0

Line 
1# $Id$
2
3PortSystem 1.0
4
5name            spring-boot-cli
6version         1.2.0
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
30
31checksums       rmd160  dc25d8b5773a25d083c287f9f72ec8b8e54386d8 \
32                sha256  ac6563b5f02cb9928c29d543c122af47f307b01faced63feadc66956e9334739
33
34worksrcdir      spring-${version}.RELEASE
35
36use_configure   no
37
38build {}
39
40destroot {
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
60variant 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}