summaryrefslogtreecommitdiff
blob: dcb09a06b6ea9346930557c7c2e19c21db0523b1 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

MODULE_AUTHOR=MARKSTOS
MODULE_VERSION=3.07
inherit perl-module

DESCRIPTION="Framework for building reusable web-applications"

SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
comment() { true; }
RDEPEND="
	$(comment perl 5.6.0)

	$(comment version 0.82)
	>=virtual/perl-version-0.82
	$(comment CGI::Application 4.50)
	>=dev-perl/CGI-Application-4.500.0
	$(comment HTTP::Exception)
	dev-perl/HTTP-Exception
	$(comment Exception::Class 1.2)
	>=dev-perl/Exception-Class-1.200.0
	$(comment Try::Tiny)
	dev-perl/Try-Tiny
"
DEPEND="
	$(comment --configure)
	$(comment 'This stanza is to match the dynamic stuff at the top of
		Build.PL')

	!test? (
		$(comment Module::Build)
		>=virtual/perl-Module-Build-0.380.0
	)
	test? (
		$(comment Apache::Test)
		dev-perl/Apache-Test

		$(comment Apache::TestMB)
		dev-perl/Apache-Test
	)
	$(comment 'End of Build.PL heading magic')

	$(comment --build)
	$(comment CGI::PSGI)
	dev-perl/CGI-PSGI
	$(comment Test::More)
	virtual/perl-Test-Simple
	$(comment Test::LongString)
	dev-perl/Test-LongString
	$(comment Plack 0.9956)
	>=dev-perl/Plack-0.995.600
	test? (
		$(comment Apache::Test)
		dev-perl/Apache-Test
	)
	${RDEPEND}
"
SRC_TEST=do

src_test() {
	# This jiggerypokery appears to be required if Apache::Test
	# is present. If it is not present or not use test? then we're ok,
	# but otherwise, we need to specify where apache is, or it will
	# for some reason, get stuck in a death loop and fill your log file
	# and your hard drive. JOY! http://gist.github.com/447135

	# NB. Because I have no way of conditionally triggering this code
	# whether or not Apache-Test is installed ( like the code does )
	# I have test-depped on it basically forcing a known circuit.

	APACHE_TEST_HTTPD=/usr/sbin/apache2
	export APACHE_TEST_HTTPD
	perl-module_src_test
}