You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-03-31 14:42:53 -07:00
81 lines
2.6 KiB
Tcl
81 lines
2.6 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup java 1.0
|
|
|
|
name spring-boot-cli
|
|
version 4.0.5
|
|
revision 0
|
|
|
|
categories java
|
|
platforms {darwin any}
|
|
maintainers {breun @breun} openmaintainer
|
|
license Apache-2
|
|
supported_archs noarch
|
|
|
|
description Spring Boot CLI -- An opinionated view of building \
|
|
production-ready Spring applications.
|
|
|
|
long_description The Spring Boot CLI is a command line tool that can be used \
|
|
if you want to quickly prototype with Spring. It allows you to \
|
|
run Groovy scripts, which means that you have a familiar \
|
|
Java-like syntax, without much boilerplate code. \
|
|
\
|
|
You don't need to use the CLI to work with Spring Boot but \
|
|
it's definitely the quickest way to get a Spring application \
|
|
off the ground.
|
|
|
|
homepage https://projects.spring.io/spring-boot/
|
|
master_sites https://repo.maven.apache.org/maven2/org/springframework/boot/${name}/${version}/
|
|
|
|
distname ${name}-${version}-bin
|
|
|
|
checksums rmd160 0875839b40b777832a937b8dac59057ebd85737e \
|
|
sha256 7ed664f2e716e7c23c53b7edf5670c708ebee4ea63489033f9e7c3aff655d58c \
|
|
size 7185625
|
|
|
|
worksrcdir spring-${version}
|
|
|
|
use_configure no
|
|
|
|
# See https://docs.spring.io/spring-boot/system-requirements.html
|
|
# Oldest supported Long Term Support version
|
|
java.version 17+
|
|
# Latest supported Long Term Support version
|
|
java.fallback openjdk21
|
|
|
|
build {}
|
|
|
|
test.run yes
|
|
test.cmd bin/spring
|
|
test.target
|
|
test.args --version
|
|
|
|
destroot {
|
|
set target ${destroot}${prefix}/share/java/${name}
|
|
|
|
# Create the target java directory
|
|
xinstall -m 755 -d ${target}
|
|
|
|
# Copy over the needed elements of our directory tree
|
|
foreach d { bin lib } {
|
|
copy ${worksrcpath}/${d} ${target}
|
|
}
|
|
|
|
# Remove extraneous bat files
|
|
foreach f [glob -directory ${target}/bin *.bat] {
|
|
delete ${f}
|
|
}
|
|
|
|
# Add symlink to the script
|
|
ln -s ../share/java/${name}/bin/spring ${destroot}${prefix}/bin
|
|
|
|
# Bash shell completion
|
|
xinstall -d ${destroot}${prefix}/etc/bash_completion.d
|
|
copy ${worksrcpath}/shell-completion/bash/spring ${destroot}${prefix}/etc/bash_completion.d/spring
|
|
|
|
# Zsh shell completion
|
|
xinstall -d ${destroot}${prefix}/share/zsh/site-functions
|
|
copy ${worksrcpath}/shell-completion/zsh/_spring ${destroot}${prefix}/share/zsh/site-functions/_spring
|
|
}
|