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
|
# $NetBSD: Makefile,v 1.1 2020/05/10 03:56:44 markd Exp $
DISTNAME= texlive-scripts-extra
PKGNAME= tex-${DISTNAME}-2020
TEXLIVE_REV= 54744
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= More TeXLive scripts
LICENSE= gnu-gpl-v2 AND public-domain
DEPENDS+= dialog>=1.0:../../misc/dialog
DEPENDS+= tex-texlive-scripts-[0-9]*:../../print/tex-texlive-scripts
DEPENDS+= ps2eps>=1.68:../../graphics/ps2eps
DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
DEPENDS+= tex-pslatex-[0-9]*:../../print/tex-pslatex
DEPENDS+= tex-epstopdf-[0-9]*:../../graphics/tex-epstopdf
DEPENDS+= tex-pst-pdf-[0-9]*:../../graphics/tex-pst-pdf
USE_TOOLS+= perl:run sh:run
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Setting paths to commands.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= bin/kpsetool bin/kpsewhere \
bin/texconfig bin/texconfig-dialog bin/texconfig-sys \
bin/texlinks \
texmf-dist/texconfig/tcfmgr
SUBST_SED.paths+= -e 's,@DIALOG@,${PREFIX}/bin/dialog,g'
SUBST_SED.paths+= -e 's,@FMTUTIL@,${PREFIX}/bin/fmtutil,g'
SUBST_SED.paths+= -e 's,@KPSEWHICH@,${PREFIX}/bin/kpsewhich,g'
SUBST_SED.paths+= -e 's,@MKTEXLSR@,${PREFIX}/bin/mktexlsr,g'
SUBST_SED.paths+= -e 's,@TEXCONF_DIALOG@,${PREFIX}/bin/texconfig-dialog,g'
SUBST_SED.paths+= -e 's,@TEXLINKS@,${PREFIX}/bin/texlnks,g'
SUBST_SED.paths+= -e 's,@TEXCONFIG@,${PREFIX}/bin/texconfig,g'
SUBST_SED.paths+= -e 's,@UPDMAP@,${PREFIX}/bin/updmap,g'
SUBST_SED.paths+= -e 's,@EPSTOPDF@,${PREFIX}/bin/epstopdf,g'
REPLACE_PERL= bin/e2pall
REPLACE_SH= bin/allcm bin/allneeded bin/dvi2fax bin/dvired \
bin/kpsetool bin/kpsewhere bin/ps2frag bin/pslatex \
bin/texconfig bin/texconfig-dialog bin/texconfig-sys bin/texlinks \
texmf-dist/texconfig/tcfmgr
#TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf-dist
.include "../../print/texlive/package.mk"
post-extract:
${MKDIR} ${WRKSRC}/bin
.for script in texconfig-dialog.sh texconfig-sys.sh texconfig.sh texlinks.sh
${MV} ${WRKSRC}/texmf-dist/scripts/texlive-extra/${script} \
${WRKSRC}/bin/${script:S/.sh//}
.endfor
.for script in allcm.sh allneeded.sh dvi2fax.sh dvired.sh e2pall.pl \
kpsetool.sh kpsewhere.sh ps2frag.sh pslatex.sh
${MV} ${WRKSRC}/texmf-dist/scripts/texlive-extra/${script} \
${WRKSRC}/bin/${script:S/.pl//:S/.sh//}
.endfor
${CHMOD} +x ${WRKSRC}/texmf-dist/texconfig/tcfmgr
post-install:
${LN} -sf allcm ${DESTDIR}${PREFIX}/bin/allec
${LN} -sf kpsetool ${DESTDIR}${PREFIX}/bin/kpsepath
${LN} -sf kpsetool ${DESTDIR}${PREFIX}/bin/kpsexpand
.include "../../mk/bsd.pkg.mk"
|