1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00
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

41 lines
994 B
Makefile

PORTNAME= bibtool
PORTVERSION= 2.68
CATEGORIES= textproc print
MASTER_SITES= TEX_CTAN/biblio/bibtex/utils/${PORTNAME}
DISTNAME= BibTool-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Command line manipulation of BibTeX files
WWW= https://ctan.org/tex-archive/biblio/bibtex/utils/bibtool/
LICENSE= GPLv2+
BROKEN= does not build: Failed to load "fontloader" module "basics-gen"
USES= tex
USE_TEX= latex:build luatex:build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-kpathsea
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
WRKSRC= ${WRKDIR}/BibTool
MAKEFILE= makefile
INSTALL_TARGET= install install.man
PORTDOCS= bibtool.pdf ref_card.pdf c_lib.pdf
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} 's/bibtex$$/&8/' ${WRKSRC}/doc/Makefile
post-build:
cd ${WRKSRC} && ${MAKE} doc && ${MAKE} doc
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>