summaryrefslogtreecommitdiff
path: root/dev-perl/Class-Unload/Class-Unload-0.110.0-r1.ebuild
blob: 66d42f25aa666ad6948fe5a28c17f66a42c22729 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DIST_AUTHOR=ILMARI
DIST_VERSION=0.11
inherit perl-module

DESCRIPTION="Unload a class"

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

RDEPEND="
	dev-perl/Class-Inspector
"
BDEPEND="${RDEPEND}
	virtual/perl-ExtUtils-MakeMaker
	test? (
		>=virtual/perl-Test-Simple-0.880
		dev-perl/Test-Requires
	)
"

src_test() {
	local i;
	elog "Install the following optional dependencies for comprehensive tests:"
	i="$(if has_version 'dev-perl/Moose'; then echo '[I]'; else echo '[ ]'; fi)"
	elog " $i dev-perl/Moose"
	elog "     - Test unloadability of Moose Classes and Meta-Classes";
	elog
	perl_rm_files t/author-{eol,no-tabs}.t t/author-pod-{coverage,syntax}.t
	perl-module_src_test
}