Date: Tue, 21 Aug 2012 12:55:18 +0000 (UTC) From: Chris Rees <crees@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r302860 - head/textproc/p5-XML-SAX-ExpatXS Message-ID: <201208211255.q7LCtI7s037640@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: crees Date: Tue Aug 21 12:55:18 2012 New Revision: 302860 URL: http://svn.freebsd.org/changeset/ports/302860 Log: Fix with pkgng-- !sh scripts are forbidden as $PKG(DE)?INSTALL If you are using pkgng and can't deinstall this package, reinstall using: make -DFORCE_PKG_REGISTER -C /usr/ports/textproc/p5-XML-SAX-ExpatXS install Fix by: swills Modified: head/textproc/p5-XML-SAX-ExpatXS/Makefile head/textproc/p5-XML-SAX-ExpatXS/pkg-deinstall head/textproc/p5-XML-SAX-ExpatXS/pkg-install Modified: head/textproc/p5-XML-SAX-ExpatXS/Makefile ============================================================================== --- head/textproc/p5-XML-SAX-ExpatXS/Makefile Tue Aug 21 12:51:04 2012 (r302859) +++ head/textproc/p5-XML-SAX-ExpatXS/Makefile Tue Aug 21 12:55:18 2012 (r302860) @@ -7,6 +7,7 @@ PORTNAME= XML-SAX-ExpatXS PORTVERSION= 1.32 +PORTREVISION= 1 CATEGORIES= textproc perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- Modified: head/textproc/p5-XML-SAX-ExpatXS/pkg-deinstall ============================================================================== --- head/textproc/p5-XML-SAX-ExpatXS/pkg-deinstall Tue Aug 21 12:51:04 2012 (r302859) +++ head/textproc/p5-XML-SAX-ExpatXS/pkg-deinstall Tue Aug 21 12:55:18 2012 (r302860) @@ -1,6 +1,7 @@ -#!/usr/bin/perl -if('DEINSTALL' eq $ARGV[1]) { - eval "use XML::SAX;"; - die $@ if $@; - XML::SAX->remove_parser(q(XML::SAX::ExpatXS))->save_parsers(); -} +#!/bin/sh + +case $1 in + POST-DEINSTALL) + perl -MXML::SAX -e 'XML::SAX->remove_parser(q(XML::SAX::ExpatXS))->save_parsers();' + ;; +esac Modified: head/textproc/p5-XML-SAX-ExpatXS/pkg-install ============================================================================== --- head/textproc/p5-XML-SAX-ExpatXS/pkg-install Tue Aug 21 12:51:04 2012 (r302859) +++ head/textproc/p5-XML-SAX-ExpatXS/pkg-install Tue Aug 21 12:55:18 2012 (r302860) @@ -1,6 +1,7 @@ -#!/usr/bin/perl -if('POST-INSTALL' eq $ARGV[1]) { - eval "use XML::SAX;"; - die $@ if $@; - XML::SAX->add_parser(q(XML::SAX::ExpatXS))->save_parsers(); -} +#!/bin/sh + +case $1 in + POST-INSTALL) + perl -MXML::SAX -e 'XML::SAX->add_parser(q(XML::SAX::ExpatXS))->save_parsers();' + ;; +esac
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208211255.q7LCtI7s037640>