Date: Mon, 20 Aug 2012 22:01:07 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r302833 - head/textproc/p5-XML-SAX-Expat Message-ID: <201208202201.q7KM17OG099849@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Mon Aug 20 22:01:06 2012 New Revision: 302833 URL: http://svn.freebsd.org/changeset/ports/302833 Log: - Update pkg install/deinstall scripts to work with pkgng Modified: head/textproc/p5-XML-SAX-Expat/Makefile (contents, props changed) head/textproc/p5-XML-SAX-Expat/pkg-deinstall (contents, props changed) head/textproc/p5-XML-SAX-Expat/pkg-install (contents, props changed) Modified: head/textproc/p5-XML-SAX-Expat/Makefile ============================================================================== --- head/textproc/p5-XML-SAX-Expat/Makefile Mon Aug 20 21:34:28 2012 (r302832) +++ head/textproc/p5-XML-SAX-Expat/Makefile Mon Aug 20 22:01:06 2012 (r302833) @@ -7,6 +7,7 @@ PORTNAME= XML-SAX-Expat PORTVERSION= 0.40 +PORTREVISION= 1 CATEGORIES= textproc perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- Modified: head/textproc/p5-XML-SAX-Expat/pkg-deinstall ============================================================================== --- head/textproc/p5-XML-SAX-Expat/pkg-deinstall Mon Aug 20 21:34:28 2012 (r302832) +++ head/textproc/p5-XML-SAX-Expat/pkg-deinstall Mon Aug 20 22:01:06 2012 (r302833) @@ -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::Expat))->save_parsers(); -} +#!/bin/sh + +case $1 in + POST-DEINSTALL) + perl -MXML::SAX -e 'XML::SAX->remove_parser(q(XML::SAX::Expat))->save_parsers();' + ;; +esac Modified: head/textproc/p5-XML-SAX-Expat/pkg-install ============================================================================== --- head/textproc/p5-XML-SAX-Expat/pkg-install Mon Aug 20 21:34:28 2012 (r302832) +++ head/textproc/p5-XML-SAX-Expat/pkg-install Mon Aug 20 22:01:06 2012 (r302833) @@ -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::Expat))->save_parsers(); -} +#!/bin/sh + +case $1 in + POST-INSTALL) + perl -MXML::SAX -e 'XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers();' + ;; +esac
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208202201.q7KM17OG099849>