File: use_hash-util-fieldhash.patch

package info (click to toggle)
libmoosex-clone-perl 0.05-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 112 kB
  • ctags: 24
  • sloc: perl: 347; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Description: Don't require Hash::Util::FieldHash::Compat
 This module requires Hash::Util::FieldHash::Compat, which just
 loads Hash::Util::FieldHash if available or provides a slower
 alternate implementation otherwise. Since Perl 5.10 has the
 Hash::Util::FieldHash module already, we can use it directly.
Author: franck cuny <franck@lumberjaph.net>
Reviewed-by: Jonathan Yu <jawnsy@cpan.org>
Origin: vendor
Forwarded: not-needed
--- a/META.yml
+++ b/META.yml
@@ -11,7 +11,7 @@
     ExtUtils::MakeMaker:  0
 requires:
     Data::Visitor:        0.24
-    Hash::Util::FieldHash::Compat:  0
+    Hash::Util::FieldHash:  0
     Moose:                0.74
     namespace::clean:     0.08
     Test::use::ok:        0
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -12,8 +12,8 @@
 	PL_FILES     => { },
 	PREREQ_PM    => {
 		'Test::use::ok' => 0,
-        'Hash::Util::FieldHash::Compat' => 0,
         'Moose' => "0.74",
+        'Hash::Util::FieldHash' => 0,
         'Data::Visitor' => '0.24',
         'namespace::clean' => '0.08',
 	},
--- a/lib/MooseX/Clone.pm
+++ b/lib/MooseX/Clone.pm
@@ -5,7 +5,7 @@
 
 our $VERSION = "0.05";
 
-use Hash::Util::FieldHash::Compat qw(idhash);
+use Hash::Util::FieldHash qw(idhash);
 
 use MooseX::Clone::Meta::Attribute::Trait::Clone;
 use MooseX::Clone::Meta::Attribute::Trait::StorableClone;