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/178a54af43a8
branches:  trunk
changeset: 561238:178a54af43a8
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 37c136319cee -r 178a54af43a8 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