pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/swagger-codegen Add swagger-codegen, for generat...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cc0d123e2767
branches: trunk
changeset: 390698:cc0d123e2767
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Tue Dec 27 16:16:52 2022 +0000
description:
Add swagger-codegen, for generating clients, server stubs, and docs from
an OpenAPI spec.
swagger-codegen contains a template-driven engine to generate
documentation, API clients and server stubs in different languages by
parsing your OpenAPI / Swagger definition.
diffstat:
devel/swagger-codegen/DESCR | 3 +++
devel/swagger-codegen/Makefile | 28 ++++++++++++++++++++++++++++
devel/swagger-codegen/PLIST | 3 +++
devel/swagger-codegen/distinfo | 5 +++++
4 files changed, 39 insertions(+), 0 deletions(-)
diffs (55 lines):
diff -r 620d163248e5 -r cc0d123e2767 devel/swagger-codegen/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/swagger-codegen/DESCR Tue Dec 27 16:16:52 2022 +0000
@@ -0,0 +1,3 @@
+swagger-codegen contains a template-driven engine to generate
+documentation, API clients and server stubs in different languages by
+parsing your OpenAPI / Swagger definition.
diff -r 620d163248e5 -r cc0d123e2767 devel/swagger-codegen/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/swagger-codegen/Makefile Tue Dec 27 16:16:52 2022 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2022/12/27 16:16:52 schmonz Exp $
+
+DISTNAME= swagger-codegen-cli-3.0.36
+PKGNAME= ${DISTNAME:S/-cli//}
+CATEGORIES= devel
+MASTER_SITES= https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/${PKGVERSION_NOREV}/
+EXTRACT_SUFX= .jar
+
+MAINTAINER= schmonz%NetBSD.org@localhost
+HOMEPAGE= https://swagger.io/tools/swagger-codegen/
+COMMENT= Generate clients, server stubs, and docs from an OpenAPI spec
+LICENSE= apache-2.0
+
+USE_JAVA= run
+USE_JAVA2= 8
+NO_BUILD= yes
+AUTO_MKDIRS= yes
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}.jar \
+ ${DESTDIR}${PREFIX}/share/${PKGBASE}/swagger-codegen-cli.jar
+ ${ECHO} '#!${SH}' > \
+ ${DESTDIR}${PREFIX}/bin/swagger-codegen
+ ${ECHO} 'exec java -jar ${PREFIX}/share/${PKGBASE}/swagger-codegen-cli.jar "$$@"' >> \
+ ${DESTDIR}${PREFIX}/bin/swagger-codegen
+ ${CHMOD} +x ${DESTDIR}${PREFIX}/bin/swagger-codegen
+
+.include "../../mk/bsd.pkg.mk"
diff -r 620d163248e5 -r cc0d123e2767 devel/swagger-codegen/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/swagger-codegen/PLIST Tue Dec 27 16:16:52 2022 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2022/12/27 16:16:52 schmonz Exp $
+bin/swagger-codegen
+share/swagger-codegen/swagger-codegen-cli.jar
diff -r 620d163248e5 -r cc0d123e2767 devel/swagger-codegen/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/swagger-codegen/distinfo Tue Dec 27 16:16:52 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/12/27 16:16:52 schmonz Exp $
+
+BLAKE2s (swagger-codegen-cli-3.0.36.jar) = e831a33a5b551471fabfa3b4bf8cbdd355fb439da55187fce2654737c53e5caa
+SHA512 (swagger-codegen-cli-3.0.36.jar) = be87be4fb581a63dca155b91f56fd19781e5b9d433875842d4b392953154eb87746db75432a56549142738c9d10bfd5ec20c8f139e18da7c045d43395dc0dd29
+Size (swagger-codegen-cli-3.0.36.jar) = 21906448 bytes
Home |
Main Index |
Thread Index |
Old Index