pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/wmthemes Add support for user destinaton directory ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/60c371fe8592
branches:  trunk
changeset: 569760:60c371fe8592
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Jan 17 17:14:31 2010 +0000

description:
Add support for user destinaton directory installation.

diffstat:

 wm/wmthemes/Makefile |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 4afba47fb24f -r 60c371fe8592 wm/wmthemes/Makefile
--- a/wm/wmthemes/Makefile      Sun Jan 17 16:08:00 2010 +0000
+++ b/wm/wmthemes/Makefile      Sun Jan 17 17:14:31 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2009/06/14 22:58:09 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2010/01/17 17:14:31 tron Exp $
 
 #
 # There is no distinfo file because users can specify alternate themes
@@ -17,6 +17,8 @@
 
 DEPENDS+=      windowmaker>=0.80.0nb1:../../wm/windowmaker
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}
 DIST_SUBDIR=   wmthemes
 
@@ -46,7 +48,8 @@
          ${ECHO} "Installing files in directory ${DIR}."; \
          cd ${WRKSRC}/${DIR}; \
          for FILE in *; do \
-           ${INSTALL_DATA} "$$FILE" ${PREFIX}/${WM_DATADIR}/${DIR}; \
+           ${MKDIR} ${DESTDIR}${PREFIX}/${WM_DATADIR}/${DIR}; \
+           ${INSTALL_DATA} "$$FILE" ${DESTDIR}${PREFIX}/${WM_DATADIR}/${DIR}; \
            ${ECHO} "${WM_DATADIR}/${DIR}/$$FILE" >>${PLIST_SRC}; \
          done; \
        fi
@@ -55,10 +58,10 @@
        for DIR in *.themed; do \
          if [ -d "$$DIR" ] && [ -n "`${LS} "$$DIR"`" ]; then \
            ${ECHO} "Installing \"`${BASENAME} "$$DIR" .themed`\" theme."; \
-           ${INSTALL_DATA_DIR} "${PREFIX}/${WM_DATADIR}/Themes/$$DIR"; \
+           ${INSTALL_DATA_DIR} "${DESTDIR}${PREFIX}/${WM_DATADIR}/Themes/$$DIR"; \
            cd "${WRKSRC}/$$DIR"; \
            for FILE in *; do \
-             ${INSTALL_DATA} "$$FILE" "${PREFIX}/${WM_DATADIR}/Themes/$$DIR"; \
+             ${INSTALL_DATA} "$$FILE" "${DESTDIR}${PREFIX}/${WM_DATADIR}/Themes/$$DIR"; \
              ${ECHO} "${WM_DATADIR}/Themes/$$DIR/$$FILE" >>${PLIST_SRC}; \
            done; \
            cd ..; \



Home | Main Index | Thread Index | Old Index