<pre style='margin:0'>
Craig Treleaven (ctreleaven) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5a326dece832e06b39a433758bbf77868fdfdb97">https://github.com/macports/macports-ports/commit/5a326dece832e06b39a433758bbf77868fdfdb97</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 5a326de shared-mime-info: mpkg/mdmg packaging, add postinstall script to initialize/update database. Fixes #53351
</span>5a326de is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5a326dece832e06b39a433758bbf77868fdfdb97
</span>Author: Craig Treleaven <ctreleaven@macports.org>
AuthorDate: Thu Jan 19 13:34:57 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> shared-mime-info: mpkg/mdmg packaging, add postinstall script to initialize/update database. Fixes #53351
</span>---
devel/shared-mime-info/Portfile | 6 ++++++
devel/shared-mime-info/files/postinstall | 6 ++++++
2 files changed, 12 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/shared-mime-info/Portfile b/devel/shared-mime-info/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 24121a7..def3836 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/shared-mime-info/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/shared-mime-info/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,5 +58,11 @@ post-activate {
</span> system "env XDG_DATA_DIRS=${prefix}/share ${prefix}/bin/update-mime-database -V ${prefix}/share/mime"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-pkg {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${filespath}/postinstall ${package.scripts}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -locale C "s|@PREFIX@|${prefix}|g" ${package.scripts}/postinstall
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description-append Install prefix: ${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> livecheck.type regex
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/shared-mime-info/files/postinstall b/devel/shared-mime-info/files/postinstall
</span>new file mode 100755
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f23da33
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/shared-mime-info/files/postinstall
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# shared-mime-info installer support, postinstall script
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# runs as root after installer successfully copies payload to destination
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+env XDG_DATA_DIRS=@PREFIX@/share @PREFIX@/bin/update-mime-database -V @PREFIX@/share/mime
</span></pre><pre style='margin:0'>
</pre>