1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Add "pkg-install".

This commit is contained in:
Sergey Skvortsov 2004-11-09 14:08:54 +00:00
parent 0d1da9264c
commit 183456e697
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121196
3 changed files with 10 additions and 6 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= XML-LibXML
PORTVERSION= 1.58
PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= XML/PHISH
@ -24,6 +25,8 @@ RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
CONFIGURE_ENV= XMLPREFIX=${LOCALBASE}
PKGDEINSTALL= ${PKGINSTALL}
MAN3= XML::LibXML.3 XML::LibXML::Attr.3 XML::LibXML::Boolean.3 \
XML::LibXML::CDATASection.3 XML::LibXML::Comment.3 \
XML::LibXML::DOM.3 XML::LibXML::Document.3 \
@ -35,9 +38,8 @@ MAN3= XML::LibXML.3 XML::LibXML::Attr.3 XML::LibXML::Boolean.3 \
XML::LibXML::SAX::Builder.3 XML::LibXML::SAX::Generator.3 \
XML::LibXML::Text.3
post-patch:
@${PERL} -pi -e 's,(-MXML::SAX),-I${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH} \1,g' \
${WRKSRC}/Makefile.PL
post-install:
@PKG_PREFIX=${PREFIX} ${PERL} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.pre.mk>

View File

@ -4,6 +4,3 @@ XML::XPath-like findnodes() interface, providing access to the XPath API
in libxml2.
WWW: http://search.cpan.org/dist/XML-LibXML/
-- Sergey Skvortsov
skv@FreeBSD.org

View File

@ -0,0 +1,5 @@
#!/usr/bin/perl
exit unless $ARGV[1]=~ /^(DE|POST\-)INSTALL$/;
$action=(($1 eq 'DE')?'remove':'add').'_parser';
eval "use XML::SAX;"; exit(-1) if $@;
XML::SAX->$action('XML::LibXML::SAX'.$_)->save_parsers() for('::Parser', '');