blob: f391ba42ca31fa82dd04e0dc6087102120ef8df4 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=OALDERS
DIST_VERSION=6.77
inherit perl-module
DESCRIPTION="Collection of Perl Modules for the WWW"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
IUSE="ssl"
RDEPEND="
virtual/perl-Digest-MD5
>=virtual/perl-Encode-2.120.0
dev-perl/Encode-Locale
>=dev-perl/File-Listing-6.0.0
virtual/perl-File-Temp
virtual/perl-Getopt-Long
>=dev-perl/HTML-Parser-3.710.0
>=dev-perl/HTTP-Cookies-6.0.0
>=dev-perl/HTTP-Date-6.0.0
>=dev-perl/HTTP-Negotiate-6.0.0
>=dev-perl/HTTP-Message-6.180.0
virtual/perl-IO
>=dev-perl/LWP-MediaTypes-6.0.0
>=virtual/perl-MIME-Base64-2.100.0
virtual/perl-Module-Load
>=virtual/perl-libnet-2.580.0
>=dev-perl/Net-HTTP-6.180.0
virtual/perl-Scalar-List-Utils
dev-perl/Try-Tiny
>=dev-perl/URI-1.100.0
>=dev-perl/WWW-RobotRules-6.0.0
>=virtual/perl-parent-0.217.0
"
BDEPEND="
${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
virtual/perl-Getopt-Long
test? (
virtual/perl-File-Spec
dev-perl/HTTP-CookieJar
>=dev-perl/HTTP-Daemon-6.120.0
dev-perl/Test-Fatal
>=virtual/perl-Test-Simple-0.960.0
dev-perl/Test-Needs
dev-perl/Test-RequiresInternet
)
"
PDEPEND="
ssl? (
>=dev-perl/LWP-Protocol-https-6.20.0
)
"
pkg_postinst() {
# Perform a check to see if the live filesystem is case-INsensitive
# or not. If it is, the symlinks GET, POST and in particular HEAD
# will collide with e.g. head from coreutils. While under Linux
# having a case-INsensitive filesystem is really unusual, most Mac
# OS X users are on it, and also Interix users deal with
# case-INsensitivity since Windows is underneath.
# bash should always be there, if we can find it in capitals, we're
# on a case-INsensitive filesystem.
if [[ ! -f ${EROOT}/BIN/BASH ]] ; then
ln -s lwp-request "${EROOT}"/usr/bin/GET
ln -s lwp-request "${EROOT}"/usr/bin/POST
ln -s lwp-request "${EROOT}"/usr/bin/HEAD
fi
}
|