blob: 561003fe8b6f273cbe17f3da9ee254a9ec598a0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Created by: EelVex
# $FreeBSD$
PORTNAME= latex-auto-greek
PORTVERSION= 1.0b
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= http://waterdeep.physics.upatras.gr/~eelvex/files/
MAINTAINER= mplekos@physics.upatras.gr
COMMENT= A LaTeX package for switching between greek/latintext automatically
USE_TEX= latex
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
NO_STAGE= yes
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>
|