[152114] trunk/dports/perl/p5-unicode-string

devans at macports.org devans at macports.org
Mon Aug 29 03:26:03 PDT 2016


Revision: 152114
          https://trac.macports.org/changeset/152114
Author:   devans at macports.org
Date:     2016-08-29 03:26:03 -0700 (Mon, 29 Aug 2016)
Log Message:
-----------
p5-unicode-string: patch to fix fatal runtime error on perl 5.24+, increment revision, remove comment.

Modified Paths:
--------------
    trunk/dports/perl/p5-unicode-string/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-unicode-string/files/
    trunk/dports/perl/p5-unicode-string/files/cant-use-defined-hash.patch

Modified: trunk/dports/perl/p5-unicode-string/Portfile
===================================================================
--- trunk/dports/perl/p5-unicode-string/Portfile	2016-08-29 10:23:16 UTC (rev 152113)
+++ trunk/dports/perl/p5-unicode-string/Portfile	2016-08-29 10:26:03 UTC (rev 152114)
@@ -1,18 +1,12 @@
 # -*- 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
 # $Id$
 
-# This comment was inserted on 20160713 to force reindexing of
-# this port after the default homepage definition in the perl5
-# PortGroup was changed to use metacpan.org (r150080).
-# Reindexing is necessary for the new definition to take effect.
-# This comment may be removed in subsequent updates of this port.
-
 PortSystem          1.0
 PortGroup           perl5 1.0
 
 perl5.branches      5.22 5.24
 perl5.setup         Unicode-String 2.09
-revision            4
+revision            5
 license             {Artistic-1 GPL}
 maintainers         nomaintainer
 description         String of Unicode characters (UCS2/UTF16)
@@ -29,3 +23,9 @@
 platforms           darwin
 
 checksums           md5 553e68e603723bf7c631f8701ab0d678
+
+if {${perl5.major} != ""} {
+    # defined(%hash) is deprecated on perl5.22 and is fatal on perl5.24+
+    # https://rt.cpan.org/Public/Bug/Display.html?id=74354
+    patchfiles      cant-use-defined-hash.patch
+}

Added: trunk/dports/perl/p5-unicode-string/files/cant-use-defined-hash.patch
===================================================================
--- trunk/dports/perl/p5-unicode-string/files/cant-use-defined-hash.patch	                        (rev 0)
+++ trunk/dports/perl/p5-unicode-string/files/cant-use-defined-hash.patch	2016-08-29 10:26:03 UTC (rev 152114)
@@ -0,0 +1,11 @@
+--- lib/Unicode/CharName.pm.orig	2016-08-29 02:36:45.000000000 -0700
++++ lib/Unicode/CharName.pm	2016-08-29 02:37:01.000000000 -0700
+@@ -77,7 +77,7 @@
+ 	    return join("", "HANGUL SYLLABLE ", @s)
+ 	}
+     }
+-    _init_names() unless defined %NAMES;
++    _init_names() unless keys %NAMES;
+     $NAMES{sprintf("%04X",$code)}
+ }
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160829/624d2092/attachment.html>


More information about the macports-changes mailing list