summaryrefslogtreecommitdiff
blob: c2c8647b20a5c8d2c45bdcc3aaaf9e7e070dec28 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/libwww-perl/libwww-perl-5.69-r2.ebuild,v 1.16 2006/07/05 17:42:47 ian Exp $

inherit perl-module eutils

DESCRIPTION="A collection of Perl Modules for the WWW"
SRC_URI="mirror://cpan/authors/id/G/GA/GAAS/${P}.tar.gz"
HOMEPAGE="http://search.cpan.org/~gaas/${P}/"
IUSE="ssl"
SLOT="0"
LICENSE="|| ( Artistic GPL-2 )"
KEYWORDS="x86 amd64 ~ppc sparc alpha hppa ~mips"

DEPEND="virtual/perl-libnet
	>=dev-perl/HTML-Parser-3.13
	>=dev-perl/URI-1.0.9
	>=virtual/perl-Digest-MD5-2.12
	>=virtual/perl-MIME-Base64-2.12
	ssl? ( dev-perl/Crypt-SSLeay )"
RDEPEND="${DEPEND}"

mydoc="TODO"

src_compile() {
	yes "" | perl Makefile.PL ${myconf} \
		PREFIX=${D}/usr INSTALLDIRS=vendor
	perl-module_src_test || export TEST_WARN="1"
}

pkg_postinst() {
	if [ "${TEST_WARN}" == "1" ]; then
		echo ""
		eerror "Not all of libwww-perl's internal tests passed. This"
		eerror "is generally caused by a misoconfigured network setting"
		eerror "and not by a problem with libwww-perl itself. Some "
		eerror "factors include network connectivity, proxies, firewalls,"
		eerror "and bad /etc/hosts files, to name a few. If you "
		eerror "have trouble using libwww-perl, please contact us at"
		eerror "http://bugs.gentoo.org/"
		echo ""
		epause 5
	fi
	perl-module_pkg_postinst
}