diff options
author | 2011-08-28 06:11:10 +0000 | |
---|---|---|
committer | 2011-08-28 06:11:10 +0000 | |
commit | 5b36c066fcbc850e62b019fc3b6609f5e523e700 (patch) | |
tree | 36c0d234e35fd1896c99e75899f05bf4eb9778e0 /dev-perl/XML-SAX | |
parent | Intial import. The ebuild is submitted by Oschtan and Nikoli, bug #270972. (diff) | |
download | gentoo-2-5b36c066fcbc850e62b019fc3b6609f5e523e700.tar.gz gentoo-2-5b36c066fcbc850e62b019fc3b6609f5e523e700.tar.bz2 gentoo-2-5b36c066fcbc850e62b019fc3b6609f5e523e700.zip |
Change version scheme
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'dev-perl/XML-SAX')
-rw-r--r-- | dev-perl/XML-SAX/ChangeLog | 7 | ||||
-rw-r--r-- | dev-perl/XML-SAX/XML-SAX-0.960.0.ebuild | 48 |
2 files changed, 54 insertions, 1 deletions
diff --git a/dev-perl/XML-SAX/ChangeLog b/dev-perl/XML-SAX/ChangeLog index b7c555dce5c2..1f5e256103f2 100644 --- a/dev-perl/XML-SAX/ChangeLog +++ b/dev-perl/XML-SAX/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-perl/XML-SAX # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-SAX/ChangeLog,v 1.68 2011/05/29 18:11:44 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-SAX/ChangeLog,v 1.69 2011/08/28 06:11:10 tove Exp $ + +*XML-SAX-0.960.0 (27 Aug 2011) + + 27 Aug 2011; Torsten Veller <tove@gentoo.org> +XML-SAX-0.960.0.ebuild: + Change version scheme 29 May 2011; Fabian Groffen <grobian@gentoo.org> XML-SAX-0.96.ebuild: Marked ~x64-macos, bug #368563 diff --git a/dev-perl/XML-SAX/XML-SAX-0.960.0.ebuild b/dev-perl/XML-SAX/XML-SAX-0.960.0.ebuild new file mode 100644 index 000000000000..a87cc2f5561e --- /dev/null +++ b/dev-perl/XML-SAX/XML-SAX-0.960.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-SAX/XML-SAX-0.960.0.ebuild,v 1.1 2011/08/28 06:11:10 tove Exp $ + +EAPI=4 + +MODULE_AUTHOR=GRANTM +MODULE_VERSION=0.96 +inherit perl-module eutils + +DESCRIPTION="Perl module for using and building Perl SAX2 XML parsers, filters, and drivers" + +SLOT="0" +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" +IUSE="" + +RDEPEND=">=dev-perl/XML-NamespaceSupport-1.04 + >=dev-libs/libxml2-2.4.1" +DEPEND="${RDEPEND}" + +SRC_TEST="do" + +src_prepare() { + sed -i \ + -e 's/if (\$write_ini_ok)/if (0 \&\& $write_ini_ok)/' \ + Makefile.PL || die + epatch "${FILESDIR}"/encodings.patch +} + +pkg_postinst() { + perl-module_pkg_postinst + pkg_update_parser add XML::SAX::PurePerl +} + +pkg_update_parser() { + # pkg_update_parser [add|remove] $parser_module + local action=$1 + local parser_module=$2 + + if [[ "$ROOT" = "/" ]] ; then + einfo "Update Parser: $1 $2" + perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \ + || ewarn "Update Parser: $1 $2 failed" + else + elog "To $1 $2 run:" + elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'" + fi +} |