[Midnightbsd-cvs] CVS Commit: textproc/p5-XML-SAX-Expat: I'm not a Perl master like

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Aug 15 00:59:51 EDT 2007


Log Message:
-----------
I'm not a Perl master like ctriv, but I think I've got this port installing based on the changes he made to p5-XML-SAX yesterday.

Modified Files:
--------------
    mports/textproc/p5-XML-SAX-Expat:
        Makefile (r1.1 -> r1.2)
        pkg-plist (r1.1 -> r1.2)

Added Files:
-----------
    mports/textproc/p5-XML-SAX-Expat/files:
        patch-Makefile.PL (r1.1)

-------------- next part --------------
Index: pkg-plist
===================================================================
RCS file: /home/cvs/mports/textproc/p5-XML-SAX-Expat/pkg-plist,v
retrieving revision 1.1
retrieving revision 1.2
diff -Ltextproc/p5-XML-SAX-Expat/pkg-plist -Ltextproc/p5-XML-SAX-Expat/pkg-plist -u -r1.1 -r1.2
--- textproc/p5-XML-SAX-Expat/pkg-plist
+++ textproc/p5-XML-SAX-Expat/pkg-plist
@@ -5,3 +5,4 @@
 @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/SAX
 @dirrmtry %%SITE_PERL%%/XML
 @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML
+ at exec %%PERL%% -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers();" > /dev/null 2>&1
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/textproc/p5-XML-SAX-Expat/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -Ltextproc/p5-XML-SAX-Expat/Makefile -Ltextproc/p5-XML-SAX-Expat/Makefile -u -r1.1 -r1.2
--- textproc/p5-XML-SAX-Expat/Makefile
+++ textproc/p5-XML-SAX-Expat/Makefile
@@ -8,6 +8,7 @@
 
 PORTNAME=	XML-SAX-Expat
 PORTVERSION=	0.38
+PORTREVISION=	1
 CATEGORIES=	textproc perl5
 MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
 MASTER_SITE_SUBDIR=	XML
@@ -15,6 +16,7 @@
 
 MAINTAINER=	ports at MidnightBSD.org
 COMMENT=	Simple API for XML
+LICENSE=        perl
 
 RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
 		${SITE_PERL}/XML/SAX.pm:${PORTSDIR}/textproc/p5-XML-SAX \
@@ -23,15 +25,17 @@
 
 PERL_CONFIGURE=	yes
 
+PLIST_SUB+=     PERL=${PERL}
+
 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
+#pre-install:
+#	@${SETENV} PKG_PREFIX=${PREFIX} ${PERL} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 
-post-install:
-	@${SETENV} PKG_PREFIX=${PREFIX} ${PERL} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+#post-install:
+#	@${SETENV} PKG_PREFIX=${PREFIX} ${PERL} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 
 .include <bsd.port.mk>
--- /dev/null
+++ textproc/p5-XML-SAX-Expat/files/patch-Makefile.PL
@@ -0,0 +1,21 @@
+--- Makefile.PL.orig	Wed Aug 15 00:48:04 2007
++++ Makefile.PL	Wed Aug 15 00:48:35 2007
+@@ -14,18 +14,3 @@
+                      },
+ );
+ 
+-
+-## add ourselves to the list of installed parsers
+-sub MY::install {
+-    package MY;
+-    my $script = shift->SUPER::install(@_);
+-    $script =~ s/install :: (.*)$/install :: $1 install_sax_expat/m;
+-    $script .= <<"INSTALL";
+-
+-install_sax_expat :
+-\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()"
+-
+-INSTALL
+-
+-    return $script;
+-}


More information about the Midnightbsd-cvs mailing list