blob: a01966d01c39477ef817d00063ab7eadf842ceec (
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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/RPC-XML/RPC-XML-0.54.ebuild,v 1.4 2005/01/04 13:31:42 mcummings Exp $
inherit perl-module
DESCRIPTION="A Perl extension interface to James Clark's XML parser, expat."
SRC_URI="mirror://cpan/authors/id/R/RJ/RJRAY/${P}.tar.gz"
HOMEPAGE="http://search.cpan.org/~rjray/${P}/"
SLOT="0"
LICENSE="Artistic"
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha"
IUSE="apache2"
SRC_TEST="do"
DEPEND="dev-perl/libwww-perl
>=dev-perl/XML-Parser-2.31
!apache2? ( <dev-perl/mod_perl-1.99* )"
pkg_postinst() {
perl-module_pkg_postinst
SETWARN=0
has_version '=net-www/apache-2*' && HAVE_APACHE2=1
has_version '>=dev-perl/mod_perl-1.99*' && HAVE_MP2=2
[ -n "${HAVE_APACHE2}" ] && SETWARN=1
[ -n "${HAVE_MP2}" ] && SETWARN=1
if [ "$SETWARN" == "1" ]; then
einfo "Apache2 or mod-perl-1.99 (mod_perl2) were detected."
einfo ""
einfo "NOTE FROM THE AUTHOR OF RPC-XML"
einfo ""
einfo "At present, this package does not work with Apache2 and the soon-to-be"
einfo "mod_perl2. The changes to the API for location handlers are too drastic to"
einfo "try and support both within the same class (I tried, using the compatibility"
einfo "layer). Also, mp2 does not currently provide support for <Perl> sections, which"
einfo "are the real strength of the Apache::RPC::Server class."
fi
}
|