svn commit: r314174 - head/textproc/p5-XML-LibXML
Baptiste Daroussin
bapt at FreeBSD.org
Thu Mar 14 18:04:07 UTC 2013
Author: bapt
Date: Thu Mar 14 18:04:06 2013
New Revision: 314174
URL: http://svnweb.freebsd.org/changeset/ports/314174
Log:
Register and unregister both XML::LibXML::SAX and XML::LibXML::SAX::Parser
Make post-install script actually working
Remove post-install target from the port and the "normal" make install in sources already register the parsers
Modified:
head/textproc/p5-XML-LibXML/Makefile
head/textproc/p5-XML-LibXML/pkg-install
Modified: head/textproc/p5-XML-LibXML/Makefile
==============================================================================
--- head/textproc/p5-XML-LibXML/Makefile Thu Mar 14 18:00:57 2013 (r314173)
+++ head/textproc/p5-XML-LibXML/Makefile Thu Mar 14 18:04:06 2013 (r314174)
@@ -1,12 +1,9 @@
-# New ports collection makefile for: XML::LibXML
-# Date created: 28 May 2001
-# Whom: Sergey Skvortsov <skv at protey.ru>
-#
+# Created by: Sergey Skvortsov <skv at protey.ru>
# $FreeBSD$
-#
PORTNAME= XML-LibXML
PORTVERSION= 2.0004
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
@@ -47,7 +44,4 @@ MAN3= XML::LibXML.3 XML::LibXML::Attrib
XML::LibXML::XPathExpression.3 \
XML::LibXML::Common.3 XML::LibXML::RegExp.3
-post-install:
- @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-
.include <bsd.port.mk>
Modified: head/textproc/p5-XML-LibXML/pkg-install
==============================================================================
--- head/textproc/p5-XML-LibXML/pkg-install Thu Mar 14 18:00:57 2013 (r314173)
+++ head/textproc/p5-XML-LibXML/pkg-install Thu Mar 14 18:04:06 2013 (r314174)
@@ -1,7 +1,9 @@
#!/bin/sh
-if [ "$2" = "XPOST-INSTALL" ]; then
+if [ "X$2" = "XPOST-INSTALL" ]; then
perl -MXML::SAX -e "XML::SAX->add_parser('XML::LibXML::SAX'.\$_)->save_parsers()"
+ perl -MXML::SAX -e "XML::SAX->add_parser('XML::LibXML::SAX::Parser'.\$_)->save_parsers()"
elif [ "X$2" = "XDEINSTALL" ]; then
perl -MXML::SAX -e "XML::SAX->remove_parser('XML::LibXML::SAX'.\$_)->save_parsers()"
+ perl -MXML::SAX -e "XML::SAX->remove_parser('XML::LibXML::SAX::Parser'.\$_)->save_parsers()"
fi
More information about the svn-ports-all
mailing list