<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/86e9adb6c34285559614b1c8dfa7deb5ff77b824">https://github.com/macports/macports-ports/commit/86e9adb6c34285559614b1c8dfa7deb5ff77b824</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 86e9adb6c34 browsh: new port
</span>86e9adb6c34 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 86e9adb6c34285559614b1c8dfa7deb5ff77b824
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Sun Nov 22 09:51:03 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> browsh: new port
</span>---
www/browsh/Portfile | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 83 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/browsh/Portfile b/www/browsh/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d0e247ec170
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/browsh/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,83 @@
</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:ft=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 golang 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+go.setup github.com/browsh-org/browsh 1.6.4 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.brow.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description ${name} is a fully-modern text-based browser
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}. It can render anything that a modern \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ browser can: HTML5, CSS3, JS, video and even WebGL.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories www
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL-2.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gmail.com:herby.gillot @herbygillot} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set browsh_ifacer_path ${worksrcpath}/interfacer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set browsh_xpi_file ${name}-${version}-an.fx.xpi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# In addition to Go source, browsh requires a Firefox web extension XPI file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles-append ${browsh_xpi_file}:xpi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites-append https://github.com/browsh-org/browsh/releases/download/v${version}:xpi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Do not attempt to extract the xpi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.only-delete ${browsh_xpi_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Do not restrict Go from downloading dependencies at build time.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-delete GOPROXY=off GO111MODULE=off
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append port:dep \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:go-bindata
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+installs_libs no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.pre_args -o ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args ./interfacer/src/main.go
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${distpath}/${browsh_xpi_file} ${browsh_ifacer_path}/browsh.xpi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set browsh_webext_file ${browsh_ifacer_path}/src/browsh/webextension.go
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Modify the package import for the interfacer's main.go
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|browsh/interfacer|${go.package}/interfacer|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${browsh_ifacer_path}/src/main.go
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Download and ensure Go dependencies
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${browsh_ifacer_path} "GOPATH=${gopath} dep ensure"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Convert the XPI file into an embedded Go binary data file.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "GOPATH=${gopath} XPI_FILE=${browsh_ifacer_path}/browsh.xpi BIN_FILE=${browsh_webext_file} ${browsh_ifacer_path}/contrib/xpi2bin.sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</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 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+If the firewall is enabled in macOS, explicit exceptions may need to be added for:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - ${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - /Applications/Firefox.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Refer to the Firewall section in System Preferences.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums ${distname}${extract.suffix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 89ca7d61a2bf65efa380cf69583d8b37e18d6974 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 bda61190a235d875a0690563cae493fe9f5415dd31ec9927cb5cc7ac880231bf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 711404 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${name}-${version}-an.fx.xpi \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 06c4738cbdc9ec3005768ed81b88d19d2e163398 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 622464
</span></pre><pre style='margin:0'>
</pre>