diff options
author | CHOI Junho <cjh@FreeBSD.org> | 2005-07-08 07:34:29 +0000 |
---|---|---|
committer | CHOI Junho <cjh@FreeBSD.org> | 2005-07-08 07:34:29 +0000 |
commit | 139065d85185f5d1e787d0a162b4f7e2318712a1 (patch) | |
tree | cc628da7575fd1e2ece4197735dc7fc9fe9dfcf1 /korean/hlatex/Makefile | |
parent | 7669ab93b07231d0a3cf96805c7a06efd7c73743 (diff) | |
download | ports-139065d85185f5d1e787d0a162b4f7e2318712a1.tar.gz ports-139065d85185f5d1e787d0a162b4f7e2318712a1.zip |
Notes
Diffstat (limited to 'korean/hlatex/Makefile')
-rw-r--r-- | korean/hlatex/Makefile | 173 |
1 files changed, 94 insertions, 79 deletions
diff --git a/korean/hlatex/Makefile b/korean/hlatex/Makefile index b91915eb6380..20a64b2cfb6f 100644 --- a/korean/hlatex/Makefile +++ b/korean/hlatex/Makefile @@ -6,118 +6,133 @@ # PORTNAME= HLaTeX -PORTVERSION= 0.991 +PORTVERSION= 1.0.1 CATEGORIES= korean print -MASTER_SITES= ftp://ftp.kr.FreeBSD.org/pub/FreeBSD-kr/distfiles/hlatex/ -DISTFILES= HLaTeX-0.991.tar.gz ${HLATEX_FONTS_BASE} +MASTER_SITES= ftp://ftp.ktug.or.kr/pub/ktug/hlatex \ + ftp://ftp.ktug.or.kr/pub/ktug/hlatex/fonts +DISTFILES= HLaTeX-1.0.1.tar.gz uhc-fonts-1.0.tar.gz ${HLATEX_FONTS_BASE} DIST_SUBDIR= hlatex -EXTRACT_ONLY= HLaTeX-0.991.tar.gz +EXTRACT_ONLY= HLaTeX-1.0.1.tar.gz uhc-fonts-1.0.tar.gz MAINTAINER= cjh@FreeBSD.org -COMMENT= LaTeX package to use Hangul(UHC/KSX1001) +COMMENT= LaTeX package to use Hangul(UTF-8/UHC/KSX1001) # it depends on teTeX(lambda) BUILD_DEPENDS= texhash:${PORTSDIR}/print/teTeX RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX -BROKEN= Does not build - +MACRO_DIR= ${WRKDIR}/HLaTeX +FONT_DIR= ${WRKDIR}/uhc-fonts-1.0 TEXMF= ${PREFIX}/share/texmf +TEXMF_HLATEX= ${PREFIX}/share/texmf-hlatex # default fonts. -HLATEX_FONTS_BASE= uhc-myoungjo.tar.gz \ - uhc-gothic.tar.gz \ - uhc-taza.tar.gz +HLATEX_FONTS_BASE= uhc-myoungjo-1.0.tar.gz \ + uhc-gothic-1.0.tar.gz \ + uhc-taza-1.0.tar.gz # documents. -HLATEX_DOC_BASE= VERSION0.991 changelog.ks complang.tex \ - hlatex-en.html hlatex-ko.html hlatex.html \ - hlguide.bib hlguide.dvi hlguide.tex \ - news.098 news.099 readme.eng \ - uhc/uhc.ks moonttf/moonttf.ks \ - doc/compword.pdf.gz doc/compword.ps.gz \ - doc/dot.js doc/font-exam.jpg doc/hlguide.html \ - doc/hlguide.ps.gz doc/hlogo-bg.jpg doc/hlogo.jpg - -HLATEX_SAMPLE_BASE= sample/a.tex sample/p.tex sample/f.tex sample/readme.ks - -# psfonts.map, special.map -# it should be downloadable, so use uhc-down.map -# why? otherwise you need nasty gs Fontmap setup... +HLATEX_DOC_BASE= ChangeLog.ko NEWS-0.98.ko NEWS-0.99.ko NEWS-1.0.ko \ + README.en VERSION-1.0.1 \ + hlguide-k.bib hlguide-k.tex hlguide-u.bib \ + hlguide-u.tex hlguide.bbl hlguide.ind hlguide.pdf \ + hlguide.tex +HLATEX_DOC_FONT_BASE= README hfontlist.pdf + +# Build hbibtex and hmakeindex do-build: - ${CAT} ${TEXMF}/dvips/config/psfonts.map \ - ${WRKDIR}/uhc/config/uhc-down.map \ - > ${WRKDIR}/psfonts.map - ${SED} 's@/usr/tex/share/texmf.local@${PREFIX}/share/texmf@' \ - ${WRKDIR}/uhc/config/Fontmap.uhc \ - > ${WRKDIR}/Fontmap + ${CC} -O2 -pipe -o ${MACRO_DIR}/contrib/hbibtex \ + ${MACRO_DIR}/contrib/hbibtex.c + ${CC} -O2 -pipe -o ${MACRO_DIR}/contrib/hmakeindex \ + ${MACRO_DIR}/contrib/hmakeindex.c + ${AWK} 'BEGIN { FS = " |\{|\}" } \ + {if ( $$1 == "TEXMF" ) \ + {print "TEXMFHLATEX = ${TEXMF_HLATEX}"; \ + printf "%s%s%s", "TEXMF = {!!$$TEXMFHLATEX,", $$4, \ + "}"} \ + else print }' ${TEXMF}/web2c/texmf.cnf > ${WRKDIR}/texmf.cnf # Installation according to readme.ks do-install: - # Part 1: install psfonts - # psfonts.map - ${MV} ${TEXMF}/dvips/config/psfonts.map \ - ${TEXMF}/dvips/config/psfonts.map.beforehlatex - ${INSTALL_DATA} ${WRKDIR}/psfonts.map ${TEXMF}/dvips/config + # Part 1: install directories + ${MKDIR} ${TEXMF_HLATEX}/tex/latex/hlatex + ${MKDIR} ${TEXMF_HLATEX}/tex/lambda/hlatex + ${MKDIR} ${TEXMF_HLATEX}/omega/otp/hlatex + ${MKDIR} ${TEXMF_HLATEX}/omega/ocp/hlatex + ${MKDIR} ${TEXMF_HLATEX}/bibtex/bst/hlatex + ${MKDIR} ${TEXMF_HLATEX}/makeindex + ${MKDIR} ${TEXMF_HLATEX}/fonts/map/hlatex + ${MKDIR} ${TEXMF_HLATEX}/doc/latex/hlatex/ + ${MKDIR} ${TEXMF_HLATEX}/doc/latex/hlatex/fonts # Part 2: macros, style, font descriptions - ${MKDIR} ${TEXMF}/tex/latex/hlatex - ${MKDIR} ${TEXMF}/omega/lambda/hlatex - ${MKDIR} ${TEXMF}/omega/otp/hlatex - ${MKDIR} ${TEXMF}/omega/ocp/hlatex - - ${INSTALL_DATA} ${WRKDIR}/hfont.tex \ - ${WRKDIR}/hfont.sty \ - ${WRKDIR}/hfont.cfg \ - ${WRKDIR}/hangul.sty \ - ${WRKDIR}/josa.tab \ - ${WRKDIR}/uhc/latex/* \ - ${WRKDIR}/moonttf/*.fd \ - ${WRKDIR}/moonttf/moonttf.sty \ - ${TEXMF}/tex/latex/hlatex - - ${INSTALL_DATA} ${WRKDIR}/uhc/lambda/*.tex \ - ${WRKDIR}/uhc/lambda/*.fd \ - ${TEXMF}/omega/lambda/hlatex - - ${INSTALL_DATA} ${WRKDIR}/uhc/lambda/ksx1001.otp \ - ${TEXMF}/omega/otp/hlatex - - ${INSTALL_DATA} ${WRKDIR}/uhc/lambda/ksx1001.ocp \ - ${TEXMF}/omega/ocp/hlatex - - ${INSTALL_DATA} ${WRKDIR}/contrib/halpha.bst \ - ${TEXMF}/bibtex/bst/misc - - ${INSTALL_DATA} ${WRKDIR}/contrib/hind.ist \ - ${WRKDIR}/contrib/hglo.ist \ - ${TEXMF}/makeindex - - # Part 3: documents and samples - ${MKDIR} ${TEXMF}/doc/latex/hlatex/ + ${INSTALL_DATA} ${MACRO_DIR}/latex/* ${TEXMF_HLATEX}/tex/latex/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/lambda/u8hangul.tex \ + ${TEXMF_HLATEX}/tex/lambda/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/lambda/uhc-test.tex \ + ${TEXMF_HLATEX}/tex/lambda/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/lambda/*.fd \ + ${TEXMF_HLATEX}/tex/lambda/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/lambda/hlatex.otp \ + ${TEXMF_HLATEX}/omega/otp/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/lambda/hlatex.ocp \ + ${TEXMF_HLATEX}/omega/ocp/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/hbname-k.tex \ + ${TEXMF_HLATEX}/tex/latex/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/hbname-u.tex \ + ${TEXMF_HLATEX}/tex/lambda/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/halpha.bst \ + ${TEXMF_HLATEX}/bibtex/bst/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/*.ist \ + ${TEXMF_HLATEX}/makeindex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/khyper.sty \ + ${TEXMF_HLATEX}/tex/latex/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/showhkeys.sty \ + ${TEXMF_HLATEX}/tex/latex/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/showhtags.sty \ + ${TEXMF_HLATEX}/tex/latex/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/hangulfn.sty \ + ${TEXMF_HLATEX}/tex/latex/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/hfn-k.tex \ + ${TEXMF_HLATEX}/tex/latex/hlatex + ${INSTALL_DATA} ${MACRO_DIR}/contrib/hfn-u.tex \ + ${TEXMF_HLATEX}/tex/lambda/hlatex + + # Part 3: binaries + ${INSTALL_PROGRAM} ${MACRO_DIR}/contrib/hbibtex ${PREFIX}/bin + ${INSTALL_PROGRAM} ${MACRO_DIR}/contrib/hmakeindex ${PREFIX}/bin + + # Part 4: fontmap + ${INSTALL_DATA} ${FONT_DIR}/uhc-base.map \ + ${TEXMF_HLATEX}/fonts/map/hlatex + ${INSTALL_DATA} ${FONT_DIR}/uhc-extra.map \ + ${TEXMF_HLATEX}/fonts/map/hlatex + + # Part 5: documents and samples for file in ${HLATEX_DOC_BASE}; \ do \ ${INSTALL_DATA} \ - ${WRKDIR}/$$file ${TEXMF}/doc/latex/hlatex; \ + ${MACRO_DIR}/$$file ${TEXMF_HLATEX}/doc/latex/hlatex; \ done - ${MKDIR} ${TEXMF}/doc/latex/hlatex/sample - for file in ${HLATEX_SAMPLE_BASE}; \ + for file in ${HLATEX_DOC_FONT_BASE}; \ do \ ${INSTALL_DATA} \ - ${WRKDIR}/$$file ${TEXMF}/doc/latex/hlatex/sample; \ + ${FONT_DIR}/$$file ${TEXMF_HLATEX}/doc/latex/hlatex/fonts; \ done - # fontmap... - ${INSTALL_DATA} ${WRKDIR}/Fontmap \ - ${TEXMF}/doc/latex/hlatex/sample/Fontmap.uhc - # Part 4: default mf fonts - cd ${TEXMF}/fonts/; \ + # Part 6: fonts + cd ${TEXMF_HLATEX}/fonts/; \ for fonts in ${HLATEX_FONTS_BASE}; \ do \ ${EXTRACT_CMD} \ ${EXTRACT_BEFORE_ARGS} \ ${_DISTDIR}/$$fonts ${EXTRACT_AFTER_ARGS}; \ done - # Part 5: rehash + + # Part 7: update texmf.cnf + ${MV} ${TEXMF}/web2c/texmf.cnf ${TEXMF}/web2c/texmf.cnf.beforehlatex + ${INSTALL_DATA} ${WRKDIR}/texmf.cnf ${TEXMF}/web2c + + # Part 8: rehash ${PREFIX}/bin/texhash .include <bsd.port.mk> |