<pre style='margin:0'>
David B. Evans (dbevans) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d1145a70c24e1455516a0289cd154e9051a4278b">https://github.com/macports/macports-ports/commit/d1145a70c24e1455516a0289cd154e9051a4278b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d1145a70c24e1455516a0289cd154e9051a4278b
</span>Author: David B. Evans <devans@macports.org>
AuthorDate: Fri Feb 1 14:25:59 2019 -0800
<span style='display:block; white-space:pre;color:#404040;'> p5-clipboard: update to version 0.19
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Patch script clipbrowse to use macOS default browser.
</span>---
perl/p5-clipboard/Portfile | 10 ++++++----
perl/p5-clipboard/files/patch-use-macos-default-browser.diff | 11 +++++++++++
2 files changed, 17 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/perl/p5-clipboard/Portfile b/perl/p5-clipboard/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e100c4c..d6fb622 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/perl/p5-clipboard/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/perl/p5-clipboard/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span> PortGroup perl5 1.0
perl5.branches 5.26 5.28
<span style='display:block; white-space:pre;background:#ffe0e0;'>-perl5.setup Clipboard 0.18 ../../authors/id/S/SH/SHLOMIF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+perl5.setup Clipboard 0.19 ../../authors/id/S/SH/SHLOMIF
</span> license {Artistic-1 GPL}
maintainers nomaintainer
description Clipboard - Copy and paste with any OS
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,9 +12,9 @@ long_description ${description}
</span>
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 6316d378a947d5ed1736f30207fead469de6a005 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 651c09d82d00acf654c11fcc92afa03ce1f7dee769594e4a15155ef6a146290a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 24235
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 ae06bcaf2bf0ce70725c350134f6ab5fdb390522 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 34b9dccac5d559b2b2769e5e315205c8292be2ff9f6e5333112a2377c69abbb3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 24517
</span>
if {${perl5.major} != ""} {
depends_lib-append \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,6 +22,8 @@ if {${perl5.major} != ""} {
</span> port:p${perl5.major}-mac-pasteboard \
port:p${perl5.major}-uri
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-use-macos-default-browser.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> perl5.use_module_build
supported_archs noarch
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/perl/p5-clipboard/files/patch-use-macos-default-browser.diff b/perl/p5-clipboard/files/patch-use-macos-default-browser.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..cc9a38e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/perl/p5-clipboard/files/patch-use-macos-default-browser.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- scripts/clipbrowse.orig 2019-02-01 13:59:14.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ scripts/clipbrowse 2019-02-01 13:59:45.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -4,7 +4,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use strict;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use warnings;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use Clipboard;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-my $browser = $ENV{BROWSER} || 'chromium-browser "%s"';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++my $browser = $ENV{BROWSER} || 'open "%s"';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $browser .= ' %s' unless $browser =~ /%s/;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ my $query = Clipboard->paste;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $query =~ s/['"]/\\$&/;
</span></pre><pre style='margin:0'>
</pre>