From 183456e697ec4815ed79d9656b78f87797181215 Mon Sep 17 00:00:00 2001 From: Sergey Skvortsov Date: Tue, 9 Nov 2004 14:08:54 +0000 Subject: [PATCH] Add "pkg-install". --- textproc/p5-XML-LibXML/Makefile | 8 +++++--- textproc/p5-XML-LibXML/pkg-descr | 3 --- textproc/p5-XML-LibXML/pkg-install | 5 +++++ 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 textproc/p5-XML-LibXML/pkg-install diff --git a/textproc/p5-XML-LibXML/Makefile b/textproc/p5-XML-LibXML/Makefile index 47d5ac99050e..08aeb5a21520 100644 --- a/textproc/p5-XML-LibXML/Makefile +++ b/textproc/p5-XML-LibXML/Makefile @@ -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 diff --git a/textproc/p5-XML-LibXML/pkg-descr b/textproc/p5-XML-LibXML/pkg-descr index a9927bd9851e..3d742b4878da 100644 --- a/textproc/p5-XML-LibXML/pkg-descr +++ b/textproc/p5-XML-LibXML/pkg-descr @@ -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 diff --git a/textproc/p5-XML-LibXML/pkg-install b/textproc/p5-XML-LibXML/pkg-install new file mode 100644 index 000000000000..a6e6bdad8455 --- /dev/null +++ b/textproc/p5-XML-LibXML/pkg-install @@ -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', '');