/[gentoo-x86]/dev-perl/XML-SAX/XML-SAX-0.990.0.ebuild
Gentoo

Contents of /dev-perl/XML-SAX/XML-SAX-0.990.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Feb 24 15:10:23 2012 UTC (2 years, 9 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.4: +2 -2 lines
x86 stable wrt bug #400269

(Portage version: 2.1.10.44/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-SAX/XML-SAX-0.990.0.ebuild,v 1.4 2012/02/21 14:27:55 ago Exp $
4
5 EAPI=4
6
7 MODULE_AUTHOR=GRANTM
8 MODULE_VERSION=0.99
9 inherit perl-module eutils
10
11 DESCRIPTION="Perl module for using and building Perl SAX2 XML parsers, filters, and drivers"
12
13 SLOT="0"
14 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
15 IUSE=""
16
17 RDEPEND="
18 dev-perl/XML-SAX-Base
19 >=dev-perl/XML-NamespaceSupport-1.40.0
20 >=dev-libs/libxml2-2.4.1
21 "
22 DEPEND="${RDEPEND}"
23
24 SRC_TEST="do"
25
26 src_prepare() {
27 sed -i \
28 -e 's/if (\$write_ini_ok)/if (0 \&\& $write_ini_ok)/' \
29 Makefile.PL || die
30 epatch "${FILESDIR}"/encodings.patch
31 }
32
33 pkg_postinst() {
34 perl-module_pkg_postinst
35 pkg_update_parser add XML::SAX::PurePerl
36 }
37
38 pkg_update_parser() {
39 # pkg_update_parser [add|remove] $parser_module
40 local action=$1
41 local parser_module=$2
42
43 if [[ "$ROOT" = "/" ]] ; then
44 einfo "Update Parser: $1 $2"
45 perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
46 || ewarn "Update Parser: $1 $2 failed"
47 else
48 elog "To $1 $2 run:"
49 elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
50 fi
51 }

  ViewVC Help
Powered by ViewVC 1.1.20