pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2006Q3]: pkgsrc/math/R Pullup ticket 1853 - requested by dmcma...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/de9569e58be7
branches:  pkgsrc-2006Q3
changeset: 519135:de9569e58be7
user:      salo <salo%pkgsrc.org@localhost>
date:      Tue Oct 17 15:32:08 2006 +0000

description:
Pullup ticket 1853 - requested by dmcmahill
portability fixes for R

Revisions pulled up:
- pkgsrc/math/R/Makefile                        1.86

   Module Name:         pkgsrc
   Committed By:        dmcmahill
   Date:                Sun Oct  8 23:12:48 UTC 2006

   Modified Files:
        pkgsrc/math/R: Makefile

   Log Message:
   The variable modifier $${dir#${PREFIX}/} is not portable so eliminate its
   use.  Fixes R packaging on solaris.

diffstat:

 math/R/Makefile |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r c5e1126c4e5c -r de9569e58be7 math/R/Makefile
--- a/math/R/Makefile   Tue Oct 17 15:03:22 2006 +0000
+++ b/math/R/Makefile   Tue Oct 17 15:32:08 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.85 2006/06/13 12:28:09 markd Exp $
+# $NetBSD: Makefile,v 1.85.4.1 2006/10/17 15:32:08 salo Exp $
 
 DISTNAME=              R-2.3.1
 CATEGORIES=            math
@@ -74,7 +74,7 @@
 INSTALL_SCRIPT=                ${INSTALL} ${COPY} -m ${BINMODE}
 
 PLIST_SRC=             ${WRKDIR}/.PLIST_SRC
-R_LIBDIR=              ${PREFIX}/lib/R
+R_LIBDIR=              lib/R
 R_INSTALL_DIRS=                ${R_LIBDIR}
 
 BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.1
@@ -99,12 +99,12 @@
 # when updating.
 #
 post-install:
-       ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${R_LIBDIR}
+       ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${R_LIBDIR}
        ${RM} -f ${PLIST_SRC}
        ${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
        ( cd ${PREFIX};                                                 \
          for dir in ${R_INSTALL_DIRS}; do                              \
-               ${FIND} $${dir#${PREFIX}/} \( -type f -o -type l \) -print; \
+               ${FIND} $${dir} \( -type f -o -type l \) -print; \
          done;                                                         \
        ) | ${GREP} -v "lib/R/doc/html/packages.html" |                 \
        ${GREP} -v "lib/R/doc/html/search/index.txt" |                  \
@@ -113,7 +113,7 @@
        ${ECHO} "@unexec "${RM:Q}" -f %D/lib/R/doc/html/search/index.txt" >> ${PLIST_SRC}
        ( cd ${PREFIX} &&                                               \
          for dir in ${R_INSTALL_DIRS}; do                              \
-               ${FIND} $${dir#${PREFIX}/} -type d -print;              \
+               ${FIND} $${dir} -type d -print;         \
          done;                                                         \
        ) | ${SORT} -ur | ${SED} -e "s|^|@dirrm |" >> ${PLIST_SRC}
        ${ECHO} "@exec R CMD "${PERL5:Q}" %D/lib/R/share/perl/build-help.pl --htmllists 2>/dev/null" >> ${PLIST_SRC}



Home | Main Index | Thread Index | Old Index