pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/swagger-codegen



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Tue Dec 27 16:16:52 UTC 2022

Added Files:
        pkgsrc/devel/swagger-codegen: DESCR Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/swagger-codegen/DESCR \
    pkgsrc/devel/swagger-codegen/Makefile pkgsrc/devel/swagger-codegen/PLIST \
    pkgsrc/devel/swagger-codegen/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/swagger-codegen/DESCR
diff -u /dev/null pkgsrc/devel/swagger-codegen/DESCR:1.1
--- /dev/null   Tue Dec 27 16:16:52 2022
+++ pkgsrc/devel/swagger-codegen/DESCR  Tue Dec 27 16:16:52 2022
@@ -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.
Index: pkgsrc/devel/swagger-codegen/Makefile
diff -u /dev/null pkgsrc/devel/swagger-codegen/Makefile:1.1
--- /dev/null   Tue Dec 27 16:16:52 2022
+++ pkgsrc/devel/swagger-codegen/Makefile       Tue Dec 27 16:16:52 2022
@@ -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"
Index: pkgsrc/devel/swagger-codegen/PLIST
diff -u /dev/null pkgsrc/devel/swagger-codegen/PLIST:1.1
--- /dev/null   Tue Dec 27 16:16:52 2022
+++ pkgsrc/devel/swagger-codegen/PLIST  Tue Dec 27 16:16:52 2022
@@ -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
Index: pkgsrc/devel/swagger-codegen/distinfo
diff -u /dev/null pkgsrc/devel/swagger-codegen/distinfo:1.1
--- /dev/null   Tue Dec 27 16:16:52 2022
+++ pkgsrc/devel/swagger-codegen/distinfo       Tue Dec 27 16:16:52 2022
@@ -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