/[gentoo-x86]/dev-perl/XML-LibXML/XML-LibXML-2.0.400.ebuild
Gentoo

Contents of /dev-perl/XML-LibXML/XML-LibXML-2.0.400.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Aug 10 19:17:06 2012 UTC (9 months, 1 week ago) by tove
Branch: MAIN
[bump] dev-perl/XML-LibXML-2.0.400

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 tove 1.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-LibXML/XML-LibXML-2.0.300.ebuild,v 1.1 2012/07/27 18:58:23 tove Exp $
4    
5     EAPI=4
6    
7     MODULE_AUTHOR=SHLOMIF
8     MODULE_VERSION=2.0004
9     inherit perl-module
10    
11     DESCRIPTION="A Perl module to parse XSL Transformational sheets using gnome's libXSLT"
12    
13     SLOT="0"
14     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
15     IUSE="test"
16    
17     RDEPEND="
18     >=dev-perl/XML-SAX-0.120.0
19     >=dev-libs/libxml2-2.6.21
20     >=dev-perl/XML-NamespaceSupport-1.70.0
21     "
22     DEPEND="${RDEPEND}
23     test? (
24     dev-perl/Test-Pod
25     )
26     "
27    
28     SRC_TEST="do"
29    
30     # rac can't discern any difference between the build with or without
31     # this, and if somebody wants to reactivate it, get it out of global
32     # scope.
33     #export PERL5LIB=`perl -e 'print map { ":$ENV{D}/$_" } @INC'`
34     mytargets="pure_install doc_install"
35    
36     src_compile() {
37     export SKIP_SAX_INSTALL=1
38     perl-module_src_compile
39     }
40    
41     pkg_postinst() {
42     pkg_update_parser add XML::LibXML::SAX::Parser
43     pkg_update_parser add XML::LibXML::SAX
44     }
45    
46     pkg_postrm() {
47     pkg_update_parser remove XML::LibXML::SAX::Parser
48     pkg_update_parser remove XML::LibXML::SAX
49     }
50    
51     pkg_update_parser() {
52     # pkg_update_parser [add|remove] $parser_module
53     local action=$1
54     local parser_module=$2
55    
56     if [[ "$ROOT" = "/" ]] ; then
57     einfo "Update Parser: $1 $2"
58     perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
59     || ewarn "Update Parser: $1 $2 failed"
60     else
61     elog "To $1 $2 run:"
62     elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
63     fi
64     }

  ViewVC Help
Powered by ViewVC 1.1.13