1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

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>
This commit is contained in:
Pav Lucistnik 2005-11-01 22:10:09 +00:00
parent fdcac8e09a
commit cc303b203f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=146960
7 changed files with 176 additions and 0 deletions

View File

@ -115,6 +115,7 @@
SUBDIR += kover
SUBDIR += latex
SUBDIR += latex-arydshln
SUBDIR += latex-auto-greek
SUBDIR += latex-beamer
SUBDIR += latex-biblist
SUBDIR += latex-bibtopic

View File

@ -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>

View File

@ -0,0 +1,2 @@
MD5 (latex-auto-greek-1.0b.tar.gz) = 1511b216f973389b6f2f33e32533aabd
SIZE (latex-auto-greek-1.0b.tar.gz) = 664480

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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%%