From af9321358f45171238ac3b075ac0b0b822416841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20=C5=9Eafak?= Date: Thu, 8 Aug 2024 02:06:57 -0400 Subject: [PATCH] glasskube: build from source - update to 0.17.0 - patch Makefile so as not to run lint steps --- devel/glasskube/Portfile | 41 ++++++++++--------- .../files/patch-Makefile-no-lint.diff | 11 +++++ 2 files changed, 33 insertions(+), 19 deletions(-) create mode 100644 devel/glasskube/files/patch-Makefile-no-lint.diff diff --git a/devel/glasskube/Portfile b/devel/glasskube/Portfile index 7f47d67126560..dd3a567313860 100644 --- a/devel/glasskube/Portfile +++ b/devel/glasskube/Portfile @@ -1,35 +1,38 @@ # -*- 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 PortSystem 1.0 -PortGroup github 1.0 +PortGroup golang 1.0 -github.setup glasskube glasskube 0.16.0 v -github.tarball_from releases -distfiles glasskube_v${version}_darwin_${build_arch}.tar.gz +go.setup github.com/glasskube/glasskube 0.17.0 v +go.offline_build no +github.tarball_from archive revision 0 + +homepage https://glasskube.dev/ + categories devel -maintainers openmaintainer {esafak @esafak} +installs_libs no +maintainers {esafak @esafak} openmaintainer description Missing Package Manager for Kubernetes long_description Deploy, configure and update Kubernetes packages 20x faster than with Helm license Apache-2 -homepage https://glasskube.dev/ -if {${build_arch} eq "arm64"} { - checksums rmd160 e34a610be50e08e1a4904f7bc3291c5bb9e4f246 \ - sha256 214ee81b2283b08b29f6f3e38d6d081532169b22bbc3a6711debb1672cd42875 \ - size 14258333 -} else { - checksums rmd160 fe7963c7018a659a3789ba5d930f547ba2dbdf25 \ - sha256 62ab41000053c899b63a9262af1f1993b86660d3b3829b6d53c808afe3879638 \ - size 15291420 -} +checksums rmd160 a819a93e85d8bf62da2eab6d47d5956a9ffc2544 \ + sha256 11ec36c58c321d0cf8b9c137cc26e8020a938548f40795160a76a18bcde25a7b \ + size 785206 + +patchfiles-append patch-Makefile-no-lint.diff + +depends_build-append \ + bin:npm:npm10 + +build.cmd make +build.target build-cli -supported_archs x86_64 arm64 -use_configure no -build {} +use_parallel_build no destroot { - xinstall -m 755 ${workpath}/glasskube ${destroot}${prefix}/bin/glasskube + xinstall -m 0755 ${worksrcpath}/dist/${name} ${destroot}${prefix}/bin/ # generate and install the completion scripts file mkdir ${destroot}${prefix}/share/bash-completion/completions diff --git a/devel/glasskube/files/patch-Makefile-no-lint.diff b/devel/glasskube/files/patch-Makefile-no-lint.diff new file mode 100644 index 0000000000000..d00e8217552fe --- /dev/null +++ b/devel/glasskube/files/patch-Makefile-no-lint.diff @@ -0,0 +1,11 @@ +--- ./Makefile 2024-08-26 01:59:52 ++++ ./Makefile 2024-08-26 02:00:12 +@@ -111,7 +111,7 @@ + $(GOCMD) build -o $(OUT_DIR)/cert-manager ./cmd/cert-manager/ + + .PHONY: build-cli +-build-cli: fmt lint-go lint-web web ## Build cli binary. ++build-cli: fmt web ## Build cli binary. + $(GOCMD) build -o $(OUT_DIR)/glasskube ./cmd/glasskube/ + + .PHONY: run