diff options
author | pav <pav@FreeBSD.org> | 2005-11-02 06:10:09 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-11-02 06:10:09 +0800 |
commit | 46fe1152b431ecedfadb11b6418493c78343db89 (patch) | |
tree | 4834837680fa0cf0b3d34fbd1517fc1ed3ef74c0 /print | |
parent | 7a48adbd1b13a94aa09cb7e30b424a6979175829 (diff) | |
download | freebsd-ports-gnome-46fe1152b431ecedfadb11b6418493c78343db89.tar.gz freebsd-ports-gnome-46fe1152b431ecedfadb11b6418493c78343db89.tar.zst freebsd-ports-gnome-46fe1152b431ecedfadb11b6418493c78343db89.zip |
This is a LaTeX port that allows one to write greek documents with both latin
and greek text, without having to use \textlatin or any other command to switch
between the greek/latintext modes.
It includes greek postscript fonts created by Angelos Haritsis.
PR: ports/78830
Submitted by: eelvex <mplekos@physics.upatras.gr>
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/latex-auto-greek/Makefile | 83 | ||||
-rw-r--r-- | print/latex-auto-greek/distinfo | 2 | ||||
-rw-r--r-- | print/latex-auto-greek/pkg-deinstall | 15 | ||||
-rw-r--r-- | print/latex-auto-greek/pkg-descr | 8 | ||||
-rw-r--r-- | print/latex-auto-greek/pkg-install | 11 | ||||
-rw-r--r-- | print/latex-auto-greek/pkg-plist | 56 |
7 files changed, 176 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index 6ae5c1f51078..af591bc734f9 100644 --- a/print/Makefile +++ b/print/Makefile @@ -115,6 +115,7 @@ SUBDIR += kover SUBDIR += latex SUBDIR += latex-arydshln + SUBDIR += latex-auto-greek SUBDIR += latex-beamer SUBDIR += latex-biblist SUBDIR += latex-bibtopic diff --git a/print/latex-auto-greek/Makefile b/print/latex-auto-greek/Makefile new file mode 100644 index 000000000000..f007ab680d3a --- /dev/null +++ b/print/latex-auto-greek/Makefile @@ -0,0 +1,83 @@ +# New ports collection makefile for: latex-auto-greek +# Date created: 13 March 2005 +# Whom: EelVex +# +# $FreeBSD$ + +PORTNAME= latex-auto-greek +PORTVERSION= 1.0b +CATEGORIES= print +MASTER_SITES= http://a.physics.upatras.gr/~mplekos/files/ + +MAINTAINER= mplekos@physics.upatras.gr +COMMENT= A LaTeX package for switching between greek/latintext automaticaly + +BUILD_DEPENDS= updmap-sys:${PORTSDIR}/print/teTeX-base \ + mktexlsr:${PORTSDIR}/print/teTeX-base \ + fmtutil-sys:${PORTSDIR}/print/teTeX-base +RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX-base + +NO_BUILD= YES +PLIST_SUB= TEXMFDIST=${TEXMFDIST} UPDMAP=${UPDMAP} \ + CLASSDIR=${CLASSDIR} FMTUTIL=${FMTUTIL} \ + MKTEXLSR=${MKTEXLSR} AFFONTDIR=${AFFONTDIR} \ + PFFONTDIR=${PFFONTDIR} TFFONTDIR=${TFFONTDIR} \ + ENCDIR=${ENCDIR} PSMAPDIR=${PSMAPDIR} \ + UPDMAP_FILE=${UPDMAP_FILE} HYPHDIR=${HYPHDIR} + +TEXMFDIST= share/texmf-dist +TEXMFCONFIG= share/texmf-config +MKTEXLSR= ${LOCALBASE}/bin/mktexlsr +UPDMAP= ${LOCALBASE}/bin/updmap-sys +FMTUTIL= ${LOCALBASE}/bin/fmtutil-sys +CLASSDIR= ${TEXMFDIST}/tex/latex/${PORTNAME:S/^latex-//} +FONTDIR= ${TEXMFDIST}/fonts +TRFONTDIR= ${FONTDIR}/truetype/public/${PORTNAME:S/^latex-//} +PFFONTDIR= ${FONTDIR}/type1/public/${PORTNAME:S/^latex-//} +AFFONTDIR= ${FONTDIR}/afm/public/${PORTNAME:S/^latex-//} +TFFONTDIR= ${FONTDIR}/tfm/public/${PORTNAME:S/^latex-//} +PSMAPDIR= ${FONTDIR}/map/dvips/${PORTNAME:S/^latex-//} +ENCDIR= ${FONTDIR}/enc/dvips/${PORTNAME:S/^latex-//} +HYPHDIR= ${TEXMFDIST}/tex/generic/hyphen/ +WRKSRC= ${WRKDIR}/ + +DOC_FILES= README ag-test.tex ag-test.dvi + +UPDMAP_FILE= ${TEXMFCONFIG}/web2c/updmap.cfg +CLASS_FILES= auto-greek.sty updmap.inc ot1grcouri.fd ot1grarial.fd ot1grtimes.fd grushyph.tex +PFFONT_FILES= *.pfb +AFFONT_FILES= *.afm +TFFONT_FILES= *.tfm +PSMAP_FILES= greek.map +ENC_FILES= greek.enc +HYPH_FILES= grushyph.tex +MAP_INC= updmap.inc + +do-install: + ${MKDIR} ${PREFIX}/${CLASSDIR} + ${MKDIR} ${PREFIX}/${PFFONTDIR} + ${MKDIR} ${PREFIX}/${AFFONTDIR} + ${MKDIR} ${PREFIX}/${TFFONTDIR} + ${MKDIR} ${PREFIX}/${PSMAPDIR} + ${MKDIR} ${PREFIX}/${ENCDIR} + ${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR} + ${INSTALL_DATA} ${PFFONT_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${PFFONTDIR} + ${INSTALL_DATA} ${AFFONT_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${AFFONTDIR} + ${INSTALL_DATA} ${TFFONT_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${TFFONTDIR} + ${INSTALL_DATA} ${PSMAP_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${PSMAPDIR} + ${INSTALL_DATA} ${ENC_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${ENCDIR} + ${CAT} ${MAP_INC:S@^@${WRKSRC}/@} >> ${PREFIX}/${UPDMAP_FILE} + ${CP} ${PREFIX}/${HYPHDIR}/hyphen.tex ${PREFIX}/${HYPHDIR}/hyphen.tex.old + ${INSTALL_DATA} ${HYPH_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${HYPHDIR}/hyphen.tex +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR} +.endif + +post-install: + ${MKTEXLSR} + ${UPDMAP} + ${FMTUTIL} --byfmt latex + ${FMTUTIL} --byfmt pdflatex + +.include <bsd.port.mk> diff --git a/print/latex-auto-greek/distinfo b/print/latex-auto-greek/distinfo new file mode 100644 index 000000000000..299564bd9eb5 --- /dev/null +++ b/print/latex-auto-greek/distinfo @@ -0,0 +1,2 @@ +MD5 (latex-auto-greek-1.0b.tar.gz) = 1511b216f973389b6f2f33e32533aabd +SIZE (latex-auto-greek-1.0b.tar.gz) = 664480 diff --git a/print/latex-auto-greek/pkg-deinstall b/print/latex-auto-greek/pkg-deinstall new file mode 100644 index 000000000000..106ee279f176 --- /dev/null +++ b/print/latex-auto-greek/pkg-deinstall @@ -0,0 +1,15 @@ +#!/bin/sh + +prefix=/usr/local +sharedir=${prefix}/share +if [ -f ${sharedir}/texmf-dist/tex/latex/auto-greek/updmap.inc ]; then + grep -vf ${sharedir}/texmf-dist/tex/latex/auto-greek/updmap.inc ${sharedir}/texmf-config/web2c/updmap.cfg > ${sharedir}/texmf-config/web2c/updmap.cfg.swp + mv ${sharedir}/texmf-config/web2c/updmap.cfg.swp ${sharedir}/texmf-config/web2c/updmap.cfg + chmod 0444 ${sharedir}/texmf-config/web2c/updmap.cfg + mv ${sharedir}/texmf-dist/tex/generic/hyphen/hyphen.tex.old ${sharedir}/texmf-dist/tex/generic/hyphen/hyphen.tex + + ${prefix}/bin/texhash + ${prefix}/bin/updmap-sys + ${prefix}/bin/fmtutil-sys --byfmt latex + ${prefix}/bin/fmtutil-sys --byfmt pdflatex +fi; diff --git a/print/latex-auto-greek/pkg-descr b/print/latex-auto-greek/pkg-descr new file mode 100644 index 000000000000..58a67bb58567 --- /dev/null +++ b/print/latex-auto-greek/pkg-descr @@ -0,0 +1,8 @@ +This is a LaTeX port that allows one to write greek documents with both latin +and greek text, without having to use \textlatin or any other command to switch +between the greek/latintext modes. + +It includes greek postscript fonts created by Angelos Haritsis. + +-- EelVex +WWW: http://a.physics.upatras.gr/~mplekos/latex-auto-greek.html diff --git a/print/latex-auto-greek/pkg-install b/print/latex-auto-greek/pkg-install new file mode 100644 index 000000000000..cc141eceeae8 --- /dev/null +++ b/print/latex-auto-greek/pkg-install @@ -0,0 +1,11 @@ +#!/bin/sh + +prefix=/usr/local + +if [ "$2" = "POST-INSTALL" ]; then + ${prefix}/bin/mktexlsr + echo "Installation done." + echo "Refresh the map files and default hyphenations by running:" + echo "updmap-sys and fmtutil-sys" + echo "--> ${prefix}/bin/updmap-sys; ${prefix}/bin/fmtutil-sys --byfmt latex; ${prefix}/bin/fmtutil-sys --byfmt pdflatex" +fi; diff --git a/print/latex-auto-greek/pkg-plist b/print/latex-auto-greek/pkg-plist new file mode 100644 index 000000000000..17bb9362b032 --- /dev/null +++ b/print/latex-auto-greek/pkg-plist @@ -0,0 +1,56 @@ +%%PORTDOCS%%%%DOCSDIR%%/ag-test.dvi +%%PORTDOCS%%%%DOCSDIR%%/ag-test.tex +%%PORTDOCS%%%%DOCSDIR%%/README +%%AFFONTDIR%%/grkarib.afm +%%AFFONTDIR%%/grkaribi.afm +%%AFFONTDIR%%/grkarii.afm +%%AFFONTDIR%%/grkarip.afm +%%AFFONTDIR%%/grkcurb.afm +%%AFFONTDIR%%/grkcurbi.afm +%%AFFONTDIR%%/grkcuri.afm +%%AFFONTDIR%%/grkcurp.afm +%%AFFONTDIR%%/grktimb.afm +%%AFFONTDIR%%/grktimbi.afm +%%AFFONTDIR%%/grktimi.afm +%%AFFONTDIR%%/grktimp.afm +%%CLASSDIR%%/auto-greek.sty +%%CLASSDIR%%/grushyph.tex +%%CLASSDIR%%/ot1grarial.fd +%%CLASSDIR%%/ot1grcouri.fd +%%CLASSDIR%%/ot1grtimes.fd +%%CLASSDIR%%/updmap.inc +%%ENCDIR%%/greek.enc +%%PFFONTDIR%%/grkarib.pfb +%%PFFONTDIR%%/grkaribi.pfb +%%PFFONTDIR%%/grkarii.pfb +%%PFFONTDIR%%/grkarip.pfb +%%PFFONTDIR%%/grkcurb.pfb +%%PFFONTDIR%%/grkcurbi.pfb +%%PFFONTDIR%%/grkcuri.pfb +%%PFFONTDIR%%/grkcurp.pfb +%%PFFONTDIR%%/grktimb.pfb +%%PFFONTDIR%%/grktimbi.pfb +%%PFFONTDIR%%/grktimi.pfb +%%PFFONTDIR%%/grktimp.pfb +%%PSMAPDIR%%/greek.map +%%TFFONTDIR%%/grarial-b.tfm +%%TFFONTDIR%%/grarial-bi.tfm +%%TFFONTDIR%%/grarial-i.tfm +%%TFFONTDIR%%/grarial-p.tfm +%%TFFONTDIR%%/grcouri-b.tfm +%%TFFONTDIR%%/grcouri-bi.tfm +%%TFFONTDIR%%/grcouri-i.tfm +%%TFFONTDIR%%/grcouri-p.tfm +%%TFFONTDIR%%/grtimes-b.tfm +%%TFFONTDIR%%/grtimes-bi.tfm +%%TFFONTDIR%%/grtimes-i.tfm +%%TFFONTDIR%%/grtimes-p.tfm +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@exec cat %D/%%CLASSDIR%%/updmap.inc >> %D/%%UPDMAP_FILE%% +@exec cp %D/%%HYPHDIR%%/hyphen.tex %D/%%HYPHDIR%%/hyphen.tex.old +@dirrm %%AFFONTDIR%% +@dirrm %%CLASSDIR%% +@dirrm %%ENCDIR%% +@dirrm %%PFFONTDIR%% +@dirrm %%PSMAPDIR%% +@dirrm %%TFFONTDIR%% |