Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/XML-LibXML/
Date: Mon, 11 Jul 2016 06:31:58
Message-Id: 1468216990.eb9676570dbba50c007e075d84ec2a405006a248.kentnl@gentoo
1 commit: eb9676570dbba50c007e075d84ec2a405006a248
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 11 05:58:38 2016 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 11 06:03:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb967657
7
8 dev-perl/XML-LibXML: Bump to version 2.12.600
9
10 Upstream:
11 - Workaround broken XSD Schema support in libxml2 2.9.4
12
13 See-Also: https://bugs.gentoo.org/show_bug.cgi?id=586886
14
15 Package-Manager: portage-2.3.0
16 RepoMan-Options: --ignore-arches --include-arches="alpha amd64 amd64-fbsd arm arm64 hppa ia64 m68k mips nios2 ppc ppc64 riscv s390 sh sparc sparc-fbsd x86 x86-fbsd"
17
18 dev-perl/XML-LibXML/Manifest | 1 +
19 dev-perl/XML-LibXML/XML-LibXML-2.12.600.ebuild | 66 ++++++++++++++++++++++++++
20 2 files changed, 67 insertions(+)
21
22 diff --git a/dev-perl/XML-LibXML/Manifest b/dev-perl/XML-LibXML/Manifest
23 index f0da6a5..d7f9110 100644
24 --- a/dev-perl/XML-LibXML/Manifest
25 +++ b/dev-perl/XML-LibXML/Manifest
26 @@ -1,2 +1,3 @@
27 DIST XML-LibXML-2.0121.tar.gz 464562 SHA256 ec431011cb37a04640fd2316f64d0405a274eece2c6f3847f7fbd336eb1c0dc9 SHA512 1833d1e14d8a3b361bcacde910807a56e21cd08204f3fa58888a8c9219bd9228bfdc211af8f74b91ceda3135b4e72cbc60ef1d783afbe0febd100117904f29f1 WHIRLPOOL 8168fcb40e9cfd7d9802f443124a1a38419b5e74b5560b95cfb66f4bc37110a2ac11515b365c4c90bd6007cb5a98c0045bc460566e7f52f758958019953411fe
28 DIST XML-LibXML-2.0124.tar.gz 465948 SHA256 f053434d68d94586ba062c8ded33a448b2943f9ae9e46db4293a97673e755240 SHA512 aa4b72ddf10ca1dab917b7988f8c715659d7659ccf6150eb88d9f6c64823daa2e5500f9b7031ec3abe88de647c7e2bc87da79d37086a1cf3d0b94de082981f71 WHIRLPOOL 545d9d494b43e4aff2951a9598194c116c25adeef58d9003b0e56cf8b179347fc10d09061a03119ca3c306b638444c75bb0f44fdc2a90cc3e667e89404c09076
29 +DIST XML-LibXML-2.0126.tar.gz 465800 SHA256 0e735ab72e2ba77070a58a737fd6c61fa6aa198527abc59a5d5627f0650a60af SHA512 b7e5cfdf299c6eabbecacf3a8b5192439b251aa15304a08296481daae2ff01f4d2fab74c38b42c2c63a2fa9f485d287a72ea06ebc58e679ac39cf6544f3cf60c WHIRLPOOL 341b49339342abdf93df0d7dd322b0209bd9a3fca2ffdfdb8e51055d1adab5093f221deaf43330668d17b4795a6c65e029e6bc51bda34184dd91f28e723d7de9
30
31 diff --git a/dev-perl/XML-LibXML/XML-LibXML-2.12.600.ebuild b/dev-perl/XML-LibXML/XML-LibXML-2.12.600.ebuild
32 new file mode 100644
33 index 0000000..dca0e5b
34 --- /dev/null
35 +++ b/dev-perl/XML-LibXML/XML-LibXML-2.12.600.ebuild
36 @@ -0,0 +1,66 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=6
42 +
43 +DIST_AUTHOR=SHLOMIF
44 +DIST_VERSION=2.0126
45 +DIST_EXAMPLES=("example/*")
46 +inherit perl-module
47 +
48 +DESCRIPTION="Perl binding for libxml2"
49 +
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
52 +IUSE="test minimal"
53 +
54 +RDEPEND="
55 + >=dev-perl/XML-SAX-0.120.0
56 + >=dev-libs/libxml2-2.6.21
57 + dev-perl/XML-SAX-Base
58 + >=dev-perl/XML-NamespaceSupport-1.70.0
59 +"
60 +DEPEND="${RDEPEND}
61 + virtual/perl-ExtUtils-MakeMaker
62 + test? (
63 + !minimal? (
64 + dev-perl/Test-LeakTrace
65 + )
66 + )
67 +"
68 +
69 +src_compile() {
70 + export SKIP_SAX_INSTALL=1
71 + perl-module_src_compile
72 +}
73 +
74 +src_test() {
75 + perl_rm_files t/pod.t t/style-trailing-space.t t/cpan-changes.t t/release-kwalitee.t
76 + perl-module_src_test
77 +}
78 +
79 +pkg_postinst() {
80 + pkg_update_parser add XML::LibXML::SAX::Parser
81 + pkg_update_parser add XML::LibXML::SAX
82 +}
83 +
84 +pkg_postrm() {
85 + pkg_update_parser remove XML::LibXML::SAX::Parser
86 + pkg_update_parser remove XML::LibXML::SAX
87 +}
88 +
89 +pkg_update_parser() {
90 + # pkg_update_parser [add|remove] $parser_module
91 + local action=$1
92 + local parser_module=$2
93 +
94 + if [[ "$ROOT" = "/" ]] ; then
95 + einfo "Update Parser: $1 $2"
96 + perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
97 + || ewarn "Update Parser: $1 $2 failed"
98 + else
99 + elog "To $1 $2 run:"
100 + elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
101 + fi
102 +}