diff options
author | crees <crees@FreeBSD.org> | 2012-08-21 20:55:18 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2012-08-21 20:55:18 +0800 |
commit | 28819ac4603da45b8e4088085e42193e57b302b7 (patch) | |
tree | 551b0a9939666507db5685f2df15d2598639ef52 /textproc | |
parent | 82404aef70868e45a57c417dc2168ac71f35f79d (diff) | |
download | freebsd-ports-gnome-28819ac4603da45b8e4088085e42193e57b302b7.tar.gz freebsd-ports-gnome-28819ac4603da45b8e4088085e42193e57b302b7.tar.zst freebsd-ports-gnome-28819ac4603da45b8e4088085e42193e57b302b7.zip |
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
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/p5-XML-SAX-ExpatXS/Makefile | 1 | ||||
-rw-r--r-- | textproc/p5-XML-SAX-ExpatXS/pkg-deinstall | 13 | ||||
-rw-r--r-- | textproc/p5-XML-SAX-ExpatXS/pkg-install | 13 |
3 files changed, 15 insertions, 12 deletions
diff --git a/textproc/p5-XML-SAX-ExpatXS/Makefile b/textproc/p5-XML-SAX-ExpatXS/Makefile index 78ee7077bb28..9c40f399de7f 100644 --- a/textproc/p5-XML-SAX-ExpatXS/Makefile +++ b/textproc/p5-XML-SAX-ExpatXS/Makefile @@ -7,6 +7,7 @@ PORTNAME= XML-SAX-ExpatXS PORTVERSION= 1.32 +PORTREVISION= 1 CATEGORIES= textproc perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/textproc/p5-XML-SAX-ExpatXS/pkg-deinstall b/textproc/p5-XML-SAX-ExpatXS/pkg-deinstall index ea31be4dfb8e..12b8c199d131 100644 --- a/textproc/p5-XML-SAX-ExpatXS/pkg-deinstall +++ b/textproc/p5-XML-SAX-ExpatXS/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::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 diff --git a/textproc/p5-XML-SAX-ExpatXS/pkg-install b/textproc/p5-XML-SAX-ExpatXS/pkg-install index 79f0e7ffd55f..68233ec51c9e 100644 --- a/textproc/p5-XML-SAX-ExpatXS/pkg-install +++ b/textproc/p5-XML-SAX-ExpatXS/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::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 |