Update editors/libreoffice-tn to version 5.2.5
[dports.git] / print / texlive-texmf / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       texlive
4 PORTVERSION=    20150523
5 PORTREVISION=   3
6 CATEGORIES=     print
7 MASTER_SITES=   ftp://ftp.tug.org/historic/systems/texlive/2015/:texmf \
8                 LOCAL/hrs:latex
9 PKGNAMESUFFIX=  -texmf
10 DISTFILES=      ${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}${EXTRACT_SUFX}:texmf \
11                 latex-base-20150101.2${EXTRACT_SUFX}:latex
12 DIST_SUBDIR=    TeX
13 EXTRACT_ONLY=   latex-base-20150101.2${EXTRACT_SUFX}
14
15 MAINTAINER=     hrs@FreeBSD.org
16 COMMENT=        TeX Live Typesetting System, texmf Tree
17
18 CONFLICTS_INSTALL=      texlive-base-201[234]* \
19                         texlive-texmf-201[234]*
20
21 USES=           shebangfix tar:xz
22 USE_TEX=        basic:extract base tlmgr:run texhash
23 TEXHASHDIRS=    ${TEXMFDIR} ${TEXMFDISTDIR}
24 NO_BUILD=       yes
25 NO_WRKSUBDIR=   yes
26 NO_ARCH=        yes
27 PKG_CREATE_VERBOSE=     yes
28
29 EXCLUDE_FILES=  \*/doc/man \
30         texmf-dist/ls-R \
31         texmf-dist/bibtex/csf/base \
32         texmf-dist/doc \
33         texmf-dist/dvipdfm \
34         texmf-dist/dvipdfmx \
35         texmf-dist/dvips \
36         texmf-dist/fonts/cmap/dvipdfmx \
37         texmf-dist/fonts/cmap/uptex \
38         texmf-dist/fonts/enc/dvips \
39         texmf-dist/fonts/map/dvipdfm \
40         texmf-dist/fonts/map/dvipdfmx \
41         texmf-dist/fonts/map/dvips \
42         texmf-dist/fonts/map/luatex \
43         texmf-dist/fonts/misc/xetex \
44         texmf-dist/fonts/ofm/public/japanese-otf \
45         texmf-dist/fonts/ovp/public/japanese-otf-uptex \
46         texmf-dist/fonts/source/ptex \
47         texmf-dist/fonts/tfm/ptex \
48         texmf-dist/fonts/tfm/public/japanese-otf \
49         texmf-dist/fonts/tfm/public/japanese-otf-uptex \
50         texmf-dist/fonts/tfm/uptex \
51         texmf-dist/fonts/type1/ptex \
52         texmf-dist/fonts/vf/ptex \
53         texmf-dist/fonts/vf/public/japanese-otf \
54         texmf-dist/fonts/vf/public/japanese-otf-uptex \
55         texmf-dist/fonts/vf/uptex \
56         texmf-dist/scripts/xetex \
57         texmf-dist/source \
58         texmf-dist/tex/generic/config/luatex-unicode-letters.tex \
59         texmf-dist/tex/generic/config/luatexiniconfig.tex \
60         texmf-dist/tex/generic/context/luatex \
61         texmf-dist/tex/generic/dvips \
62         texmf-dist/tex/generic/hyph-utf8/patterns/ptex \
63         texmf-dist/tex/generic/xetexconfig \
64         texmf-dist/tex/jadetex \
65         texmf-dist/tex/lambda \
66         texmf-dist/tex/latex/base \
67         texmf-dist/tex/latex/latexconfig/dvilualatex.ini \
68         texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex \
69         texmf-dist/tex/latex/latexconfig/lualatex-reset-codes.tex \
70         texmf-dist/tex/latex/latexconfig/lualatex.ini \
71         texmf-dist/tex/latex/latexconfig/lualatexiniconfig.tex \
72         texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex \
73         texmf-dist/tex/latex/latexconfig/xelatex.ini \
74         texmf-dist/tex/lualatex \
75         texmf-dist/tex/luatex \
76         texmf-dist/tex/plain/config/aleph.ini \
77         texmf-dist/tex/plain/config/dviluatex.ini \
78         texmf-dist/tex/plain/config/luatex.ini \
79         texmf-dist/tex/plain/config/xetex.ini \
80         texmf-dist/tex/platex \
81         texmf-dist/tex/ptex \
82         texmf-dist/tex/uplatex \
83         texmf-dist/tex/uptex \
84         texmf-dist/tex/xelatex \
85         texmf-dist/tex/xetex \
86         texmf-dist/tex/xmltex \
87         texmf-dist/web2c/fmtutil-hdr.cnf \
88         texmf-dist/web2c/fmtutil.cnf \
89         texmf-dist/web2c/texmf.cnf \
90         texmf-dist/web2c/updmap-hdr.cfg \
91         texmf-dist/web2c/updmap.cfg \
92         texmf-dist/xdvi \
93         texmf-dist/scripts/a2ping/a2ping.pl \
94         texmf-dist/scripts/accfonts/mkt1font \
95         texmf-dist/scripts/accfonts/vpl2ovp \
96         texmf-dist/scripts/accfonts/vpl2vpl \
97         texmf-dist/scripts/adhocfilelist/adhocfilelist.sh \
98         texmf-dist/scripts/arara/arara.sh \
99         texmf-dist/scripts/authorindex/authorindex \
100         texmf-dist/scripts/bibexport/bibexport.sh \
101         texmf-dist/scripts/bundledoc/arlatex \
102         texmf-dist/scripts/bundledoc/bundledoc \
103         texmf-dist/scripts/cachepic/cachepic.tlu \
104         texmf-dist/scripts/cjk-gs-integrate/cjk-gs-integrate.pl \
105         texmf-dist/scripts/checkcites/checkcites.lua \
106         texmf-dist/scripts/context/perl/mptopdf.pl \
107         texmf-dist/scripts/context/stubs/unix/context \
108         texmf-dist/scripts/context/stubs/unix/contextjit \
109         texmf-dist/scripts/context/stubs/unix/luatools \
110         texmf-dist/scripts/context/stubs/unix/mtxrun \
111         texmf-dist/scripts/context/stubs/unix/mtxrunjit \
112         texmf-dist/scripts/context/stubs/unix/texexec \
113         texmf-dist/scripts/context/stubs/unix/texmfstart \
114         texmf-dist/scripts/context/lua \
115         texmf-dist/scripts/convbkmk/convbkmk.rb \
116         texmf-dist/scripts/crossrefware/bibdoiadd.pl \
117         texmf-dist/scripts/crossrefware/bibzbladd.pl \
118         texmf-dist/scripts/crossrefware/ltx2crossrefxml.pl \
119         texmf-dist/scripts/ctanify/ctanify \
120         texmf-dist/scripts/ctanupload/ctanupload.pl \
121         texmf-dist/scripts/de-macro/de-macro \
122         texmf-dist/scripts/dosepsbin/dosepsbin.pl \
123         texmf-dist/scripts/dtxgen/dtxgen \
124         texmf-dist/scripts/dviasm/dviasm.py \
125         texmf-dist/scripts/ebong/ebong.py \
126         texmf-dist/scripts/epspdf/epspdf.tlu \
127         texmf-dist/scripts/epspdf/epspdftk.tcl \
128         texmf-dist/scripts/epstopdf/epstopdf.pl \
129         texmf-dist/scripts/exceltex/exceltex \
130         texmf-dist/scripts/fig4latex/fig4latex \
131         texmf-dist/scripts/findhyph/findhyph \
132         texmf-dist/scripts/fontools/afm2afm \
133         texmf-dist/scripts/fontools/autoinst \
134         texmf-dist/scripts/fontools/ot2kpx \
135         texmf-dist/scripts/fragmaster/fragmaster.pl \
136         texmf-dist/scripts/getmap/getmapdl.lua \
137         texmf-dist/scripts/glossaries/makeglossaries \
138         texmf-dist/scripts/installfont/installfont-tl \
139         texmf-dist/scripts/jfontmaps/kanji-config-updmap-sys.sh \
140         texmf-dist/scripts/jfontmaps/kanji-config-updmap.pl \
141         texmf-dist/scripts/jfontmaps/kanji-fontmap-creator.pl \
142         texmf-dist/scripts/kotex-utils/jamo-normalize.pl \
143         texmf-dist/scripts/kotex-utils/komkindex.pl \
144         texmf-dist/scripts/kotex-utils/ttf2kotexfont.pl \
145         texmf-dist/scripts/latex-git-log/latex-git-log \
146         texmf-dist/scripts/latex2man/latex2man \
147         texmf-dist/scripts/latexdiff/latexdiff-vc.pl \
148         texmf-dist/scripts/latexdiff/latexdiff.pl \
149         texmf-dist/scripts/latexdiff/latexrevise.pl \
150         texmf-dist/scripts/latexfileversion/latexfileversion \
151         texmf-dist/scripts/latexindent/latexindent.pl \
152         texmf-dist/scripts/latexmk/latexmk.pl \
153         texmf-dist/scripts/latexpand/latexpand \
154         texmf-dist/scripts/lilyglyphs/lily-glyph-commands.py \
155         texmf-dist/scripts/lilyglyphs/lily-image-commands.py \
156         texmf-dist/scripts/lilyglyphs/lily-rebuild-pdfs.py \
157         texmf-dist/scripts/listbib/listbib \
158         texmf-dist/scripts/listings-ext/listings-ext.sh \
159         texmf-dist/scripts/ltxfileinfo/ltxfileinfo \
160         texmf-dist/scripts/ltximg/ltximg.pl \
161         texmf-dist/scripts/lua2dox/lua2dox_filter \
162         texmf-dist/scripts/luaotfload/luaotfload-tool.lua \
163         texmf-dist/scripts/m-tx/m-tx.lua \
164         texmf-dist/scripts/match_parens/match_parens \
165         texmf-dist/scripts/mathspic/mathspic.pl \
166         texmf-dist/scripts/mf2pt1/mf2pt1.pl \
167         texmf-dist/scripts/mkgrkindex/mkgrkindex \
168         texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl \
169         texmf-dist/scripts/mkpic/mkpic \
170         texmf-dist/scripts/multibibliography/multibibliography.pl \
171         texmf-dist/scripts/musixtex/musixflx.lua \
172         texmf-dist/scripts/musixtex/musixtex.lua \
173         texmf-dist/scripts/oberdiek/pdfatfi.pl \
174         texmf-dist/scripts/pax/pdfannotextractor.pl \
175         texmf-dist/scripts/pdfcrop/pdfcrop.pl \
176         texmf-dist/scripts/pdfjam/pdf180 \
177         texmf-dist/scripts/pdfjam/pdf270 \
178         texmf-dist/scripts/pdfjam/pdf90 \
179         texmf-dist/scripts/pdfjam/pdfbook \
180         texmf-dist/scripts/pdfjam/pdfflip \
181         texmf-dist/scripts/pdfjam/pdfjam \
182         texmf-dist/scripts/pdfjam/pdfjam-pocketmod \
183         texmf-dist/scripts/pdfjam/pdfjam-slides3up \
184         texmf-dist/scripts/pdfjam/pdfjam-slides6up \
185         texmf-dist/scripts/pdfjam/pdfjoin \
186         texmf-dist/scripts/pdfjam/pdfnup \
187         texmf-dist/scripts/pdfjam/pdfpun \
188         texmf-dist/scripts/pedigree-perl/pedigree.pl \
189         texmf-dist/scripts/perltex/perltex.pl \
190         texmf-dist/scripts/pfarrei/a5toa4.tlu \
191         texmf-dist/scripts/pfarrei/pfarrei.tlu \
192         texmf-dist/scripts/pkfix-helper/pkfix-helper \
193         texmf-dist/scripts/pkfix/pkfix.pl \
194         texmf-dist/scripts/pmx/pmx2pdf.lua \
195         texmf-dist/scripts/pmxchords/pmxchords.lua \
196         texmf-dist/scripts/ps2eps/ps2eps.pl \
197         texmf-dist/scripts/pst-pdf/ps4pdf \
198         texmf-dist/scripts/pst2pdf/pst2pdf.pl \
199         texmf-dist/scripts/ptex2pdf/ptex2pdf.lua \
200         texmf-dist/scripts/purifyeps/purifyeps \
201         texmf-dist/scripts/pygmentex/pygmentex.py \
202         texmf-dist/scripts/pythontex/depythontex.py \
203         texmf-dist/scripts/pythontex/pythontex.py \
204         texmf-dist/scripts/rubik/rubikrotation.pl \
205         texmf-dist/scripts/simpdftex/simpdftex \
206         texmf-dist/scripts/splitindex/splitindex.pl \
207         texmf-dist/scripts/sty2dtx/sty2dtx.pl \
208         texmf-dist/scripts/svn-multi/svn-multi.pl \
209         texmf-dist/scripts/tex4ht/ht.sh \
210         texmf-dist/scripts/tex4ht/htcontext.sh \
211         texmf-dist/scripts/tex4ht/htlatex.sh \
212         texmf-dist/scripts/tex4ht/htmex.sh \
213         texmf-dist/scripts/tex4ht/httex.sh \
214         texmf-dist/scripts/tex4ht/httexi.sh \
215         texmf-dist/scripts/tex4ht/htxelatex.sh \
216         texmf-dist/scripts/tex4ht/htxetex.sh \
217         texmf-dist/scripts/tex4ht/mk4ht.pl \
218         texmf-dist/scripts/texcount/texcount.pl \
219         texmf-dist/scripts/texdef/texdef.pl \
220         texmf-dist/scripts/texdiff/texdiff \
221         texmf-dist/scripts/texdirflatten/texdirflatten \
222         texmf-dist/scripts/texdoc/texdoc.tlu \
223         texmf-dist/scripts/texdoctk/texdoctk.pl \
224         texmf-dist/scripts/texfot/texfot.pl \
225         texmf-dist/scripts/texlive/allcm.sh \
226         texmf-dist/scripts/texlive/allneeded.sh \
227         texmf-dist/scripts/texlive/dvi2fax.sh \
228         texmf-dist/scripts/texlive/dvired.sh \
229         texmf-dist/scripts/texlive/e2pall.pl \
230         texmf-dist/scripts/texlive/fmtutil-sys.sh \
231         texmf-dist/scripts/texlive/fmtutil.pl \
232         texmf-dist/scripts/texlive/fontinst.sh \
233         texmf-dist/scripts/texlive/kpsetool.sh \
234         texmf-dist/scripts/texlive/kpsewhere.sh \
235         texmf-dist/scripts/texlive/ps2frag.sh \
236         texmf-dist/scripts/texlive/pslatex.sh \
237         texmf-dist/scripts/texlive/rubibtex.sh \
238         texmf-dist/scripts/texlive/rumakeindex.sh \
239         texmf-dist/scripts/texlive/rungs.tlu \
240         texmf-dist/scripts/texlive/texconfig-dialog.sh \
241         texmf-dist/scripts/texlive/texconfig-sys.sh \
242         texmf-dist/scripts/texlive/texconfig.sh \
243         texmf-dist/scripts/texlive/texlinks.sh \
244         texmf-dist/scripts/texlive/tlmgr.pl \
245         texmf-dist/scripts/texlive/updmap-sys.sh \
246         texmf-dist/scripts/texlive/updmap.pl \
247         texmf-dist/scripts/texliveonfly/texliveonfly.py \
248         texmf-dist/scripts/texloganalyser/texloganalyser \
249         texmf-dist/scripts/thumbpdf/thumbpdf.pl \
250         texmf-dist/scripts/typeoutfileinfo/typeoutfileinfo.sh \
251         texmf-dist/scripts/ulqda/ulqda.pl \
252         texmf-dist/scripts/urlbst/urlbst \
253         texmf-dist/scripts/vpe/vpe.pl \
254         texmf-dist/scripts/yplan/yplan
255
256 EXTRACT_AFTER_ARGS=| ${TAR} xf - ${EXCLUDE_FILES:S,^,--exclude ${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}/,}
257
258 post-extract:
259         cd ${WRKSRC}/latex-base-20150101.2 && \
260             ${SETENV} TEXMF=. ${LOCALBASE}/bin/tex -ini unpack.ins && \
261             ${RM} README *.log *.aux *.pdf *.dtx *.ins *.txt *.ist *.fdd *.err
262
263 do-install:
264         ${CAT} ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}${EXTRACT_SUFX} \
265                 ${EXTRACT_AFTER_ARGS} -C ${STAGEDIR}${PREFIX}/share \
266                 --strip-components 1 --no-same-permission --no-same-owner
267         ${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/tex/latex/base
268         cd ${WRKSRC}/latex-base-20150101.2 && ${PAX} -rw . \
269             ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/tex/latex/base
270         ${REINPLACE_CMD} -i '' 's/\\def\\magyar@sugg@ie@low#1#2#3/\\def\\magyar@sugg@ie@low\\protect #1#2#3/' ${STAGEDIR}${PREFIX}/share/texmf-dist/tex/generic/babel-hungarian/magyar.ldf
271         ${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/doc
272         ${TOUCH} ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/doc/.keep_me
273         ${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/source
274         ${TOUCH} ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/source/.keep_me
275
276 post-install:
277         @${REINPLACE_CMD} -i '' -e '1s|/bin/bash|${bash_CMD}|' \
278                 ${STAGEDIR}${PREFIX}/share/texmf-dist/scripts/logicpuzzle/createlpsudoku \
279                 ${STAGEDIR}${PREFIX}/share/texmf-dist/scripts/logicpuzzle/lpsmag \
280                 ${STAGEDIR}${PREFIX}/share/texmf-dist/scripts/shipunov/biokey2html.sh
281         @${REINPLACE_CMD} -i '' -e '1s|/usr/bin/perl|${perl_CMD}|' \
282                 ${STAGEDIR}${PREFIX}/share/texmf-dist/scripts/mycv/mycv_split_contents.pl
283
284 .include <bsd.port.mk>