Skip to content
Permalink
Browse files

micronaut: update to 2.0.0 (#7556)

  • Loading branch information
breun committed Jun 27, 2020
1 parent 91f1537 commit b729a621cc3c140c5c77b22871abd2fbe24a9bbd
Showing with 23 additions and 32 deletions.
  1. +23 −32 java/micronaut/Portfile
@@ -4,31 +4,40 @@ PortSystem 1.0
PortGroup github 1.0
PortGroup java 1.0

github.setup micronaut-projects micronaut-core 1.3.6 v
github.setup micronaut-projects micronaut-starter 2.0.0 v
revision 0
name micronaut
categories java
platforms darwin
maintainers {breun.nl:nils @breun} openmaintainer
license Apache-2
supported_archs noarch
supported_archs x86_64

description Micronaut is a modern, JVM-based, full stack microservices framework designed \
for building modular, easily testable microservice applications.
description Micronaut is a modern, JVM-based, full-stack framework \
for building modular, easily testable microservice and serverless applications.

long_description Micronaut is developed by the creators of the Grails framework and takes \
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. \
\n\
\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\
\nMicronaut aims to provide all the tools necessary to build microservice \
applications including: \
\n\
\n* Dependency Injection and Inversion of Control (IoC) \
\n* Aspect Oriented Programming (AOP) \
\n* Sensible Defaults and Auto-Configuration \
\n* Configuration and Configuration Sharing \
\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 \
\n* HTTP Client with Client-Side Load Balancing \
\n* Client-Side Load Balancing \
\n\
\nAt the same time Micronaut aims to avoid the downsides of frameworks like Spring, \
Spring Boot and Grails by providing: \
@@ -37,22 +46,20 @@ long_description Micronaut is developed by the creators of the Grails framework
\n* Reduced memory footprint \
\n* Minimal use of reflection \
\n* Minimal use of proxies \
\n* No runtime bytecode generation \
\n* Easy Unit Testing

homepage https://micronaut.io
github.tarball_from releases
distname ${name}-${version}
distname mn-darwin-amd64-v${version}

checksums rmd160 384399ef6b781ffe9289de7ff5abfbe35ffc3219 \
sha256 271a5af14f87e78ec8c72cfd09d04c50c96826532a5496bd9651a2775815693f \
size 13043100
checksums rmd160 1e680a8a4d772308b2e39ac3a08ae07414dd8292 \
sha256 f4f92702b1e41d476b451bc7bfcac19b2e4b3b33e87dff6bdc76974934a51d2c \
size 13047667

use_zip yes
use_configure no

java.version 1.8+
java.fallback openjdk8

build {}

destroot {
@@ -62,26 +69,10 @@ destroot {
xinstall -m 755 -d ${target}

# Copy over the needed elements of our directory tree
foreach d { LICENSE bin media } {
foreach d { LICENSE bin } {
copy ${worksrcpath}/${d} ${target}
}

# Copy over the CLI jar
xinstall -m 644 {*}[glob -directory ${worksrcpath} cli-*.jar] ${target}

# Remove extraneous bat files
foreach f [glob -directory ${target}/bin *.bat] {
delete ${f}
}

# Put Bash completion file in expected location
xinstall -d ${destroot}${prefix}/etc/bash_completion.d
copy ${worksrcpath}/bin/mn_completion \
${destroot}${prefix}/etc/bash_completion.d/mn_completion

# Remove completion file from bin directory
delete ${target}/bin/mn_completion

# Add symlink to the script
# Add symlink to the binary
ln -s ../share/java/${name}/bin/mn ${destroot}${prefix}/bin
}

0 comments on commit b729a62

Please sign in to comment.
You can’t perform that action at this time.