summaryrefslogtreecommitdiff
blob: 1ca1fc1e9a607735fb0b7e6b43a6ae08b1b97085 (plain)
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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/MooseX-ConfigFromFile/MooseX-ConfigFromFile-0.60.0.ebuild,v 1.1 2013/02/03 18:47:40 tove Exp $

EAPI=5

MODULE_AUTHOR=ETHER
MODULE_VERSION=0.06
inherit perl-module

DESCRIPTION="An abstract Moose role for setting attributes from a configfile"

SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND="
	dev-perl/MooseX-Types-Path-Tiny
	>=dev-perl/Moose-0.350.0
	dev-perl/Try-Tiny
	dev-perl/namespace-autoclean
"
DEPEND="${RDEPEND}
	>=virtual/perl-ExtUtils-MakeMaker-6.360.0
	test? (
		>=dev-perl/Test-NoWarnings-1.40.0
		dev-perl/Test-Requires
		dev-perl/Test-Fatal
		dev-perl/Test-Without-Module
		>=virtual/perl-Test-Simple-0.420.0
	)
"

SRC_TEST=do

src_test() {
	if has_version dev-perl/MooseX-SimpleConfig ; then
		perl-module_src_test
	else
		einfo "Tests disabled due to dependency cycle."
		einfo "Please install dev-perl/MooseX-SimpleConfig and rerun tests!"
	fi
}