summaryrefslogtreecommitdiff
path: root/lang/perl5/vars.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-08-06 06:18:44 +0000
committerjlam <jlam>2005-08-06 06:18:44 +0000
commitea18d090b4d53d531b6357763a668e6a12f80f37 (patch)
tree554688efac79710dce203345436bb3e8cb9748b1 /lang/perl5/vars.mk
parentc86a2720fa78bf607efdaf49b37d6d8b20f3d188 (diff)
downloadpkgsrc-ea18d090b4d53d531b6357763a668e6a12f80f37.tar.gz
Update lang/perl5 to 5.8.7. Changes from version 5.8.6 include updates
for many "core" modules, UTF-8 and Unicode bugfixes, and ithreads bugfixes. The major changes are in the pkgsrc infrastructure to handle Perl and Perl modules. All pkgsrc-installed Perl modules are now installed in "vendor" directories, and the perl interpreter has been modifed to search for libraries in the following order: site, vendor, perl. The Perl library is stored in a directory that is named for the Perl ABI version associated with the Perl release, so any updates of Perl to newer versions can be done "in-place" as long as Perl ABI version remains the same. All Perl scripts and man pages are stored in locations that won't conflict between site, vendor, and perl modules, and a new utility perllink(1) now manages symlinks to those scripts and man pages under the usual ${LOCALBASE}/bin and ${LOCALBASE}/man/man1. PERL5_SITEPREFIX may be set to the prefix where local, site-specific modules will be installed, e.g. PERL5_SITEPREFIX=/usr/local. Note that modules installed here are completely unmanaged by pkgsrc. Update the buildlink and tool dependencies on perl to require perl>=5.8.7 to reflect the new locations for Perl modules and the Perl shared library.
Diffstat (limited to 'lang/perl5/vars.mk')
-rw-r--r--lang/perl5/vars.mk61
1 files changed, 20 insertions, 41 deletions
diff --git a/lang/perl5/vars.mk b/lang/perl5/vars.mk
index fa309e69ff2..86150d9f836 100644
--- a/lang/perl5/vars.mk
+++ b/lang/perl5/vars.mk
@@ -1,4 +1,4 @@
-# $NetBSD: vars.mk,v 1.2 2005/05/12 20:59:29 jlam Exp $
+# $NetBSD: vars.mk,v 1.3 2005/08/06 06:18:45 jlam Exp $
#
# This Makefile fragment exposes several Perl configuration variables
# to the package Makefiles. The variables are only defined if the
@@ -6,18 +6,19 @@
.include "../../mk/bsd.prefs.mk"
-_PERL5_SITEVARS= \
- INSTALLSITEBIN INSTALLSITELIB INSTALLSITEARCH \
- INSTALLSITEMAN1DIR INSTALLSITEMAN3DIR \
- SITELIBEXP SITEARCHEXP
+_PERL5_VARS= INSTALLARCHLIB INSTALLSCRIPT \
+ INSTALLVENDORBIN INSTALLVENDORSCRIPT \
+ INSTALLVENDORLIB INSTALLVENDORARCH \
+ INSTALLVENDORMAN1DIR INSTALLVENDORMAN3DIR
-_PERL5_SITEVAR.INSTALLSITEBIN= installsitebin
-_PERL5_SITEVAR.INSTALLSITELIB= installsitelib
-_PERL5_SITEVAR.INSTALLSITEARCH= installsitearch
-_PERL5_SITEVAR.INSTALLSITEMAN1DIR= installsiteman1dir
-_PERL5_SITEVAR.INSTALLSITEMAN3DIR= installsiteman3dir
-_PERL5_SITEVAR.SITELIBEXP= sitelibexp
-_PERL5_SITEVAR.SITEARCHEXP= sitearchexp
+_PERL5_VAR.INSTALLARCHLIB= installarchlib
+_PERL5_VAR.INSTALLSCRIPT= installscript
+_PERL5_VAR.INSTALLVENDORBIN= installvendorbin
+_PERL5_VAR.INSTALLVENDORSCRIPT= installvendorscript
+_PERL5_VAR.INSTALLVENDORLIB= installvendorlib
+_PERL5_VAR.INSTALLVENDORARCH= installvendorarch
+_PERL5_VAR.INSTALLVENDORMAN1DIR= installvendorman1dir
+_PERL5_VAR.INSTALLVENDORMAN3DIR= installvendorman3dir
.if defined(PERL5) && exists(${PERL5:Q})
#
@@ -29,40 +30,18 @@ _PERL5_PREFIX!= \
eval `${PERL5:Q} -V:prefix 2>/dev/null`; ${ECHO} $$prefix
. endif
MAKEVARS+= _PERL5_PREFIX
-. if !defined(_PERL5_SITEPREFIX)
-_PERL5_SITEPREFIX!= \
- eval `${PERL5:Q} -V:siteprefix 2>/dev/null`; ${ECHO} $$siteprefix
-. endif
-MAKEVARS+= _PERL5_SITEPREFIX
#
-# Define PERL5_SUB_* as the site variables minus the installation prefix
+# Define PERL5_SUB_* as the vendor variables minus the installation prefix
# define later variables.
#
-. for _var_ in ${_PERL5_SITEVARS}
+. for _var_ in ${_PERL5_VARS}
. if !defined(PERL5_SUB_${_var_})
PERL5_SUB_${_var_}!= \
- eval `${PERL5:Q} -V:${_PERL5_SITEVAR.${_var_}} 2>/dev/null`; \
- ${ECHO} $${${_PERL5_SITEVAR.${_var_}}} | ${SED} -e "s,^${_PERL5_SITEPREFIX}/,,"
+ eval `${PERL5:Q} -V:${_PERL5_VAR.${_var_}} 2>/dev/null`; \
+ ${ECHO} $${${_PERL5_VAR.${_var_}}} | ${SED} -e "s,^${_PERL5_PREFIX}/,,"
. endif
-MAKEVARS+= PERL5_SUB_${_var_}
+PERL5_${_var_}?= ${PREFIX}/${PERL5_SUB_${_var_}}
+MAKEVARS+= PERL5_SUB_${_var_}
+PLIST_SUBST+= PERL5_SUB_${_var_}=${PERL5_SUB_${_var_}:Q}
. endfor
-
-. if !defined(PERL5_SUB_INSTALLARCHLIB)
-PERL5_SUB_INSTALLARCHLIB!= \
- eval `${PERL5} -V:installarchlib 2>/dev/null`; \
- ${ECHO} $$installarchlib | ${SED} -e "s,^${_PERL5_PREFIX}/,,"
-. endif
-MAKEVARS+= PERL5_SUB_INSTALLARCHLIB
-. if !defined(PERL5_SUB_INSTALLSCRIPT)
-PERL5_SUB_INSTALLSCRIPT!= \
- eval `${PERL5} -V:installscript 2>/dev/null`; \
- ${ECHO} $$installscript | ${SED} -e "s,^${_PERL5_PREFIX}/,,"
-. endif
-MAKEVARS+= PERL5_SUB_INSTALLSCRIPT
.endif # PERL5
-
-.if ${PKG_INSTALLATION_TYPE} == "overwrite"
-. for _var_ in SITELIB SITEARCH ARCHLIB
-PERL5_${_var_}?= ${LOCALBASE}/${PERL5_SUB_INSTALL${_var_}}
-. endfor
-.endif