<pre style='margin:0'>
Aaron Madlon-Kay (amake) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/565220d398b5e9cc48f00d36fb2e373fbd753287">https://github.com/macports/macports-ports/commit/565220d398b5e9cc48f00d36fb2e373fbd753287</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 565220d398b swagger-codegen: new port
</span>565220d398b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 565220d398b5e9cc48f00d36fb2e373fbd753287
</span>Author: Aaron Madlon-Kay <amake@macports.org>
AuthorDate: Tue Oct 6 11:15:14 2020 +0900
<span style='display:block; white-space:pre;color:#404040;'> swagger-codegen: new port
</span>---
devel/swagger-codegen/Portfile | 46 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/swagger-codegen/Portfile b/devel/swagger-codegen/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c6e3f110997
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/swagger-codegen/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,46 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup java 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup swagger-api swagger-codegen 3.0.22 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Generates API client libraries (SDK generation), server stubs \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and documentation automatically given an OpenAPI Spec
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://swagger.io/tools/swagger-codegen/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://repo1.maven.org/maven2/io/swagger/codegen/v3/${name}-cli/${version}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles ${name}-cli-${version}.jar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 be547027354fb613c59780c6e4baf5d5a3aedbd2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 70d60f2ee764d3ed409136602d1a753a52c68413c1d4a16c7bd25648600aacc8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 20035104
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.version 1.8+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# don't extract anything
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.only
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set javadir ${prefix}/share/java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${destroot}${javadir}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${distpath}/${distfiles} ${destroot}${javadir}/${name}/${name}-cli.jar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set fp [open ${destroot}${prefix}/bin/${name} w]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts $fp "#!/bin/sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts $fp "exec java -jar ${javadir}/${name}/${name}-cli.jar \"$@\""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close $fp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "chmod +x ${destroot}${prefix}/bin/${name}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>