summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjoerg <joerg>2009-08-03 15:37:41 +0000
committerjoerg <joerg>2009-08-03 15:37:41 +0000
commit9b521066aa8cb828cfd801899f8b79d72d50140d (patch)
tree4cd7f830d218741360c33d55469186a2bb96d501 /print
parentf0484670bd652d88caefa98a04d25b2a50eee25d (diff)
downloadpkgsrc-9b521066aa8cb828cfd801899f8b79d72d50140d.tar.gz
Fix installation and add user-destdir support
Diffstat (limited to 'print')
-rw-r--r--print/tex-dhucs/Makefile27
1 files changed, 15 insertions, 12 deletions
diff --git a/print/tex-dhucs/Makefile b/print/tex-dhucs/Makefile
index d82f2e5f385..cbb9afd5e29 100644
--- a/print/tex-dhucs/Makefile
+++ b/print/tex-dhucs/Makefile
@@ -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 @@ MAINTAINER= minskim@NetBSD.org
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 @@ USE_TOOLS+= bzcat pax perl:run
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"