pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/p5-XML-SAX DESTDIR support. p5-XML-SAX wants ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7378630bfbb9
branches:  trunk
changeset: 521139:7378630bfbb9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Nov 05 16:30:43 2006 +0000

description:
DESTDIR support. p5-XML-SAX wants to use one of its modules during
installation, which makes the PERL5LIB dance necessary.

diffstat:

 textproc/p5-XML-SAX/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 914a8479c731 -r 7378630bfbb9 textproc/p5-XML-SAX/Makefile
--- a/textproc/p5-XML-SAX/Makefile      Sun Nov 05 16:24:43 2006 +0000
+++ b/textproc/p5-XML-SAX/Makefile      Sun Nov 05 16:30:43 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/03/04 21:30:50 jlam Exp $
+# $NetBSD: Makefile,v 1.16 2006/11/05 16:30:43 joerg Exp $
 
 DISTNAME=      XML-SAX-0.12
 PKGNAME=       p5-${DISTNAME}
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://search.cpan.org/dist/XML-SAX/
 COMMENT=       Perl interface to the SAX2 XML Parser
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      p5-XML-NamespaceSupport>=0.03:../../textproc/p5-XML-NamespaceSupport
 DEPENDS+=      p5-File-Temp-[0-9]*:../../devel/p5-File-Temp
 
@@ -17,5 +19,13 @@
 
 PERL5_PACKLIST=                auto/XML/SAX/.packlist
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${_USE_DESTDIR} != "no"
+.include "../../lang/perl5/vars.mk"
+
+INSTALL_ENV+=  PERL5LIB=${DESTDIR}${PERL5_INSTALLVENDORLIB}
+.endif
+
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index