summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-09-13 22:58:07 +0000
committerjlam <jlam@pkgsrc.org>2003-09-13 22:58:07 +0000
commit78f8cb64a8df99f48d30eb4e56f67c8c8c038cee (patch)
treeba55cac12e1f72534900c51f0f3d47f9bc968249 /lang/perl5
parentb7bdc704da4777782ce254e1b0eb0bb9a83e48d5 (diff)
downloadpkgsrc-78f8cb64a8df99f48d30eb4e56f67c8c8c038cee.tar.gz
Final answer to perllocal.pod problem: just remove the file on pkgviews
installations.
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/module.mk19
1 files changed, 16 insertions, 3 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index 0463ec7b5f6..d37f2c43c7b 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -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 @@ PERL5_GENERATE_PLIST= ${PERL5_PLIST_COMMENT}; \
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