freebsd-ports/print/latex-beamer/Makefile
Muhammad Moinur Rahman 721e5776c9 Mk/**tex.mk: Convert bsd.tex.mk to USES=tex
- Update all the consumers to use USES=tex
- USE_TEX=yes is the old way of writing USES=tex which has been removed
  and replaced in all ports
- Almost all of the USE_TEX features remains unchanged
- Some consumers had the same variables defined both in the mk
  infrastructure and also in the ports which have been removed from the
  ports as those are redundant.

In case any of the consumers are failing to build please make sure that
the nexessary USES=tex is there. Unlike previous USE_TEX=yes will no
longer load the required VARS for tex and related dependencies.

Reviewed by:	portmgr
Approved by:	portmgr (blanket)
2022-12-19 08:44:58 -06:00

45 lines
1.0 KiB
Makefile

PORTNAME= latex-beamer
PORTVERSION= 3.57
DISTVERSIONPREFIX= v
CATEGORIES= print
MAINTAINER= hrs@FreeBSD.org
COMMENT= LaTeX class to create a beamer presentation
WWW= https://github.com/josephwright/beamer
LICENSE= GPLv2 LPPL13c
LICENSE_COMB= dual
USES= tex
USE_TEX= texmf latex texhash texlua
USE_GITHUB= yes
GH_ACCOUNT= josephwright
GH_PROJECT= beamer
TEXHASHDIRS= ${TEXMFDIR}
NO_BUILD= YES
NO_ARCH= YES
PORTDOCS= *
OPTIONS_DEFINE= DOCS
CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME:S/^latex-//}
CLASS_SUBDIRS= base examples
DOC_SUBDIRS= AUTHORS.md CHANGELOG.md README.md doc solutions
.include <bsd.port.options.mk>
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${CLASSDIR}
${MV} ${WRKSRC}/doc/examples ${WRKSRC}/examples
${MV} ${WRKSRC}/doc/solutions ${WRKSRC}/solutions
cd ${WRKSRC} && for d in ${CLASS_SUBDIRS}; do \
${PAX} -rw $$d ${STAGEDIR}${PREFIX}/${CLASSDIR}; \
done
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && for d in ${DOC_SUBDIRS}; do \
${PAX} -rw $$d ${STAGEDIR}${DOCSDIR}; \
done
.endif
.include <bsd.port.mk>