pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/tex-dhucs Fix installation and add user-destdir ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/78a4281be4ee
branches:  trunk
changeset: 396796:78a4281be4ee
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Aug 03 15:37:41 2009 +0000

description:
Fix installation and add user-destdir support

diffstat:

 print/tex-dhucs/Makefile |  27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diffs (57 lines):

diff -r ef691130138d -r 78a4281be4ee print/tex-dhucs/Makefile
--- a/print/tex-dhucs/Makefile  Mon Aug 03 15:26:25 2009 +0000
+++ b/print/tex-dhucs/Makefile  Mon Aug 03 15:37:41 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2009/07/22 09:01:43 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2009/08/03 15:37:41 joerg Exp $
 
 DISTNAME=      dhucs-3.2.2-20070507
 PKGNAME=       tex-${DISTNAME:C/-[0-9]+$//}
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://faq.ktug.or.kr/faq/Hangul-ucs
 COMMENT=       LaTeX package to typeset Korean documents (UTF-8)
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      tex-ucs>=20041710nb2:../../print/tex-ucs
 DEPENDS+=      tex-unttf>=1.0.1.20070507:../../fonts/tex-unttf
 
@@ -22,26 +24,27 @@
 
 REPLACE_PERL+= script/makeindex-dhucs.pl
 
-INSTALLATION_DIRS=     bin
+INSTALLATION_DIRS=     bin ${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs/unttf \
+       ${PKG_LOCALTEXMFPREFIX}/makeindex \
+       ${PKG_LOCALTEXMFPREFIX}/tex/ucsplain
 
 .include "../../print/teTeX/module.mk"
 
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/script/makeindex-dhucs.pl \
-               ${PREFIX}/bin/makeindex-dhucs
+               ${DESTDIR}${PREFIX}/bin/makeindex-dhucs
        ${INSTALL_DATA} ${WRKSRC}/makeindex/dhucs.ist \
-               ${PKG_LOCALTEXMFPREFIX}/makeindex/
-       ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/makeindex/
        cd ${WRKSRC}/tex-latex-dhucs && pax -rwppm . \
-               ${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs/
-       find ${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs \
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs/
+       find ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs \
                -type d -exec chmod ${PKGDIRMODE} {} \;
-       find ${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs \
+       find ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs \
                -type f -exec chmod ${SHAREMODE} {} \;
-       ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/ucsplain
-       ${INSTALL_DATA} ${WRKSRC}/ucsplain/*.* ${PKG_LOCALTEXMFPREFIX}/tex/ucsplain
-       ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs/unttf
+       ${INSTALL_DATA_DIR} 
+       ${INSTALL_DATA} ${WRKSRC}/ucsplain/*.* ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/ucsplain
+       ${INSTALL_DATA_DIR} 
        ${INSTALL_DATA} ${WRKDIR}/fonts-unttf/tex/latex/dhucs/unttf/*.* \
-               ${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs/unttf/
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/dhucs/unttf/
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index