pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/html user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7889144cf4f7
branches:  trunk
changeset: 395386:7889144cf4f7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 22:02:39 2009 +0000

description:
user-destdir support

diffstat:

 textproc/html/Makefile |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r e9ca11a41ab6 -r 7889144cf4f7 textproc/html/Makefile
--- a/textproc/html/Makefile    Tue Jul 07 22:02:35 2009 +0000
+++ b/textproc/html/Makefile    Tue Jul 07 22:02:39 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2009/04/08 22:43:25 joerg Exp $
+# $NetBSD: Makefile,v 1.23 2009/07/07 22:02:39 joerg Exp $
 #
 
 DISTNAME=      html-4.01
@@ -13,6 +13,7 @@
 DEPENDS+=      iso8879>=1986:../../textproc/iso8879
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 WRKSRC=                ${WRKDIR}
 EXTRACT_ONLY=  # empty
@@ -24,11 +25,12 @@
 
 SGML_CATALOGS= ${INSTDIR}/catalog
 
+INSTALLATION_DIRS=     ${INSTDIR}
+
 do-install:
-       ${INSTALL_DATA_DIR} ${INSTDIR}
-       cd ${INSTDIR} && \
+       cd ${DESTDIR}${INSTDIR} && \
                ${TAR} -zxf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
-       ${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/catalog
+       ${ECHO} "CATALOG \"${ISOCAT}\"" >> ${DESTDIR}${INSTDIR}/catalog
 
 .include "../../textproc/xmlcatmgr/catalogs.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index