<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/fb132cca502b027029917ec84d409e04806474eb">https://github.com/macports/macports-ports/commit/fb132cca502b027029917ec84d409e04806474eb</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit fb132cca502b027029917ec84d409e04806474eb
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Jun 19 17:52:55 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> Pashua-Binding-Bash: New port, version 0.10.1
</span>---
devel/Pashua-Binding-Bash/Portfile | 46 ++++++++++++++++++++++
.../files/applicationsdir.patch | 15 +++++++
.../Pashua-Binding-Bash/files/path-to-pashua.patch | 13 ++++++
devel/Pashua-Binding-Bash/files/tmpdir.patch | 13 ++++++
4 files changed, 87 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/Pashua-Binding-Bash/Portfile b/devel/Pashua-Binding-Bash/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..7b04c0b798c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/Pashua-Binding-Bash/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,46 @@
</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 github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup BlueM Pashua-Binding-Bash 0.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 af5631821379adaec1927b2bc60bdfd03878d79f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 6e083cd6818e2eb8efcc4fa91cd119fba7b1a14f842b88eba8b0e555a700ce14 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 3682
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms macosx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {ryandesign @ryandesign} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description native macOS dialogs for Bash using Pashua
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${name} is a Bash language binding (glue code) for \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ using Pashua from Bash scripts. Pashua is a macOS \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ application for using native GUI dialog windows in \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ various programming languages.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_run port:Pashua
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles applicationsdir.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path-to-pashua.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tmpdir.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/pashua.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;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {}
</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;'>+ set sharedir ${prefix}/share/${subport}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${sharedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall ${worksrcpath}/example.sh ${destroot}${sharedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -W ${worksrcpath} Readme.md pashua.sh ${destroot}${sharedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/Pashua-Binding-Bash/files/applicationsdir.patch b/devel/Pashua-Binding-Bash/files/applicationsdir.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5f4710d94ee
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/Pashua-Binding-Bash/files/applicationsdir.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Look in the MacPorts Applications dir before system and user Applications dirs.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- pashua.sh.orig 2015-02-23 08:01:43.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ pashua.sh 2020-06-19 15:52:54.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19,8 +19,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ searchpaths[1]="$mypath/Pashua"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ searchpaths[2]="$mypath/$bundlepath"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ searchpaths[3]="./$bundlepath"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- searchpaths[4]="/Applications/$bundlepath"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- searchpaths[5]="$HOME/Applications/$bundlepath"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ searchpaths[4]="@APPLICATIONS_DIR@/$bundlepath"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ searchpaths[5]="/Applications/$bundlepath"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ searchpaths[6]="$HOME/Applications/$bundlepath"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for searchpath in "${searchpaths[@]}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ do
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/Pashua-Binding-Bash/files/path-to-pashua.patch b/devel/Pashua-Binding-Bash/files/path-to-pashua.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..95f03ec23db
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/Pashua-Binding-Bash/files/path-to-pashua.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Find the Pashua library where MacPorts installed it.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- example.sh.orig 2015-02-23 08:01:43.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ example.sh 2020-06-19 17:22:08.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3,7 +3,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Include pashua.sh to be able to use the 2 functions defined in that file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-source "$MYDIR/pashua.sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#source "$MYDIR/pashua.sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++source "$(dirname $(dirname $(which port)))/share/Pashua-Binding-Bash/pashua.sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Define what the dialog should be like
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Take a look at Pashua's Readme file for more info on the syntax
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/Pashua-Binding-Bash/files/tmpdir.patch b/devel/Pashua-Binding-Bash/files/tmpdir.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..022a48142f5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/Pashua-Binding-Bash/files/tmpdir.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Use TMPDIR if it's set instead of /tmp.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/BlueM/Pashua-Binding-Bash/pull/3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- pashua.sh.orig 2015-02-23 08:01:43.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ pashua.sh 2020-06-19 15:52:54.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -41,7 +42,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pashua_run() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Write config file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- local pashua_configfile=`/usr/bin/mktemp /tmp/pashua_XXXXXXXXX`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ local pashua_configfile=`/usr/bin/mktemp "${TMPDIR:-/tmp}"/pashua_XXXXXXXXX`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "$1" > "$pashua_configfile"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ locate_pashua "$2"
</span></pre><pre style='margin:0'>
</pre>