1 |
commit: 4a4051a21f6b2f7a291e1e3da6c05ada2ac93f91 |
2 |
Author: Kent Fredric <kentfredric <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Feb 29 11:08:07 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 29 11:08:07 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a4051a2 |
7 |
|
8 |
dev-perl/Any-Moose: Eliminate dependencies on Mouse |
9 |
|
10 |
This is preparation work for eventual removal of Any-Moose from tree, |
11 |
as it is declared "Deprecated" by upstream, and people who want a |
12 |
"Be fast by default but still work with Moose" solution are being encouraged |
13 |
to use Moo instead. |
14 |
|
15 |
Any-Moose will continue to auto-switch between Moose and Mouse |
16 |
if Mouse is installed, but will not add any dependencies on Mouse |
17 |
and will no longer test Mouse based tests, with the idea being to |
18 |
just force the Moose path by default. |
19 |
|
20 |
This is effectively what already happened for anyone who installed Moose first, |
21 |
which is highly likely, because *nothing* in tree other than Any-Moose and |
22 |
its children presently depend on Mouse. |
23 |
|
24 |
However, we can't remove Any-Moose yet, because some packages still depend on it, |
25 |
so this patch is intended to mitigate the damage of still pulling Mouse and MouseX::Types |
26 |
into tree. |
27 |
|
28 |
This also avoids a circular dependency mess under FEATURES="test" |
29 |
|
30 |
But anyone who wants the runtime benefits of Any-Moose that *may* appear |
31 |
if they're not using any Moose code, they can still get that benefit by installing |
32 |
Mouse manually. |
33 |
|
34 |
But otherwise, depending on Any-Moose should imply a dependecy on Moose |
35 |
|
36 |
Package-Manager: portage-2.2.27 |
37 |
|
38 |
dev-perl/Any-Moose/Any-Moose-0.260.0-r1.ebuild | 34 ++++++++++++++++++++++++++ |
39 |
dev-perl/Any-Moose/files/nomouse.patch | 13 ++++++++++ |
40 |
2 files changed, 47 insertions(+) |
41 |
|
42 |
diff --git a/dev-perl/Any-Moose/Any-Moose-0.260.0-r1.ebuild b/dev-perl/Any-Moose/Any-Moose-0.260.0-r1.ebuild |
43 |
new file mode 100644 |
44 |
index 0000000..6ed9215 |
45 |
--- /dev/null |
46 |
+++ b/dev-perl/Any-Moose/Any-Moose-0.260.0-r1.ebuild |
47 |
@@ -0,0 +1,34 @@ |
48 |
+# Copyright 1999-2016 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+# $Id$ |
51 |
+ |
52 |
+EAPI=6 |
53 |
+ |
54 |
+DIST_AUTHOR=ETHER |
55 |
+DIST_VERSION=0.26 |
56 |
+inherit perl-module |
57 |
+ |
58 |
+DESCRIPTION="Use Moose or Mouse modules (DEPRECATED)" |
59 |
+ |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~amd64 ~hppa ~ppc ~x86" |
62 |
+IUSE="test" |
63 |
+PERL_RM_FILES=( |
64 |
+ "t/001-basic-mouse.t" |
65 |
+ "t/002-other-modules-mouse.t" |
66 |
+ "t/003-is_moose_loaded.t" |
67 |
+ "t/004-x-modules-mouse.t" |
68 |
+ "t/005-aliases-mouse.t" |
69 |
+ "t/010-use_mouse_roles.t" |
70 |
+ "t/012-use_mouse_util.t" |
71 |
+) |
72 |
+PATCHES=( "${FILESDIR}/nomouse.patch" ) |
73 |
+RDEPEND="dev-perl/Moose |
74 |
+ virtual/perl-version" |
75 |
+DEPEND="${RDEPEND} |
76 |
+ >=virtual/perl-ExtUtils-MakeMaker-6.31 |
77 |
+ test? ( |
78 |
+ dev-perl/Moose |
79 |
+ dev-perl/MooseX-Types |
80 |
+ ) |
81 |
+" |
82 |
|
83 |
diff --git a/dev-perl/Any-Moose/files/nomouse.patch b/dev-perl/Any-Moose/files/nomouse.patch |
84 |
new file mode 100644 |
85 |
index 0000000..745e2f5 |
86 |
--- /dev/null |
87 |
+++ b/dev-perl/Any-Moose/files/nomouse.patch |
88 |
@@ -0,0 +1,13 @@ |
89 |
+diff -Naur Any-Moose-0.26/t/000-version.t Any-Moose-0.26b/t/000-version.t |
90 |
+--- Any-Moose-0.26/t/000-version.t 2015-01-24 07:52:52.000000000 +0000 |
91 |
++++ Any-Moose-0.26b/t/000-version.t 2016-02-29 10:44:17.801967386 +0000 |
92 |
+@@ -3,8 +3,6 @@ |
93 |
+ use_ok 'Any::Moose'; |
94 |
+ |
95 |
+ show_version($_) for qw/ |
96 |
+- Mouse |
97 |
+- MouseX::Types |
98 |
+ Moose |
99 |
+ Class::MOP |
100 |
+ MooseX::Types |
101 |
+ |