diff options
author | Steve Wills <swills@FreeBSD.org> | 2012-08-21 06:01:06 +0800 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2012-08-21 06:01:06 +0800 |
commit | 3930bf85ba7eeb5bee21f9bbb6db18cd4294d5a5 (patch) | |
tree | 8c9a470dfb8402109c950b5b626733acb7b08ca4 /textproc | |
parent | cf4ae83be05539786bc4d0f9e70883e5b48b04ac (diff) | |
download | freebsd-ports-gnome-3930bf85ba7eeb5bee21f9bbb6db18cd4294d5a5.tar.gz freebsd-ports-gnome-3930bf85ba7eeb5bee21f9bbb6db18cd4294d5a5.tar.zst freebsd-ports-gnome-3930bf85ba7eeb5bee21f9bbb6db18cd4294d5a5.zip |
- Update pkg install/deinstall scripts to work with pkgng
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/p5-XML-SAX-Expat/Makefile | 1 | ||||
-rw-r--r-- | textproc/p5-XML-SAX-Expat/pkg-deinstall | 13 | ||||
-rw-r--r-- | textproc/p5-XML-SAX-Expat/pkg-install | 13 |
3 files changed, 15 insertions, 12 deletions
diff --git a/textproc/p5-XML-SAX-Expat/Makefile b/textproc/p5-XML-SAX-Expat/Makefile index 8da674a96bc0..b41592cdbe07 100644 --- a/textproc/p5-XML-SAX-Expat/Makefile +++ b/textproc/p5-XML-SAX-Expat/Makefile @@ -7,6 +7,7 @@ PORTNAME= XML-SAX-Expat PORTVERSION= 0.40 +PORTREVISION= 1 CATEGORIES= textproc perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/textproc/p5-XML-SAX-Expat/pkg-deinstall b/textproc/p5-XML-SAX-Expat/pkg-deinstall index 2955952f3bee..3c1d9b9028bb 100644 --- a/textproc/p5-XML-SAX-Expat/pkg-deinstall +++ b/textproc/p5-XML-SAX-Expat/pkg-deinstall @@ -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 diff --git a/textproc/p5-XML-SAX-Expat/pkg-install b/textproc/p5-XML-SAX-Expat/pkg-install index e733316cf409..7db177a0f411 100644 --- a/textproc/p5-XML-SAX-Expat/pkg-install +++ b/textproc/p5-XML-SAX-Expat/pkg-install @@ -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 |