<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/42420a775261d46ec6e6baa9d6247af9f6b23fd2">https://github.com/macports/macports-ports/commit/42420a775261d46ec6e6baa9d6247af9f6b23fd2</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 42420a7 openbrowser: use correct plist depending on OS version
</span>42420a7 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 42420a775261d46ec6e6baa9d6247af9f6b23fd2
</span>Author: Kurt Hindenburg <khindenburg@macports.org>
AuthorDate: Sun Jul 9 21:56:20 2017 -0400
<span style='display:block; white-space:pre;color:#404040;'> openbrowser: use correct plist depending on OS version
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes https://trac.macports.org/ticket/51102
</span><span style='display:block; white-space:pre;color:#404040;'> closes https://trac.macports.org/ticket/53745
</span>---
sysutils/openbrowser/Portfile | 9 ++++++++-
sysutils/openbrowser/files/openbrowser | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/openbrowser/Portfile b/sysutils/openbrowser/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index fa0ff5e..cc28740 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/openbrowser/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/openbrowser/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup perl5 1.0
</span>
name openbrowser
version 1.0.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 7
</span> categories sysutils
platforms macosx
maintainers {ryandesign @ryandesign} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,6 +41,13 @@ configure {
</span>
build {
reinplace "s|/usr/bin/env perl|${prefix}/bin/perl${perl5.major}|g" ${worksrcpath}/${name}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use correct plist file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 15} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|__PLISTFILE__|Library/Preferences/com.apple.LaunchServices.plist|" ${worksrcpath}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|__PLISTFILE__|Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist|" ${worksrcpath}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
destroot {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/openbrowser/files/openbrowser b/sysutils/openbrowser/files/openbrowser
</span><span style='display:block; white-space:pre;color:#808080;'>index e8727b7..153fafa 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/openbrowser/files/openbrowser
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/openbrowser/files/openbrowser
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,7 +15,7 @@
</span> sub GetBrowser {
use Mac::PropertyList qw(parse_plist_file);
my $browser = "com.apple.safari";
<span style='display:block; white-space:pre;background:#ffe0e0;'>- my $plist_file = "$ENV{HOME}/Library/Preferences/com.apple.LaunchServices.plist";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ my $plist_file = "$ENV{HOME}/__PLISTFILE__";
</span> $data = parse_plist_file($plist_file);
if ($data) {
for my $handler ($data->{"LSHandlers"}->value()) {
</pre><pre style='margin:0'>
</pre>