diff options
author | obache <obache@pkgsrc.org> | 2011-10-28 07:41:52 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-10-28 07:41:52 +0000 |
commit | 6f7caf158a63eab43424620d2ba1bf2f3df0333f (patch) | |
tree | 924cf6173fc48aadd3bd512c97e0a5b81df34303 /lang/perl5 | |
parent | 72a037f4b57bfd0126c186c0bee5bb5d0842f156 (diff) | |
download | pkgsrc-6f7caf158a63eab43424620d2ba1bf2f3df0333f.tar.gz |
Add print-PLIST support for perl modules without .packlist.
Diffstat (limited to 'lang/perl5')
-rw-r--r-- | lang/perl5/vars.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/perl5/vars.mk b/lang/perl5/vars.mk index e7ef8646145..f5e9002fe66 100644 --- a/lang/perl5/vars.mk +++ b/lang/perl5/vars.mk @@ -1,4 +1,4 @@ -# $NetBSD: vars.mk,v 1.4 2008/01/29 16:41:36 tnn Exp $ +# $NetBSD: vars.mk,v 1.5 2011/10/28 07:41:52 obache Exp $ # # This Makefile fragment exposes several Perl configuration variables # to the package Makefiles. The variables are only defined if the @@ -8,7 +8,7 @@ _PERL5_VARS= INSTALLARCHLIB INSTALLSCRIPT \ INSTALLVENDORBIN INSTALLVENDORSCRIPT \ - INSTALLVENDORLIB INSTALLVENDORARCH \ + INSTALLVENDORARCH INSTALLVENDORLIB \ INSTALLVENDORMAN1DIR INSTALLVENDORMAN3DIR .if defined(PERL5) && exists(${PERL5:Q}) @@ -37,5 +37,8 @@ PERL5_SUB_${_var_}:= ${_PERL5_VARS_OUT:M${_var_:tl}=*:S/^${_var_:tl}=${_PERL5_PR PERL5_${_var_}?= ${PREFIX}/${PERL5_SUB_${_var_}} MAKEVARS+= PERL5_SUB_${_var_} PLIST_SUBST+= PERL5_SUB_${_var_}=${PERL5_SUB_${_var_}:Q} +PRINT_PLIST_AWK+= /^${PERL5_SUB_${_var_}:S|/|\\/|g}/ \ + { gsub(/${PERL5_SUB_${_var_}:S|/|\\/|g}/, \ + "$${PERL5_SUB_${_var_}}") } . endfor .endif # PERL5 |