pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/tex-memhangul-ucs Fix installation and add destd...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a451d663f9b
branches:  trunk
changeset: 397754:2a451d663f9b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Aug 18 16:29:21 2009 +0000

description:
Fix installation and add destdir support.

diffstat:

 print/tex-memhangul-ucs/Makefile |  19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diffs (46 lines):

diff -r f5c6d3fd498c -r 2a451d663f9b print/tex-memhangul-ucs/Makefile
--- a/print/tex-memhangul-ucs/Makefile  Tue Aug 18 16:24:29 2009 +0000
+++ b/print/tex-memhangul-ucs/Makefile  Tue Aug 18 16:29:21 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/07/22 09:01:44 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2009/08/18 16:29:21 joerg Exp $
 
 DISTNAME=      memhangul-ucs-1.4.4f
 PKGNAME=       tex-${DISTNAME}
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://faq.ktug.or.kr/faq/MemhangulClass
 COMMENT=       Korean support in memoir
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      tex-dhucs>=2.6:../../print/tex-dhucs
 DEPENDS+=      tex-memoir>=1.618:../../print/tex-memoir
 
@@ -18,18 +20,21 @@
 
 .include "../../print/teTeX/module.mk"
 
+INSTALLATION_DIRS=     ${PKG_LOCALTEXMFPREFIX}/doc/latex/memhangul \
+                       ${PKG_LOCALTEXMFPREFIX}/tex/latex/memhangul \
+                       ${PKG_LOCALTEXMFPREFIX}/fonts/cmap \
+                       ${PKG_LOCALTEXMFPREFIX}/makeindex/
+
 do-install:
-       ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/doc/latex/memhangul
 .for f in appendixtest.tex doeun.bb doeun.png memucstest.tex
        ${INSTALL_DATA} ${WRKSRC}/doc/memhangul-ucs/${f} \
-               ${PKG_LOCALTEXMFPREFIX}/doc/latex/memhangul
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/doc/latex/memhangul
 .endfor
        ${INSTALL_DATA} ${WRKSRC}/fonts/cmap/UTF8-UCS2 \
-               ${PKG_LOCALTEXMFPREFIX}/fonts/cmap/
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/fonts/cmap/
        ${INSTALL_DATA} ${WRKSRC}/makeindex/memucs-manual.ist \
-               ${PKG_LOCALTEXMFPREFIX}/makeindex/
-       ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/memhangul
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/makeindex/
        ${INSTALL_DATA} ${WRKSRC}/tex/latex/memhangul/*.sty \
-               ${PKG_LOCALTEXMFPREFIX}/tex/latex/memhangul/
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/memhangul/
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index