public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Any-Moose/, dev-perl/Any-Moose/files/
Date: Mon, 29 Feb 2016 15:36:56 +0000 (UTC)	[thread overview]
Message-ID: <1456744087.4a4051a21f6b2f7a291e1e3da6c05ada2ac93f91.monsieurp@gentoo> (raw)

commit:     4a4051a21f6b2f7a291e1e3da6c05ada2ac93f91
Author:     Kent Fredric <kentfredric <AT> gmail <DOT> com>
AuthorDate: Mon Feb 29 11:08:07 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Mon Feb 29 11:08:07 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a4051a2

dev-perl/Any-Moose: Eliminate dependencies on Mouse

This is preparation work for eventual removal of Any-Moose from tree,
as it is declared "Deprecated" by upstream, and people who want a
"Be fast by default but still work with Moose" solution are being encouraged
to use Moo instead.

Any-Moose will continue to auto-switch between Moose and Mouse
if Mouse is installed, but will not add any dependencies on Mouse
and will no longer test Mouse based tests, with the idea being to
just force the Moose path by default.

This is effectively what already happened for anyone who installed Moose first,
which is highly likely, because *nothing* in tree other than Any-Moose and
its children presently depend on Mouse.

However, we can't remove Any-Moose yet, because some packages still depend on it,
so this patch is intended to mitigate the damage of still pulling Mouse and MouseX::Types
into tree.

This also avoids a circular dependency mess under FEATURES="test"

But anyone who wants the runtime benefits of Any-Moose that *may* appear
if they're not using any Moose code, they can still get that benefit by installing
Mouse manually.

But otherwise, depending on Any-Moose should imply a dependecy on Moose

Package-Manager: portage-2.2.27

 dev-perl/Any-Moose/Any-Moose-0.260.0-r1.ebuild | 34 ++++++++++++++++++++++++++
 dev-perl/Any-Moose/files/nomouse.patch         | 13 ++++++++++
 2 files changed, 47 insertions(+)

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
new file mode 100644
index 0000000..6ed9215
--- /dev/null
+++ b/dev-perl/Any-Moose/Any-Moose-0.260.0-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DIST_AUTHOR=ETHER
+DIST_VERSION=0.26
+inherit perl-module
+
+DESCRIPTION="Use Moose or Mouse modules (DEPRECATED)"
+
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+IUSE="test"
+PERL_RM_FILES=(
+	"t/001-basic-mouse.t"
+	"t/002-other-modules-mouse.t"
+	"t/003-is_moose_loaded.t"
+	"t/004-x-modules-mouse.t"
+	"t/005-aliases-mouse.t"
+	"t/010-use_mouse_roles.t"
+	"t/012-use_mouse_util.t"
+)
+PATCHES=( "${FILESDIR}/nomouse.patch" )
+RDEPEND="dev-perl/Moose
+	virtual/perl-version"
+DEPEND="${RDEPEND}
+	>=virtual/perl-ExtUtils-MakeMaker-6.31
+	test? (
+		dev-perl/Moose
+		dev-perl/MooseX-Types
+	)
+"

diff --git a/dev-perl/Any-Moose/files/nomouse.patch b/dev-perl/Any-Moose/files/nomouse.patch
new file mode 100644
index 0000000..745e2f5
--- /dev/null
+++ b/dev-perl/Any-Moose/files/nomouse.patch
@@ -0,0 +1,13 @@
+diff -Naur Any-Moose-0.26/t/000-version.t Any-Moose-0.26b/t/000-version.t
+--- Any-Moose-0.26/t/000-version.t	2015-01-24 07:52:52.000000000 +0000
++++ Any-Moose-0.26b/t/000-version.t	2016-02-29 10:44:17.801967386 +0000
+@@ -3,8 +3,6 @@
+ use_ok 'Any::Moose';
+ 
+ show_version($_) for qw/
+-    Mouse
+-    MouseX::Types
+     Moose
+     Class::MOP
+     MooseX::Types
+


                 reply	other threads:[~2016-02-29 15:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456744087.4a4051a21f6b2f7a291e1e3da6c05ada2ac93f91.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox