# $FreeBSD$ PORTNAME= latex-ifluatex PORTVERSION= 1.3 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_TEX_CTAN} MASTER_SITE_SUBDIR= macros/latex/contrib/oberdiek DISTFILES= ifluatex.dtx ${DOC_FILES} DIST_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= LaTeX package that provides the \ifluatex switch USE_TEX= latex PLIST_SUB= TEXMFLOCAL=${TEXMFLOCAL} MKTEXLSR=${MKTEXLSR} \ CLASSDIR=${CLASSDIR} TEXMFLOCAL= share/texmf-local TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R MKTEXLSR= ${LOCALBASE}/bin/mktexlsr TEX_BIN= ${LOCALBASE}/bin/etex CLASSDIR= ${TEXMFLOCAL}/tex/latex/${PORTNAME:S/^latex-//} WRKSRC= ${WRKDIR}/${PORTNAME:S/^latex-//} CLASS_FILES= ifluatex.dtx ifluatex.sty DOC_FILES= ifluatex.pdf NO_STAGE= yes do-extract: ${MKDIR} ${WRKSRC} cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC} do-build: cd ${WRKSRC} && ${TEX_BIN} ifluatex.dtx do-install: ${MKDIR} ${PREFIX}/${CLASSDIR} ${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR} .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR} .endif post-install: @${MKTEXLSR} .include