<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/b89d86424822fb59d8a8867894e1e2a198e63992">https://github.com/macports/macports-ports/commit/b89d86424822fb59d8a8867894e1e2a198e63992</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 b89d8642482 p5-file-mimeinfo: update to version 0.30
</span>b89d8642482 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit b89d86424822fb59d8a8867894e1e2a198e63992
</span>Author: David B. Evans <devans@macports.org>
AuthorDate: Mon Oct 26 16:57:17 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> p5-file-mimeinfo: update to version 0.30
</span>---
perl/p5-file-mimeinfo/Portfile | 16 +++++----
.../files/patch-lib-File-MimeInfo.pm.diff | 42 +++++++++++-----------
2 files changed, 31 insertions(+), 27 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/perl/p5-file-mimeinfo/Portfile b/perl/p5-file-mimeinfo/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0ee3d0f2a8d..1597ec54bb0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/perl/p5-file-mimeinfo/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/perl/p5-file-mimeinfo/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 5.30
<span style='display:block; white-space:pre;background:#ffe0e0;'>-perl5.setup File-MimeInfo 0.29
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+perl5.setup File-MimeInfo 0.30
</span> license {Artistic-1 GPL}
maintainers nomaintainer
description This module can be used to determine the mime type of a file. \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,17 +13,21 @@ long_description ${description}
</span>
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 fa0bc057c31da9a82f59114bca73b75fa4a39ab3 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 f1962779652eae1d5a6e722a5220e3c50465deac52bb8dea47e0fbcfb6c908ea \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 33113
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 0a60c026763f0a6f009b233e1013d4d6799118ea \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 e2c6e4bf90be3b863bfb4efadbcb1b4b029fc74f4e794bd86965aca7ee3ba872 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 36132
</span>
if {${perl5.major} != ""} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:shared-mime-info \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:p${perl5.major}-encode-locale \
</span> port:p${perl5.major}-file-basedir \
port:p${perl5.major}-file-desktopentry
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:shared-mime-info
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> patchfiles patch-lib-File-MimeInfo.pm.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/lib/File/MimeInfo.pm
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/perl/p5-file-mimeinfo/files/patch-lib-File-MimeInfo.pm.diff b/perl/p5-file-mimeinfo/files/patch-lib-File-MimeInfo.pm.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 3e9d6adb7c8..753f4893b0d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/perl/p5-file-mimeinfo/files/patch-lib-File-MimeInfo.pm.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/perl/p5-file-mimeinfo/files/patch-lib-File-MimeInfo.pm.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,22 +1,22 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- lib/File/MimeInfo.pm.orig 2008-02-13 16:38:59.000000000 -0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ lib/File/MimeInfo.pm 2008-10-31 10:52:12.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -144,6 +144,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/File/MimeInfo.pm.orig 2020-10-26 13:02:01.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/File/MimeInfo.pm 2020-10-26 15:53:43.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -145,6 +145,19 @@
</span> sub rehash {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- (@globs, %literal, %extension, %mime2ext) = (); # clear all data
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- local $_; # limit scope of $_ ... :S
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ## setup @DIRS to point to the DB that MacPorts installed,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ## thus users don't have to set ENV vars and such.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ my $DIRS_index = undef;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ for ($DIRS_index = 0; $DIRS_index < @DIRS; $DIRS_index++) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if ($DIRS[$DIRS_index] =~ m|__PREFIX__/share/mime|) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ last;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if ($DIRS_index >= @DIRS) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ## we didn't find the MP prefix path, add it...
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ push @DIRS, '__PREFIX__/share/mime';
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- my @globfiles = @DIRS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ? ( grep {-e $_ && -r $_} map "$_/globs", @DIRS )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- : ( reverse data_files('mime/globs') );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (@globs, %literal, %extension, %mime2ext) = (); # clear all data
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ local $_; # limit scope of $_ ... :S
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ## setup @DIRS to point to the DB that MacPorts installed,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ## thus users don't have to set ENV vars and such.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ my $DIRS_index = undef;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ for ($DIRS_index = 0; $DIRS_index < @DIRS; $DIRS_index++) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if ($DIRS[$DIRS_index] =~ m|__PREFIX__/share/mime|) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ last;
</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;'>++ if ($DIRS_index >= @DIRS) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ## we didn't find the MP prefix path, add it...
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ push @DIRS, '__PREFIX__/share/mime';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ my @globfiles = @DIRS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ? ( grep {-e $_ && -r $_} map "$_/globs", @DIRS )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : ( reverse data_files('mime/globs') );
</span></pre><pre style='margin:0'>
</pre>