From owner-svn-ports-head@FreeBSD.ORG Mon Aug 20 22:01:07 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 975D81065687; Mon, 20 Aug 2012 22:01:07 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 699DD8FC12; Mon, 20 Aug 2012 22:01:07 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q7KM17k3099853; Mon, 20 Aug 2012 22:01:07 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7KM17OG099849; Mon, 20 Aug 2012 22:01:07 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201208202201.q7KM17OG099849@svn.freebsd.org> From: Steve Wills Date: Mon, 20 Aug 2012 22:01:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r302833 - head/textproc/p5-XML-SAX-Expat X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2012 22:01:07 -0000 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