summaryrefslogtreecommitdiff
path: root/print/tex-texlive-scripts/Makefile
blob: f0fe877fe56e80a5b976abe59923f354c76a225e (plain)
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
# $NetBSD: Makefile,v 1.17 2019/02/02 01:11:17 markd Exp $

DISTNAME=	texlive-scripts
PKGNAME=	tex-${DISTNAME}-2018.49884
TEXLIVE_REV=	49884

MAINTAINER=	minskim@NetBSD.org
COMMENT=	TeX Live infrastructure programs
LICENSE=	gnu-gpl-v2 AND public-domain

CONFLICTS+=	tex-bin-texlive-[0-9]*

USE_TOOLS+=	gs:run

REPLACE_TEXLUA=		bin/rungs \
			texmf-dist/scripts/texlive/lua/texlive/getopt.tlu \
			texmf-dist/scripts/texlive/lua/texlive/tlpdb.tlu \
			texmf-dist/scripts/texlive/test-tlpdb.tlu \
			texmf-dist/scripts/texlive/texconf.tlu

SUBST_CLASSES+=		paths
SUBST_MESSAGE.paths=	Setting paths to commands.
SUBST_STAGE.paths=	pre-configure
SUBST_FILES.paths=	bin/rungs
SUBST_SED.paths+=	-e 's,@GS@,${TOOLS_PATH.gs},g'

.include "../../print/texlive/package.mk"

post-extract:
	${MKDIR} ${WRKSRC}/bin
	${MV} ${WRKSRC}/texmf-dist/scripts/texlive/rungs.tlu \
		${WRKSRC}/bin/rungs

.include "../../mk/bsd.pkg.mk"