pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4932a87a7bff
branches:  trunk
changeset: 395343:4932a87a7bff
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 21:08:34 2009 +0000

description:
user-destdir support

diffstat:

 textproc/lq-sp/Makefile     |   5 +++--
 textproc/lua-expat/Makefile |  11 ++++++-----
 textproc/makeztxt/Makefile  |  11 ++++++-----
 textproc/metauml/Makefile   |   6 ++++--
 textproc/ndtpd/Makefile     |   8 +++++---
 5 files changed, 24 insertions(+), 17 deletions(-)

diffs (145 lines):

diff -r d6834b34b031 -r 4932a87a7bff textproc/lq-sp/Makefile
--- a/textproc/lq-sp/Makefile   Tue Jul 07 21:08:31 2009 +0000
+++ b/textproc/lq-sp/Makefile   Tue Jul 07 21:08:34 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2006/04/22 09:22:15 rillig Exp $
+# $NetBSD: Makefile,v 1.12 2009/07/07 21:11:08 joerg Exp $
 #
 
 DISTNAME=      lq-sp-1.3.4.12
@@ -10,6 +10,7 @@
 COMMENT=       Modified SP package
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 USE_LANGUAGES= c c++
 
@@ -25,6 +26,6 @@
 INSTALLATION_DIRS+=    bin
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/nsgmls/lq-nsgmls ${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/nsgmls/lq-nsgmls ${DESTDIR}${PREFIX}/bin
 
 .include "../../mk/bsd.pkg.mk"
diff -r d6834b34b031 -r 4932a87a7bff textproc/lua-expat/Makefile
--- a/textproc/lua-expat/Makefile       Tue Jul 07 21:08:31 2009 +0000
+++ b/textproc/lua-expat/Makefile       Tue Jul 07 21:08:34 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2009/05/20 00:58:28 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2009/07/07 21:10:16 joerg Exp $
 #
 
 DISTNAME=      luaexpat-1.0a
@@ -11,17 +11,18 @@
 HOMEPAGE=      http://www.keplerproject.org/luaexpat/
 COMMENT=       XML parser for LUA based on expat
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=    gmake
 MAKE_FILE=     makefile
 
 CFLAGS+=       -fPIC
 
-INSTALLATION_DIRS=     lib
+INSTALLATION_DIRS=     lib share/examples/lua
 
 do-install:
-       ${INSTALL_DATA} ${WRKSRC}/liblxp.so ${PREFIX}/lib/liblualxp.so
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lua
-       ${INSTALL_DATA} ${WRKSRC}/test.lua ${PREFIX}/share/examples/lua/lxp.lua
+       ${INSTALL_DATA} ${WRKSRC}/liblxp.so ${DESTDIR}${PREFIX}/lib/liblualxp.so
+       ${INSTALL_DATA} ${WRKSRC}/test.lua ${DESTDIR}${PREFIX}/share/examples/lua/lxp.lua
 
 .include "../../textproc/expat/buildlink3.mk"
 .include "../../lang/lua/buildlink3.mk"
diff -r d6834b34b031 -r 4932a87a7bff textproc/makeztxt/Makefile
--- a/textproc/makeztxt/Makefile        Tue Jul 07 21:08:31 2009 +0000
+++ b/textproc/makeztxt/Makefile        Tue Jul 07 21:08:34 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2006/06/20 23:41:14 minskim Exp $
+# $NetBSD: Makefile,v 1.13 2009/07/07 21:09:14 joerg Exp $
 #
 
 DISTNAME=      ${PKGNAME}b-src
@@ -10,15 +10,16 @@
 HOMEPAGE=      http://gutenpalm.sourceforge.net/makeztxt.php
 COMMENT=       ASCII text to Palm zTXT database converter
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}/${PKGNAME_NOREV}b
 
-INSTALLATION_DIRS=     bin
+INSTALLATION_DIRS=     bin share/doc/makeztxt
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/makeztxt ${PREFIX}/bin
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/makeztxt
+       ${INSTALL_PROGRAM} ${WRKSRC}/makeztxt ${DESTDIR}${PREFIX}/bin
 .for doc in COPYING ChangeLog README
-       ${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/makeztxt
+       ${INSTALL_DATA} ${WRKSRC}/${doc} ${DESTDIR}${PREFIX}/share/doc/makeztxt
 .endfor
 
 .include "../../devel/libgetopt/buildlink3.mk"
diff -r d6834b34b031 -r 4932a87a7bff textproc/metauml/Makefile
--- a/textproc/metauml/Makefile Tue Jul 07 21:08:31 2009 +0000
+++ b/textproc/metauml/Makefile Tue Jul 07 21:08:34 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/02/01 20:41:37 tonio Exp $
+# $NetBSD: Makefile,v 1.2 2009/07/07 21:08:34 joerg Exp $
 #
 
 DISTNAME=      metauml_lib_0.2.5
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://metauml.sourceforge.net/
 COMMENT=       MetaPost library for typesetting UML diagrams
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 NO_BUILD=      yes
 WRKSRC=                ${WRKDIR}/${PKGBASE}_lib
 MPDIR=         ${PKG_LOCALTEXMFPREFIX}/metapost/${PKGBASE}
@@ -18,7 +20,7 @@
 INSTALLATION_DIRS+=    ${MPDIR}
 
 do-install:
-       ${INSTALL_DATA} ${WRKSRC}/thrunk/*.mp ${MPDIR}
+       ${INSTALL_DATA} ${WRKSRC}/thrunk/*.mp ${DESTDIR}${MPDIR}
 
 .include "../../print/teTeX/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r d6834b34b031 -r 4932a87a7bff textproc/ndtpd/Makefile
--- a/textproc/ndtpd/Makefile   Tue Jul 07 21:08:31 2009 +0000
+++ b/textproc/ndtpd/Makefile   Tue Jul 07 21:08:34 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2007/04/27 04:08:19 uebayasi Exp $
+# $NetBSD: Makefile,v 1.30 2009/07/07 21:10:44 joerg Exp $
 #
 
 DISTNAME=      ndtpd-3.1.5
@@ -11,6 +11,7 @@
 COMMENT=       Server for accessing CD-ROM books with NDTP
 
 PKG_INSTALLATION_TYPES=        pkgviews overwrite
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 USE_TOOLS+=    makeinfo perl:run
 USE_LIBTOOL=   YES
@@ -41,10 +42,11 @@
 NDTPD_RUNDIR=  /var/run
 # XXX NDTPD actually uses ${NDTPD_RUNDIR}/ndtpd.
 
+INSTALLATION_DIRS=     ${EGDIR}
+
 post-install:
-       ${INSTALL_DATA_DIR} ${EGDIR}
        ${INSTALL_DATA} ${WRKSRC}/ndtpd.conf.sample \
-               ${EGDIR}/ndtpd.conf.default
+               ${DESTDIR}${EGDIR}/ndtpd.conf.default
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../textproc/eb/buildlink3.mk"



Home | Main Index | Thread Index | Old Index