pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl5 Final answer to perllocal.pod problem: just...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/05c46a0a135c
branches:  trunk
changeset: 461306:05c46a0a135c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Sep 13 22:58:07 2003 +0000

description:
Final answer to perllocal.pod problem: just remove the file on pkgviews
installations.

diffstat:

 lang/perl5/module.mk |  19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 8f410ed9ef54 -r 05c46a0a135c lang/perl5/module.mk
--- a/lang/perl5/module.mk      Sat Sep 13 22:50:58 2003 +0000
+++ b/lang/perl5/module.mk      Sat Sep 13 22:58:07 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.21 2003/09/13 22:50:58 jlam Exp $
+# $NetBSD: module.mk,v 1.22 2003/09/13 22:58:07 jlam Exp $
 #
 # This Makefile fragment is intended to be included by packages that build
 # and install perl5 modules.
@@ -157,8 +157,21 @@
 GENERATE_PLIST+=       ${PERL5_GENERATE_PLIST};
 .endif
 
-# Don't linkfarm the various conflicting perllocal.pod files into a view.
-PLIST_IGNORE_FILES+=   *perllocal.pod
+# Remove the perllocal.pod file from the installation since we don't
+# bother keeping the file contents up-to-date anyway.
+#
+.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
+post-install: perl5-post-install
+.endif
+
+.PHONY: perl5-post-install
+perl5-post-install:
+       ${_PKG_SILENT}${_PKG_DEBUG}                                     \
+       for dir in ${_PERL5_INSTALLARCHLIB} ${_PERL5_INSTALLSITEARCH}; do \
+               if [ -f $$dir/perllocal.pod ]; then                     \
+                       ${RM} -f $$dir/perllocal.pod;                   \
+               fi;                                                     \
+       done
 
 # Default test target for perl5 modules
 TEST_TARGET?=  test



Home | Main Index | Thread Index | Old Index