freebsd-ports/converters/p5-LaTeXML/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

51 lines
1.4 KiB
Makefile

PORTNAME= LaTeXML
PORTVERSION= 0.8.7
CATEGORIES= converters perl5
MASTER_SITES= CPAN \
http://dlmf.nist.gov/LaTeXML/releases/
MASTER_SITE_SUBDIR= CPAN:BRMILLER
PKGNAMEPREFIX= p5-
MAINTAINER= wen@FreeBSD.org
COMMENT= LaTeX to XML/HTML/MathML converter in Perl
WWW= https://metacpan.org/release/LaTeXML
LICENSE= PD CC0-1.0
LICENSE_COMB= dual
LICENSE_FILE_CC0-1.0= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= p5-Archive-Zip>=0:archivers/p5-Archive-Zip \
p5-JSON-XS>=0:converters/p5-JSON-XS \
p5-Text-Unidecode>=0:converters/p5-Text-Unidecode \
p5-IO-String>=0:devel/p5-IO-String \
p5-Parse-RecDescent>=0:devel/p5-Parse-RecDescent \
p5-Pod-Parser>=0:textproc/p5-Pod-Parser \
p5-Image-Size>=0:graphics/p5-Image-Size \
p5-URI>=0:net/p5-URI \
p5-File-Which>=0:sysutils/p5-File-Which \
p5-XML-LibXML>=1.62:textproc/p5-XML-LibXML \
p5-XML-LibXSLT>=1.58:textproc/p5-XML-LibXSLT \
p5-libwww>=0:www/p5-libwww
USES= perl5 tex
USE_PERL5= configure
USE_TEX= kpathsea
NO_ARCH= yes
NO_BUILD= yes
PORTDOCS= Changes README.pod manual.pdf
OPTIONS_DEFINE= DOCS
post-install:
${FIND} ${STAGEDIR}/${PREFIX} -name .packlist | \
${XARGS} ${REINPLACE_CMD} -e 's|^${STAGEDIR}||'
${RM} ${STAGEDIR}${PREFIX}/share/texmf-local/tex/latex/latexml/.packlist.bak
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>