git: 14444905f664 - main - devel/app-builder-devel: add port: Generic helper tool to build app in a distributable format (development version)

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Mon, 07 Oct 2024 21:23:25 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=14444905f664d14e993dcfe262bcbddfc02a08f5

commit 14444905f664d14e993dcfe262bcbddfc02a08f5
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2024-10-07 21:19:08 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2024-10-07 21:23:16 +0000

    devel/app-builder-devel: add port: Generic helper tool to build app in a distributable format (development version)
    
    Generic helper tool to build app in a distributable formats. Used by
    electron-builder but applicable not only for building Electron
    applications.
    
    WWW: https://github.com/develar/app-builder
---
 devel/Makefile                               |  1 +
 devel/app-builder-devel/Makefile             | 88 +++++++++++++++++++++++++
 devel/app-builder-devel/distinfo             | 97 ++++++++++++++++++++++++++++
 devel/app-builder-devel/files/patch-Makefile | 13 ++++
 devel/app-builder-devel/pkg-descr            |  3 +
 5 files changed, 202 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index f45594739661..96bdbd729db7 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -195,6 +195,7 @@
     SUBDIR += api-sanity-autotest
     SUBDIR += apitrace
     SUBDIR += app-builder
+    SUBDIR += app-builder-devel
     SUBDIR += appstream
     SUBDIR += appstream-compose
     SUBDIR += appstream-glib
diff --git a/devel/app-builder-devel/Makefile b/devel/app-builder-devel/Makefile
new file mode 100644
index 000000000000..c8ef8d2327f1
--- /dev/null
+++ b/devel/app-builder-devel/Makefile
@@ -0,0 +1,88 @@
+PORTNAME=	app-builder
+DISTVERSIONPREFIX=	v
+DISTVERSION=	5.0.0-alpha.10
+CATEGORIES=	devel
+PKGNAMESUFFIX=	-devel
+
+MAINTAINER=	tagattie@FreeBSD.org
+COMMENT=	Generic helper tool to build app in a distributable format (development version)
+WWW=		https://github.com/develar/app-builder
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	go-bindata:devel/go-bindata
+RUN_DEPENDS=	opj_decompress:graphics/openjpeg
+
+USES=		gmake go:modules
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	develar
+GH_TUPLE=	\
+		aclements:go-rabin:d0b643ea1a4c:aclements_go_rabin/vendor/github.com/aclements/go-rabin \
+		alecthomas:kingpin:v2.2.6:alecthomas_kingpin/vendor/github.com/alecthomas/kingpin \
+		alecthomas:template:fb15b899a751:alecthomas_template/vendor/github.com/alecthomas/template \
+		alecthomas:units:b94a6e3cc137:alecthomas_units/vendor/github.com/alecthomas/units \
+		alessio:shellescape:52074bc9df61:alessio_shellescape_1/vendor/gopkg.in/alessio/shellescape.v1 \
+		alessio:shellescape:b115ca0f9053:alessio_shellescape/vendor/github.com/alessio/shellescape \
+		aws:aws-sdk-go:v1.45.7:aws_aws_sdk_go/vendor/github.com/aws/aws-sdk-go \
+		biessek:golang-ico:d348d9ea4670:biessek_golang_ico/vendor/github.com/biessek/golang-ico \
+		bmizerany:assert:b7ed37b82869:bmizerany_assert/vendor/github.com/bmizerany/assert \
+		develar:errors:v0.9.0:develar_errors/vendor/github.com/develar/errors \
+		develar:go-fs-util:69a2d4542206:develar_go_fs_util/vendor/github.com/develar/go-fs-util \
+		develar:go-pkcs12:54baa4f32c6a:develar_go_pkcs12/vendor/github.com/develar/go-pkcs12 \
+		disintegration:imaging:v1.6.2:disintegration_imaging/vendor/github.com/disintegration/imaging \
+		dustin:go-humanize:v1.0.1:dustin_go_humanize/vendor/github.com/dustin/go-humanize \
+		fsnotify:fsnotify:v1.4.7:fsnotify_fsnotify/vendor/gopkg.in/fsnotify.v1 \
+		go-tomb:tomb:dd632973f1e7:go_tomb_tomb/vendor/gopkg.in/tomb.v1 \
+		go-yaml:yaml:v2.2.8:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
+		golang:exp:bbda1eaf7a17:golang_exp/vendor/golang.org/x/exp \
+		golang:image:v0.12.0:golang_image/vendor/golang.org/x/image \
+		golang:net:v0.6.0:golang_net/vendor/golang.org/x/net \
+		golang:protobuf:v1.3.2:golang_protobuf/vendor/github.com/golang/protobuf \
+		golang:sys:v0.12.0:golang_sys/vendor/golang.org/x/sys \
+		golang:text:v0.13.0:golang_text/vendor/golang.org/x/text \
+		hpcloud:tail:v1.0.0:hpcloud_tail/vendor/github.com/hpcloud/tail \
+		jmespath:go-jmespath:v0.4.0:jmespath_go_jmespath/vendor/github.com/jmespath/go-jmespath \
+		json-iterator:go:v1.1.12:json_iterator_go/vendor/github.com/json-iterator/go \
+		jsummers:gobmp:a9de23ed2e25:jsummers_gobmp/vendor/github.com/jsummers/gobmp \
+		kr:pretty:v0.3.1:kr_pretty/vendor/github.com/kr/pretty \
+		mattn:go-colorable:v0.1.13:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
+		mattn:go-isatty:v0.0.19:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
+		mcuadros:go-version:035f6764e8d2:mcuadros_go_version/vendor/github.com/mcuadros/go-version \
+		minio:blake2b-simd:3f5f724cb5b1:minio_blake2b_simd/vendor/github.com/minio/blake2b-simd \
+		mitchellh:go-homedir:v1.1.0:mitchellh_go_homedir/vendor/github.com/mitchellh/go-homedir \
+		modern-go:concurrent:bacd9c7ef1dd:modern_go_concurrent/vendor/github.com/modern-go/concurrent \
+		modern-go:reflect2:v1.0.2:modern_go_reflect2/vendor/github.com/modern-go/reflect2 \
+		onsi:ginkgo:v1.8.0:onsi_ginkgo/vendor/github.com/onsi/ginkgo \
+		onsi:gomega:v1.5.0:onsi_gomega/vendor/github.com/onsi/gomega \
+		oxtoacart:bpool:03653db5a59c:oxtoacart_bpool/vendor/github.com/oxtoacart/bpool \
+		phayes:permbits:39d7c581d2ee:phayes_permbits/vendor/github.com/phayes/permbits \
+		pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
+		pkg:xattr:v0.4.9:pkg_xattr/vendor/github.com/pkg/xattr \
+		samber:lo:v1.38.1:samber_lo/vendor/github.com/samber/lo \
+		segmentio:ksuid:v1.0.4:segmentio_ksuid/vendor/github.com/segmentio/ksuid \
+		uber-go:multierr:v1.11.0:uber_go_multierr/vendor/go.uber.org/multierr \
+		uber-go:zap:v1.25.0:uber_go_zap/vendor/go.uber.org/zap \
+		zieckey:goini:0da17d361d26:zieckey_goini/vendor/github.com/zieckey/goini
+
+USE_GITLAB=	nodefault
+GL_TUPLE=	https://gitlab.howett.net:go:plist:607711222ff2484a487cdec33866b965f4a89653:go_plist/vendor/howett.net/plist
+
+GO_BUILDFLAGS+=	-ldflags="-s -w"
+
+CONFLICTS_INSTALL=	${PORTNAME}
+
+PLIST_FILES=	bin/${PORTNAME}
+PORTDOCS=	CHANGELOG.md readme.md
+
+OPTIONS_DEFINE=	DOCS
+
+pre-build:
+	cd ${WRKSRC} && ${MAKE_CMD} assets
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/devel/app-builder-devel/distinfo b/devel/app-builder-devel/distinfo
new file mode 100644
index 000000000000..b601a23cdf0c
--- /dev/null
+++ b/devel/app-builder-devel/distinfo
@@ -0,0 +1,97 @@
+TIMESTAMP = 1728303835
+SHA256 (develar-app-builder-v5.0.0-alpha.10_GH0.tar.gz) = d6a21007ea5d12f14008ea2d00cc55ad2e80962587282667a11b1db33b05b640
+SIZE (develar-app-builder-v5.0.0-alpha.10_GH0.tar.gz) = 798872
+SHA256 (aclements-go-rabin-d0b643ea1a4c_GH0.tar.gz) = cb8bc66e64788ffd4acf9408aba12d19fb8c51fa428423d83780744cf34ea986
+SIZE (aclements-go-rabin-d0b643ea1a4c_GH0.tar.gz) = 11481
+SHA256 (alecthomas-kingpin-v2.2.6_GH0.tar.gz) = 4624eae43489de8a71ea60efaf6744c581b6bd62909f7514c484c1ea0efaba5a
+SIZE (alecthomas-kingpin-v2.2.6_GH0.tar.gz) = 44383
+SHA256 (alecthomas-template-fb15b899a751_GH0.tar.gz) = 2e2a44375eca48ce941182504b5d13aa98182b9a3f64ace33bfda52208bd0f5e
+SIZE (alecthomas-template-fb15b899a751_GH0.tar.gz) = 55339
+SHA256 (alecthomas-units-b94a6e3cc137_GH0.tar.gz) = 85363142a53436bea696d297e5b5fcda6bc6a8104b1d7ba0db88ffee455b72e2
+SIZE (alecthomas-units-b94a6e3cc137_GH0.tar.gz) = 6012
+SHA256 (alessio-shellescape-52074bc9df61_GH0.tar.gz) = b90692348c781595727df18c086b85b5f6a9000797992e43a28d556b2af377a0
+SIZE (alessio-shellescape-52074bc9df61_GH0.tar.gz) = 2965
+SHA256 (alessio-shellescape-b115ca0f9053_GH0.tar.gz) = a1de2f37a825dbf4350c72828400ca1e4df3545be1e75abfae19d9e0f5fc5ba8
+SIZE (alessio-shellescape-b115ca0f9053_GH0.tar.gz) = 3068
+SHA256 (aws-aws-sdk-go-v1.45.7_GH0.tar.gz) = 9e0a273ef4983489ae6ddc408199599245ab4130c84442a01e32ce877c7ba2be
+SIZE (aws-aws-sdk-go-v1.45.7_GH0.tar.gz) = 29456152
+SHA256 (biessek-golang-ico-d348d9ea4670_GH0.tar.gz) = c7abb45f3ffee96c91cc9cc9266f54282312fe6080e4de2568ca9b5facd1c743
+SIZE (biessek-golang-ico-d348d9ea4670_GH0.tar.gz) = 163907
+SHA256 (bmizerany-assert-b7ed37b82869_GH0.tar.gz) = f7dc11f10c5e52a94c836e15e7aff05ad4afba7436f66e5f4506806627c4635e
+SIZE (bmizerany-assert-b7ed37b82869_GH0.tar.gz) = 1469
+SHA256 (develar-errors-v0.9.0_GH0.tar.gz) = 61db48276906e16c956f854aa48221faeabfc2871e129f0dfcc053d147b16c4e
+SIZE (develar-errors-v0.9.0_GH0.tar.gz) = 12407
+SHA256 (develar-go-fs-util-69a2d4542206_GH0.tar.gz) = 78416147911629cf01bc7c849edd1feef295ff4005188d8759e3ce36e640d980
+SIZE (develar-go-fs-util-69a2d4542206_GH0.tar.gz) = 2440
+SHA256 (develar-go-pkcs12-54baa4f32c6a_GH0.tar.gz) = 3ffe78b5da5d18e6060dae7e185c5754b36e88f64c487196f5ad24ae3c5ba5f8
+SIZE (develar-go-pkcs12-54baa4f32c6a_GH0.tar.gz) = 21605
+SHA256 (disintegration-imaging-v1.6.2_GH0.tar.gz) = ddc0cbbf306630d39ee710ff055bb9503d30598485f76f51564ee3ae13d6611a
+SIZE (disintegration-imaging-v1.6.2_GH0.tar.gz) = 2212334
+SHA256 (dustin-go-humanize-v1.0.1_GH0.tar.gz) = ac3a0d8d0eef07c75d12eddce775a8e8306dfb9783a45312597c34ff643793d8
+SIZE (dustin-go-humanize-v1.0.1_GH0.tar.gz) = 17692
+SHA256 (fsnotify-fsnotify-v1.4.7_GH0.tar.gz) = b7530d973d0ab0e58ad8ce1b9a4b963d6f57b3d72f2f9e13d49846976361b1cd
+SIZE (fsnotify-fsnotify-v1.4.7_GH0.tar.gz) = 31139
+SHA256 (go-tomb-tomb-dd632973f1e7_GH0.tar.gz) = b67f4ee9324a78176bc3196fe262388696aeb3f31d9879d498200219f9c4c554
+SIZE (go-tomb-tomb-dd632973f1e7_GH0.tar.gz) = 3631
+SHA256 (go-yaml-yaml-v2.2.8_GH0.tar.gz) = 9632d0760e9a07c414f2b2b6cd453d6225e42ecea77906883b23f1f1d0546045
+SIZE (go-yaml-yaml-v2.2.8_GH0.tar.gz) = 72732
+SHA256 (golang-exp-bbda1eaf7a17_GH0.tar.gz) = 4675dfbd555a068c9332e0c0d45e6d23d4b57f485f80ed9ced7ba2583ca8f7e8
+SIZE (golang-exp-bbda1eaf7a17_GH0.tar.gz) = 1722054
+SHA256 (golang-image-v0.12.0_GH0.tar.gz) = e6f032f6f1372ba9b40a64ace4b4e1338acb1421d205cec505129eaf0fd86093
+SIZE (golang-image-v0.12.0_GH0.tar.gz) = 5091228
+SHA256 (golang-net-v0.6.0_GH0.tar.gz) = 0e6770352c835bd233f00dcd3b7081b4f8e935a8a66253c96271b634a2496d88
+SIZE (golang-net-v0.6.0_GH0.tar.gz) = 1238371
+SHA256 (golang-protobuf-v1.3.2_GH0.tar.gz) = c9cda622857a17cf0877c5ba76688a931883e505f40744c9495638b6e3da1f65
+SIZE (golang-protobuf-v1.3.2_GH0.tar.gz) = 312285
+SHA256 (golang-sys-v0.12.0_GH0.tar.gz) = 652b0b7847e45f496188c19ab43c85e49cc4229c1f2a71009213dd9cd9ec4e2e
+SIZE (golang-sys-v0.12.0_GH0.tar.gz) = 1446673
+SHA256 (golang-text-v0.13.0_GH0.tar.gz) = c6e22ff8280188539ba0a6c65cbc80cda877adcf5332651fa78044018c05d6af
+SIZE (golang-text-v0.13.0_GH0.tar.gz) = 8967009
+SHA256 (hpcloud-tail-v1.0.0_GH0.tar.gz) = 3aa982c4a779b1c1dc5723bbf2345eed1dd46cd5bcc490e69de4beab8f5d4b02
+SIZE (hpcloud-tail-v1.0.0_GH0.tar.gz) = 37816
+SHA256 (jmespath-go-jmespath-v0.4.0_GH0.tar.gz) = aa86d00b6836345eee196c13df2df084a18e0b1159935de9289f2ef6a7fe375d
+SIZE (jmespath-go-jmespath-v0.4.0_GH0.tar.gz) = 128861
+SHA256 (json-iterator-go-v1.1.12_GH0.tar.gz) = ff70e539fd919da757a2f3a530a053e7577cb4d7e2824fc1058d3abbefbb523e
+SIZE (json-iterator-go-v1.1.12_GH0.tar.gz) = 84307
+SHA256 (jsummers-gobmp-a9de23ed2e25_GH0.tar.gz) = d8c7d03ff243962c6d38e7d8a4566d614ba2be2be0d197934cd15ae609837c8e
+SIZE (jsummers-gobmp-a9de23ed2e25_GH0.tar.gz) = 31401
+SHA256 (kr-pretty-v0.3.1_GH0.tar.gz) = e6fa7db2708320e66a1645bf6b234e524e73f4163ca0519b8608616e48f5d206
+SIZE (kr-pretty-v0.3.1_GH0.tar.gz) = 10227
+SHA256 (mattn-go-colorable-v0.1.13_GH0.tar.gz) = c3b62c76d365906bba9aa9d9ec048fd33a2a5742299d6482a08e7466d4c52d77
+SIZE (mattn-go-colorable-v0.1.13_GH0.tar.gz) = 9762
+SHA256 (mattn-go-isatty-v0.0.19_GH0.tar.gz) = 67b1614d495030982d276b211f3ba2a155fad61919ba96e34db8e67ed28660e4
+SIZE (mattn-go-isatty-v0.0.19_GH0.tar.gz) = 4679
+SHA256 (mcuadros-go-version-035f6764e8d2_GH0.tar.gz) = 45e9d229ff4e707b81aefe366ce9728ed1f4ef391092317606d64d6b692c0a2c
+SIZE (mcuadros-go-version-035f6764e8d2_GH0.tar.gz) = 13381
+SHA256 (minio-blake2b-simd-3f5f724cb5b1_GH0.tar.gz) = 615fb58e96e1814b2df621a86dae7d271de47b6192608e85f11f55b830460d01
+SIZE (minio-blake2b-simd-3f5f724cb5b1_GH0.tar.gz) = 69929
+SHA256 (mitchellh-go-homedir-v1.1.0_GH0.tar.gz) = 646671c73a84a8dfb4a5a76b80c7b63549ffefa906524d45077301bc7da76600
+SIZE (mitchellh-go-homedir-v1.1.0_GH0.tar.gz) = 3362
+SHA256 (modern-go-concurrent-bacd9c7ef1dd_GH0.tar.gz) = d673e902118a6ece63198dc7e0961e904d0410f142726df0936ec1a52035a60f
+SIZE (modern-go-concurrent-bacd9c7ef1dd_GH0.tar.gz) = 7526
+SHA256 (modern-go-reflect2-v1.0.2_GH0.tar.gz) = eab313f24c09d512f004d489aeed0d0a485f789abd07e7df411375035174341b
+SIZE (modern-go-reflect2-v1.0.2_GH0.tar.gz) = 14030
+SHA256 (onsi-ginkgo-v1.8.0_GH0.tar.gz) = 7766de932101d24078d3991a5ee3756b9818ce46ec2d27476b3141e34a10784f
+SIZE (onsi-ginkgo-v1.8.0_GH0.tar.gz) = 133392
+SHA256 (onsi-gomega-v1.5.0_GH0.tar.gz) = 0917640bfe840dee0ccad8aea0f5b05da2195864981e749f8840db257a95144b
+SIZE (onsi-gomega-v1.5.0_GH0.tar.gz) = 88642
+SHA256 (oxtoacart-bpool-03653db5a59c_GH0.tar.gz) = b5898969c50f5677fa8ea955bd7a06b77083b56ae76607f49ae1aed0abd61b41
+SIZE (oxtoacart-bpool-03653db5a59c_GH0.tar.gz) = 8478
+SHA256 (phayes-permbits-39d7c581d2ee_GH0.tar.gz) = d845eb4ab9b22a342cd3965209f52f8ebd55211b3789b574b1792448659a446f
+SIZE (phayes-permbits-39d7c581d2ee_GH0.tar.gz) = 4757
+SHA256 (pkg-errors-v0.9.1_GH0.tar.gz) = 56bfd893023daa498508bfe161de1be83299fcf15376035e7df79cbd7d6fa608
+SIZE (pkg-errors-v0.9.1_GH0.tar.gz) = 13415
+SHA256 (pkg-xattr-v0.4.9_GH0.tar.gz) = 98c59d10d2397307b2124d23db98626135a845a4e664b0a90eb55692f30c07dc
+SIZE (pkg-xattr-v0.4.9_GH0.tar.gz) = 9633
+SHA256 (samber-lo-v1.38.1_GH0.tar.gz) = 9ab13f475acdc640566bfe11f85d76e27c61c66a98ba5f19bb5a615be0397da7
+SIZE (samber-lo-v1.38.1_GH0.tar.gz) = 39891
+SHA256 (segmentio-ksuid-v1.0.4_GH0.tar.gz) = b8cec5b4e99f84249b34d8932f866b7abe47eb5fa7ef7b2f15e0a3ab3d62b8f6
+SIZE (segmentio-ksuid-v1.0.4_GH0.tar.gz) = 19056
+SHA256 (uber-go-multierr-v1.11.0_GH0.tar.gz) = 8aa599cf7de733306cf8770f854f8a38e6c819b1ae4296f15e44b1e7c6698f34
+SIZE (uber-go-multierr-v1.11.0_GH0.tar.gz) = 16900
+SHA256 (uber-go-zap-v1.25.0_GH0.tar.gz) = 507565fcc520e4105f8e3d13d7b49e9ea0c5cccd441ca66cc6211e19c3e35708
+SIZE (uber-go-zap-v1.25.0_GH0.tar.gz) = 175058
+SHA256 (zieckey-goini-0da17d361d26_GH0.tar.gz) = 1b6c6542296e2ae9d193b95279e61fc971c56f5a61013fdf7e7f2e0c2fa4b935
+SIZE (zieckey-goini-0da17d361d26_GH0.tar.gz) = 9393
+SHA256 (go-plist-607711222ff2484a487cdec33866b965f4a89653_GL0.tar.gz) = bed858b66a1d3b8e02de1239a4214f041738dce6b40fdf16ad9aa22d1a5bd2d5
+SIZE (go-plist-607711222ff2484a487cdec33866b965f4a89653_GL0.tar.gz) = 52993
diff --git a/devel/app-builder-devel/files/patch-Makefile b/devel/app-builder-devel/files/patch-Makefile
new file mode 100644
index 000000000000..54faee4f480b
--- /dev/null
+++ b/devel/app-builder-devel/files/patch-Makefile
@@ -0,0 +1,13 @@
+--- Makefile.orig	2024-10-07 12:31:27 UTC
++++ Makefile
+@@ -49,8 +49,8 @@ assets:
+ 	go test -v ./pkg/...
+ 
+ assets:
+-	~/go/bin/go-bindata -o ./pkg/package-format/bindata.go -pkg package_format -prefix ./pkg/package-format ./pkg/package-format/appimage/templates
+-	~/go/bin/go-bindata -o ./pkg/package-format/snap/snapScripts.go -pkg snap -prefix ./pkg/package-format/snap ./pkg/package-format/snap/desktop-scripts
++	go-bindata -o ./pkg/package-format/bindata.go -pkg package_format -prefix ./pkg/package-format ./pkg/package-format/appimage/templates
++	go-bindata -o ./pkg/package-format/snap/snapScripts.go -pkg snap -prefix ./pkg/package-format/snap ./pkg/package-format/snap/desktop-scripts
+ 
+ update-deps:
+ 	go get -u -d
diff --git a/devel/app-builder-devel/pkg-descr b/devel/app-builder-devel/pkg-descr
new file mode 100644
index 000000000000..a2c169526cf5
--- /dev/null
+++ b/devel/app-builder-devel/pkg-descr
@@ -0,0 +1,3 @@
+Generic helper tool to build app in a distributable formats. Used by
+electron-builder but applicable not only for building Electron
+applications.