Files

98 lines
3.6 KiB
Tcl
Raw Permalink Normal View History

2018-11-13 02:39:56 +01:00
# -*- 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
2019-11-24 22:20:30 +01:00
PortSystem 1.0
PortGroup github 1.0
2018-11-13 02:39:56 +01:00
2026-07-07 22:16:54 +02:00
github.setup micronaut-projects micronaut-starter 5.0.4 v
2019-12-07 20:54:09 +01:00
revision 0
2018-11-13 02:39:56 +01:00
name micronaut
categories java
2022-10-30 00:44:46 +02:00
platforms {darwin any}
maintainers {breun @breun} openmaintainer
2018-11-13 02:39:56 +01:00
license Apache-2
2024-05-04 19:01:50 +02:00
supported_archs x86_64 arm64
2021-05-06 00:26:27 +02:00
universal_variant no
2018-11-13 02:39:56 +01:00
2020-06-27 15:10:22 +02:00
description Micronaut is a modern, JVM-based, full-stack framework \
2024-03-23 14:27:14 +01:00
for building modular, easily testable microservice and \
serverless applications.
2018-11-13 02:39:56 +01:00
2024-03-23 14:27:14 +01:00
long_description Micronaut is a modern, JVM-based, full stack Java framework \
designed for building modular, easily testable JVM \
applications with support for Java, Kotlin and the Groovy \
language. \
2020-06-27 15:10:22 +02:00
\n\
2024-03-23 14:27:14 +01:00
\nMicronaut is developed by the creators of the Grails \
framework and takes inspiration from lessons learnt over the \
years building real-world applications from monoliths to \
microservices using Spring, Spring Boot and Grails. \
\n\
2024-03-23 14:27:14 +01:00
\nMicronaut aims to provide all the tools necessary to build \
microservice applications including: \
\n\
\n* Dependency Injection and Inversion of Control (IoC) \
2020-06-27 15:10:22 +02:00
\n* Aspect Oriented Programming (AOP) \
\n* Sensible Defaults and Auto-Configuration \
2020-06-27 15:10:22 +02:00
\n\
\nWith Micronaut you can build Message-Driven Applications, \
Command Line Applications, HTTP Servers and more whilst for \
Microservices in particular Micronaut also provides: \
\n* Distributed Configuration \
\n* Service Discovery \
\n* HTTP Routing \
2020-06-27 15:10:22 +02:00
\n* Client-Side Load Balancing \
\n\
2024-03-23 14:27:14 +01:00
\nAt the same time Micronaut aims to avoid the downsides of \
frameworks like Spring, Spring Boot and Grails by providing: \
\n\
\n* Fast startup time \
\n* Reduced memory footprint \
\n* Minimal use of reflection \
\n* Minimal use of proxies \
2020-06-27 15:10:22 +02:00
\n* No runtime bytecode generation \
\n* Easy Unit Testing
2018-11-13 02:39:56 +01:00
2019-02-01 23:30:13 +01:00
homepage https://micronaut.io
github.tarball_from releases
2018-11-13 02:39:56 +01:00
2024-05-04 19:01:50 +02:00
if {${configure.build_arch} eq "x86_64"} {
2025-10-05 21:37:37 +02:00
set micronaut_arch amd64
2026-07-07 22:16:54 +02:00
checksums rmd160 f02b755ff6c160e4b6eb22ac5fca6dbe6532502c \
sha256 870ee56c31a92724ba8a205a865f6910feecaea9438391aa4c735abf9707b9f5 \
size 33762076
2024-05-04 19:01:50 +02:00
} elseif {${configure.build_arch} eq "arm64"} {
2025-10-05 21:37:37 +02:00
set micronaut_arch aarch64
2026-07-07 22:16:54 +02:00
checksums rmd160 33ca1b589928f8912cff74beed5e75b6eae738bd \
sha256 10efa570b9cf3168cb91d370eebab345c2f84feb6d978813b118968acbaabcd0 \
size 38826958
2025-10-05 21:37:37 +02:00
} else {
set micronaut_arch unsupported_arch
2024-05-04 19:01:50 +02:00
}
2018-11-13 02:39:56 +01:00
2025-10-05 21:37:37 +02:00
distname mn-darwin-${micronaut_arch}-v${version}
2018-11-13 02:39:56 +01:00
use_zip yes
use_configure no
build {}
2021-05-20 10:36:47 +02:00
test.run yes
test.cmd bin/mn
test.target
test.args --version
2018-11-13 02:39:56 +01:00
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
2020-06-27 15:10:22 +02:00
foreach d { LICENSE bin } {
2018-11-13 02:39:56 +01:00
copy ${worksrcpath}/${d} ${target}
}
2020-06-27 15:10:22 +02:00
# Add symlink to the binary
2018-11-13 02:39:56 +01:00
ln -s ../share/java/${name}/bin/mn ${destroot}${prefix}/bin
}