pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/afbcc1882cdf
branches:  trunk
changeset: 395309:afbcc1882cdf
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 20:37:28 2009 +0000

description:
user-destdir support

diffstat:

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

diffs (33 lines):

diff -r cc105dfe1e88 -r afbcc1882cdf textproc/tex2page/Makefile
--- a/textproc/tex2page/Makefile        Tue Jul 07 20:37:23 2009 +0000
+++ b/textproc/tex2page/Makefile        Tue Jul 07 20:37:28 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 20:37:28 joerg Exp $
 #
 
 DISTNAME=              tex2page
@@ -12,6 +12,8 @@
 HOMEPAGE=              http://www.ccs.neu.edu/home/dorai/tex2page/
 COMMENT=               Converts TeX manuscripts into (HTML) web pages
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      dvipsk-[0-9]*:../../print/dvipsk
 
 USE_PKGLOCALEDIR=      yes
@@ -25,10 +27,11 @@
        (cd ${WRKSRC} && ./my-tex2page tex2page-doc)
        (cd ${WRKSRC} && ./my-tex2page tex2page-doc)
 
+INSTALLATION_DIRS=     bin share/doc//tex2page
+
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/my-tex2page ${PREFIX}/bin/tex2page
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc//tex2page
-       ${INSTALL} ${WRKSRC}/*.html ${WRKSRC}/*.gif ${PREFIX}/share/doc//tex2page
+       ${INSTALL_SCRIPT} ${WRKSRC}/my-tex2page ${DESTDIR}${PREFIX}/bin/tex2page
+       ${INSTALL} ${WRKSRC}/*.html ${WRKSRC}/*.gif ${DESTDIR}${PREFIX}/share/doc//tex2page
 
 .include "../../graphics/netpbm/buildlink3.mk"
 .include "../../lang/guile16/buildlink3.mk"



Home | Main Index | Thread Index | Old Index