summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authormishka <mishka@pkgsrc.org>2012-08-02 14:35:01 +0000
committermishka <mishka@pkgsrc.org>2012-08-02 14:35:01 +0000
commitbc2e21dde75bb7931793f0d48fee97067689897f (patch)
tree794036c58b6cd91f7e9d63c389ade1716958498c /math
parentc599ee4590561eb8aeea6569dad59f338631a83e (diff)
downloadpkgsrc-bc2e21dde75bb7931793f0d48fee97067689897f.tar.gz
The R build/install process should seize all relevant environment
variables, and customization should be done via INSTALL_ENV/MAKE_ENV respectively. This also solves the internationalization issue fixed in previous commit properly. Noted by <joerg> on pkgsrc-changes@, many thanks!
Diffstat (limited to 'math')
-rw-r--r--math/R/Makefile.extension7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/R/Makefile.extension b/math/R/Makefile.extension
index 963d6593409..4ab367b3410 100644
--- a/math/R/Makefile.extension
+++ b/math/R/Makefile.extension
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.extension,v 1.15 2012/07/24 21:26:27 mishka Exp $
+# $NetBSD: Makefile.extension,v 1.16 2012/08/02 14:35:01 mishka Exp $
#
# This Makefile fragment is included by packages for R library packages.
#
@@ -21,10 +21,13 @@ WRKSRC= ${WRKDIR}/${R_PKGNAME}
INSTALLATION_DIRS= ${R_LIB}
+INSTALL_ENV+= R_LIBS=
+
do-build:
do-install:
- LC_ALL=C R_LIBS= ${LOCALBASE}/bin/R CMD INSTALL ${R_PKG_INSTALL_ARGS} ${WRKDIR}/${R_PKGNAME}
+ ${PKGSRC_SETENV} ${INSTALL_ENV} ${MAKE_ENV} ${LOCALBASE}/bin/R \
+ CMD INSTALL ${R_PKG_INSTALL_ARGS} ${WRKDIR}/${R_PKGNAME}
R_LIB= lib/R/library
R_INST_DIRS?= ${R_PKGNAME}