freebsd-ports/print/texinfo/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

67 lines
2.1 KiB
Makefile

PORTNAME= texinfo
PORTVERSION= 6.8
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= print
MASTER_SITES= GNU \
LOCAL/sunpoet/texinfo:DEFAULT,local
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
htmlxref.cnf-${HTMLXREF_CNF_RELDATE}:local \
texi2dvi-${TEXI2DVI_RELDATE}:local \
texinfo.tex-${TEXINFO_TEX_RELDATE}:local
DIST_SUBDIR= texinfo
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Typeset documentation system with multiple format output
WWW= https://www.gnu.org/software/texinfo/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= help2man:misc/help2man \
${RUN_DEPENDS}
RUN_DEPENDS= p5-Locale-libintl>=0:devel/p5-Locale-libintl \
p5-Text-Unidecode>=0:converters/p5-Text-Unidecode \
p5-Unicode-EastAsianWidth>=0:textproc/p5-Unicode-EastAsianWidth
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
USES= charsetfix cpe gmake iconv:wchar_t libtool ncurses perl5 tar:xz tex
CONFIGURE_ARGS= --with-external-libintl-perl \
--with-external-Text-Unidecode \
--with-external-Unicode-EastAsianWidth
CONFIGURE_ENV= PERL_EXT_CC="${CC}"
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip install-tex
MAKE_ARGS= PERL=${PERL} TEXMF=${LOCALBASE}/${TEXMFDIR}
PKGDEINSTALL= ${PKGINSTALL}
INFO= info-stnd texinfo
# Use the date on https://ftp.gnu.org/gnu/texinfo/
HTMLXREF_CNF_RELDATE= 20220110
TEXI2DVI_RELDATE= 20220408
TEXINFO_TEX_RELDATE= 20220409
CPE_VENDOR= gnu
CPE_VERSION= ${PORTVERSION:R}
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
post-patch:
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/texinfo.tex-${TEXINFO_TEX_RELDATE} ${WRKSRC}/doc/texinfo.tex
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/htmlxref.cnf-${HTMLXREF_CNF_RELDATE} ${WRKSRC}/util/htmlxref.cnf
@${INSTALL_SCRIPT} ${DISTDIR}/${DIST_SUBDIR}/texi2dvi-${TEXI2DVI_RELDATE} ${WRKSRC}/util/texi2dvi
@${REINPLACE_CMD} -e '/rm -f $$(DESTDIR)/ s|$$| $$(DESTDIR)$$(xsdir)/XSParagraph.*|' ${WRKSRC}/tp/Texinfo/XS/Makefile.in
@${REINPLACE_CMD} -e 's|free (.*)|Safe&|' ${WRKSRC}/tp/Texinfo/XS/misc.c
@${REINPLACE_CMD} -e 's/tinfo/tinfow/g' ${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKSRC}/util/htmlxref.cnf ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>