mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Remove useless pre-install/post-install targets (upstream sources does it already)
Fix pkg-install/pkg-deinstall scripts
This commit is contained in:
parent
2559c20546
commit
a51be810ca
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314288
@ -1,13 +1,9 @@
|
||||
# New ports collection makefile for: XML::SAX::Expat
|
||||
# Date created: 19 Nov 2001
|
||||
# Whom: Sergey Skvortsov <skv@protey.ru>
|
||||
#
|
||||
# Created by: Sergey Skvortsov <skv@protey.ru>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= XML-SAX-Expat
|
||||
PORTVERSION= 0.40
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= textproc perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
@ -27,10 +23,4 @@ MAN3= XML::SAX::Expat.3
|
||||
post-patch:
|
||||
@${PERL} -pi -e "s/(?<=XML::SAX::Base => ')1\.00(?=')/0.25/;" ${WRKSRC}/Makefile.PL
|
||||
|
||||
pre-install:
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} ${PERL} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
|
||||
post-install:
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} ${PERL} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
POST-DEINSTALL)
|
||||
case $2 in
|
||||
DEINSTALL)
|
||||
perl -MXML::SAX -e 'XML::SAX->remove_parser(q(XML::SAX::Expat))->save_parsers();'
|
||||
;;
|
||||
esac
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
case $2 in
|
||||
POST-INSTALL)
|
||||
perl -MXML::SAX -e 'XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers();'
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user