summaryrefslogtreecommitdiff
path: root/lang/perl5/files
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2010-02-14 15:10:38 +0000
committertron <tron@pkgsrc.org>2010-02-14 15:10:38 +0000
commit1efb1f90d3a7afe0fa06679bdc8f4abe839383ba (patch)
tree6cf2f1fe28f3bfc3e5b18c0a32affba3799185af /lang/perl5/files
parenta39fac0d44ef6690afc0b3660d008129f35d0d14 (diff)
downloadpkgsrc-1efb1f90d3a7afe0fa06679bdc8f4abe839383ba.tar.gz
Use "PKG_PREFIX" if it is set and the compiled in path otherwise.
Based on a suggestion by Steven Drake.
Diffstat (limited to 'lang/perl5/files')
-rw-r--r--lang/perl5/files/deinstall.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/perl5/files/deinstall.tmpl b/lang/perl5/files/deinstall.tmpl
index e3fa291eaef..4280fed56d4 100644
--- a/lang/perl5/files/deinstall.tmpl
+++ b/lang/perl5/files/deinstall.tmpl
@@ -1,4 +1,4 @@
-# $NetBSD: deinstall.tmpl,v 1.2 2010/02/03 13:29:37 tron Exp $
+# $NetBSD: deinstall.tmpl,v 1.3 2010/02/14 15:10:38 tron Exp $
case ${STAGE} in
DEINSTALL)
@@ -7,17 +7,17 @@ DEINSTALL)
# Remove the perllocal.pod file.
case "$archlib" in
- $prefix/*) archlib="@PREFIX@/${archlib#$prefix/}" ;;
+ $prefix/*) archlib="${PKG_PREFIX-@PREFIX@}/${archlib#$prefix/}" ;;
esac
${RM} -f $archlib/perllocal.pod
${RMDIR} -p $archlib 2>/dev/null || ${TRUE}
# Remove any symlinked bits that belong to this module.
- $scriptdir/perllink -f -p @PREFIX@ delete ${PERL5_PACKLIST}
+ $scriptdir/perllink -f -p ${PKG_PREFIX-@PREFIX@} delete ${PERL5_PACKLIST}
# If this is not the perl package, then re-link any perl bits
# back into place.
#
- @PERL5_COMMENT@$scriptdir/perllink -p @PREFIX@ add
+ @PERL5_COMMENT@$scriptdir/perllink -p ${PKG_PREFIX-@PREFIX@} add
;;
esac