Date: Thu, 14 Mar 2013 18:04:07 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r314174 - head/textproc/p5-XML-LibXML Message-ID: <201303141804.r2EI47fn063124@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@protey.ru> -# +# Created by: Sergey Skvortsov <skv@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303141804.r2EI47fn063124>