pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b83ca9b8bdc6
branches:  trunk
changeset: 561159:b83ca9b8bdc6
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 20:36:32 2009 +0000

description:
user-destdir support

diffstat:

 textproc/trang/Makefile |  16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diffs (38 lines):

diff -r 58765d2de804 -r b83ca9b8bdc6 textproc/trang/Makefile
--- a/textproc/trang/Makefile   Tue Jul 07 20:35:53 2009 +0000
+++ b/textproc/trang/Makefile   Tue Jul 07 20:36:32 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/08/06 17:37:52 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2009/07/07 20:36:32 joerg Exp $
 #
 
 DISTNAME=              trang-20030619
@@ -10,6 +10,8 @@
 HOMEPAGE=              http://www.thaiopensource.com/relaxng/trang.html
 COMMENT=               Multi-format schema converter based on RELAX NG
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=              jing-[0-9]*:../../textproc/jing
 
 USE_JAVA=              run
@@ -19,13 +21,13 @@
        ${ECHO} "#!/bin/sh" > ${WRKSRC}/trang
        ${ECHO} "${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/libexec/trang/trang.jar"' "$$@"' >> ${WRKSRC}/trang
 
+INSTALLATION_DIRS=     bin libexec/trang share/doc/trang
+
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/trang ${PREFIX}/bin
-       ${INSTALL_DATA_DIR} ${PREFIX}/libexec/trang
-       ${INSTALL_DATA} ${WRKSRC}/trang.jar ${PREFIX}/libexec/trang
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/trang
-       ${INSTALL_DATA} ${WRKSRC}/copying.txt ${PREFIX}/share/doc/trang
-       ${INSTALL_DATA} ${WRKSRC}/trang-manual.html ${PREFIX}/share/doc/trang
+       ${INSTALL_SCRIPT} ${WRKSRC}/trang ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/trang.jar ${DESTDIR}${PREFIX}/libexec/trang
+       ${INSTALL_DATA} ${WRKSRC}/copying.txt ${DESTDIR}${PREFIX}/share/doc/trang
+       ${INSTALL_DATA} ${WRKSRC}/trang-manual.html ${DESTDIR}${PREFIX}/share/doc/trang
 
 .include "../../mk/java-vm.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index