diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2022-12-19 14:35:46 +0000 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2022-12-19 14:44:58 +0000 |
commit | 721e5776c957ada07a0d148f5fc3e782a251e6dc (patch) | |
tree | 07ef1561e68ff0e579371a2599760d8de5a630aa | |
parent | 1bcf2a7fcb3e715eded0aad351c04019434fa446 (diff) | |
download | ports-721e5776c957ada07a0d148f5fc3e782a251e6dc.tar.gz ports-721e5776c957ada07a0d148f5fc3e782a251e6dc.zip |
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)
129 files changed, 218 insertions, 165 deletions
diff --git a/Mk/bsd.tex.mk b/Mk/Uses/tex.mk index ce8efc912194..ec6c56e1d6e1 100644 --- a/Mk/bsd.tex.mk +++ b/Mk/Uses/tex.mk @@ -1,37 +1,34 @@ -# bsd.tex.mk - Common part for TeX related ports -# -TEX_MAINTAINER= freebsd-tex@FreeBSD.org +# Feature: tex +# Usage: USES=tex +# Valid ARGS: (none) +# MAINTAINER: tex@FreeBSD.org -# -# Ports which depend on TeX should use USE_TEX. -# -# USE_TEX= yes -# imports variables only, and -# USE_TEX= full +# This imports variables only, and USE_TEX= full # means full TeXLive dependency except for documentation and source. # -# The other valid keywords +# USE_TEX is used to enable additional specific features and +# fnctionalities for tex. # -# base: base part -# texmf: texmf tree (except for documentation and source) -# source: source -# docs: documentation -# -# web2c: WEB2C toolchain and TeX engines +# Valid keywords for USE_TEX are as following: + +# base: base part +# texmf: texmf tree (except for documentation and source) +# source: source +# docs: documentation +# web2c: WEB2C toolchain and TeX engines # kpathsea: kpathsea library -# ptexenc: character code conversion library for pTeX -# basic: basic TeX engines including tex and pdftex -# tlmgr: tlmgr dependency (Perl modules) -# texlua: texlua53 library +# ptexenc: character code conversion library for pTeX +# basic: basic TeX engines including tex and pdftex +# tlmgr: tlmgr dependency (Perl modules) +# texlua: texlua53 library # texluajit: texluajit library -# synctex: synctex library +# synctex: synctex library # xpdfopen: pdfopen/pdfclose utility -# -# dvipsk: dvipsk +# dvipsk: dvipsk # dvipdfmx: DVIPDFMx -# xdvik: XDvi +# xdvik: XDvi # gbklatex: gbklatex -# + # formats: TeX, LaTeX, AMSTeX, ConTeXT, EplainTeX, # CSplainTeX, METAFONT, MLTeX, PDFTeX, TeXsis # tex: TeX @@ -52,6 +49,34 @@ TEX_MAINTAINER= freebsd-tex@FreeBSD.org # USE_TEX= formats # USE_TEX= latex:build dvipsk:build +.if !defined(_INCLUDE_USES_TEX_MK) +_INCLUDE_USES_TEX_MK= yes + +# List all valid USE_TEX features here +_VALID_TEX_FEATURES= base texmf source docs web2c kpathsea ptexenc basic \ + tlmgr texlua texluajit synctex xpdfopen dvipsk dvipdfmx \ + xdvik gbklatex formats tex latex pdftex jadetex luatex \ + ptex xetex xmltex texhash texhash-bootstrap updmap fmtutil full + +_INVALID_TEX_FEATURES= +. for var in ${USE_TEX:O:u:C/:(build|extract|lib|run|test)$//} +. if empty(_VALID_TEX_FEATURES:M${var}) +_INVALID_TEX_FEATURES+= ${var} +. endif +. endfor +. if !empty(_INVALID_TEX_FEATURES) +IGNORE= uses unknown USE_TEX features: ${_INVALID_TEX_FEATURES} +. endif + +. if !empty(tex_ARGS) +IGNORE= USES=tex takes no arguments +. endif + +# Make each individual feature available as _TEX_FEATURE_<FEATURENAME> +. for var in ${USE_TEX} +_TEX_FEATURE_${var:C/=.*$//:tu}= ${var:C/.*=//:S/,/ /g} +. endfor + # default TeX distribution. "texlive" TEX_DEFAULT?= texlive @@ -73,10 +98,6 @@ TEXLIVE_VERSION?= ${TEXLIVE_YEAR}0325 PLIST_SUB+= $V="${$V}" .endfor -.if !empty(USE_TEX:tu:MTEXLIVE) -IGNORE= "texlive" must not be defined in USE_TEX -.endif - _USE_TEX_TEXMF_DEP= ${LOCALBASE}/${TEXMFDISTDIR}/README _USE_TEX_TEXMF_PORT= print/${_USE_TEX_TEXMF_PKGNAME} _USE_TEX_TEXMF_PKGNAME= texlive-texmf @@ -186,7 +207,6 @@ _C:= BUILD RUN . else _C:= ${_U:C/.*://:S/,/ /g:C/[<>=][^\:]*//g} . endif -#. warning DEBUG: ${_U}: _VOP=${_VOP}, _C=${_C} . for _CC in ${_C:tu} _V:=${_UU:C/[<>=][^\:]*//:C/\:.*$//} . if defined(_USE_TEX_${_V}_PORT) @@ -203,7 +223,7 @@ TEX_${_CC}_DEPENDS+= ${_T} . endfor .endfor -.for _C in EXTRACT BUILD LIB RUN +.for _C in EXTRACT BUILD LIB RUN TEST ${_C}_DEPENDS+= ${TEX_${_C}_DEPENDS:O:u} .endfor @@ -626,3 +646,5 @@ TEX_FORMAT_XMLTEX_DIRS= \ post-install-xmltex: ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/xmltex ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/pdfxmltex + +.endif # !defined(_INCLUDE_USES_TEX_MK) diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 1600ed176739..457497a17e8a 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1403,10 +1403,6 @@ USE_APACHE:= ${USE_APACHE:S/common/server,/} USES+= apache:${USE_APACHE:C/2([0-9])/2.\1/g} . endif -. if defined(USE_TEX) -.include "${PORTSDIR}/Mk/bsd.tex.mk" -. endif - . if defined(USE_GECKO) .include "${PORTSDIR}/Mk/bsd.gecko.mk" . endif diff --git a/arabic/arabtex/Makefile b/arabic/arabtex/Makefile index af97d258a3cb..04ee20ab0336 100644 --- a/arabic/arabtex/Makefile +++ b/arabic/arabtex/Makefile @@ -11,7 +11,7 @@ WWW= http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm LICENSE= LPPL10 -USES= tar:tgz +USES= tar:tgz tex USE_TEX= base texmf NO_WRKSUBDIR= yes diff --git a/astro/pp3/Makefile b/astro/pp3/Makefile index b061a7c9f393..2d3b87c7997a 100644 --- a/astro/pp3/Makefile +++ b/astro/pp3/Makefile @@ -11,7 +11,7 @@ WWW= http://pp3.sourceforge.net/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING -USES= tar:bzip2 +USES= tar:bzip2 tex USE_TEX= latex OPTIONS_DEFINE= DOCS EXAMPLES diff --git a/cad/alliance/Makefile b/cad/alliance/Makefile index b14ea8020cf6..04d9855e7e1b 100644 --- a/cad/alliance/Makefile +++ b/cad/alliance/Makefile @@ -21,7 +21,7 @@ GL_SITE= https://gitlab.lip6.fr GL_ACCOUNT= vlsi-eda GL_COMMIT= ebece102e15c110fc79f1da50524c68fd9523f0c -USES= autoreconf:build gmake libtool magick:build motif tar:bz2 xorg +USES= autoreconf:build gmake libtool magick:build motif tar:bz2 tex xorg USE_GCC= yes USE_TEX= dvipsk:build latex:build USE_XORG= ice sm x11 xext xt diff --git a/cad/opencascade/Makefile b/cad/opencascade/Makefile index 325e005c58d2..4a07f1c2f670 100644 --- a/cad/opencascade/Makefile +++ b/cad/opencascade/Makefile @@ -121,6 +121,7 @@ VIS_LIB_DEPENDS= libftgl.so:graphics/ftgl \ VIS_USE= GL=glesv2 DOXYGEN_IMPLIES= DOCS +DOXYGEN_USES= tex DOXYGEN_USE= TEX=latex:build DOXYGEN_BUILD_DEPENDS= bash:shells/bash \ doxygen:devel/doxygen \ diff --git a/cad/opencascade740/Makefile b/cad/opencascade740/Makefile index e065194e27bc..8eef300d1e2e 100644 --- a/cad/opencascade740/Makefile +++ b/cad/opencascade740/Makefile @@ -76,6 +76,7 @@ VIS_LIB_DEPENDS= libftgl.so:graphics/ftgl \ libfreeimageplus.so:graphics/freeimage DOXYGEN_IMPLIES= DOCS +DOXYGEN_USES= tex DOXYGEN_USE= TEX=latex:build DOXYGEN_BUILD_DEPENDS= bash:shells/bash \ doxygen:devel/doxygen \ diff --git a/converters/p5-LaTeXML/Makefile b/converters/p5-LaTeXML/Makefile index bf1f8dfeef73..95be14eefa43 100644 --- a/converters/p5-LaTeXML/Makefile +++ b/converters/p5-LaTeXML/Makefile @@ -28,7 +28,7 @@ RUN_DEPENDS= p5-Archive-Zip>=0:archivers/p5-Archive-Zip \ p5-XML-LibXSLT>=1.58:textproc/p5-XML-LibXSLT \ p5-libwww>=0:www/p5-libwww -USES= perl5 +USES= perl5 tex USE_PERL5= configure USE_TEX= kpathsea NO_ARCH= yes diff --git a/databases/bbdb/Makefile b/databases/bbdb/Makefile index 894d65c82aa9..3d8062842dd7 100644 --- a/databases/bbdb/Makefile +++ b/databases/bbdb/Makefile @@ -30,6 +30,7 @@ NO_ARCH= yes PLIST_SUB+= BBDB_LISPDIR=${BBDB_LISPDIR} OPTIONS_DEFINE= DOCS +DOCS_USES= tex DOCS_USE= TEX=latex:build DOCS_CONFIGURE_ENABLE= docs diff --git a/deskutils/recoll/Makefile b/deskutils/recoll/Makefile index 84d3e5bda28c..a1d0ef6cc9c8 100644 --- a/deskutils/recoll/Makefile +++ b/deskutils/recoll/Makefile @@ -52,8 +52,8 @@ CHM_LIB_DEPENDS= libchm.so:misc/chmlib CHM_CONFIGURE_OFF= --disable-python-chm DJVU_RUN_DEPENDS= djvutxt:graphics/djvulibre IMAGE_RUN_DEPENDS= exiftool:graphics/p5-Image-ExifTool -LATEX_USE= dvipsk:run \ - latex:run +LATEX_USES= tex +LATEX_USE= TEX=dvipsk:run,latex:run PDF_RUN_DEPENDS= pdftotext:graphics/poppler-utils PS_RUN_DEPENDS= pstotext:print/pstotext QT5_USES= gl qt:5 diff --git a/deskutils/zim/Makefile b/deskutils/zim/Makefile index ce5c0848b1f1..80220762bd42 100644 --- a/deskutils/zim/Makefile +++ b/deskutils/zim/Makefile @@ -34,7 +34,8 @@ GNUPLOT_RUN_DEPENDS= gnuplot:math/gnuplot GNUR_DESC= Support of plot editor based on GNU R GNUR_RUN_DEPENDS= R:math/R GRAPHVIZ_RUN_DEPENDS= fdp:graphics/graphviz -LATEX_USE= tex=latex:run +LATEX_USES= tex +LATEX_USE= TEX=latex:run MERCURIAL_DESC= Version control for notebooks using hg MERCURIAL_RUN_DEPENDS= ${PY_MERCURIAL} SCROT_DESC= Screenshot taking and inserting support diff --git a/devel/avr-libc/Makefile b/devel/avr-libc/Makefile index cb04ee003ca2..836146e84b52 100644 --- a/devel/avr-libc/Makefile +++ b/devel/avr-libc/Makefile @@ -28,6 +28,7 @@ OPTIONS_DEFINE= DOXYGEN .endif .if ${PORT_OPTIONS:MDOXYGEN} +USES+= tex USE_TEX= latex:build BUILD_DEPENDS+= doxygen:devel/doxygen \ fig2dev:print/fig2dev \ diff --git a/devel/cl-alexandria/Makefile b/devel/cl-alexandria/Makefile index b8da5389757d..0b8c30784c22 100644 --- a/devel/cl-alexandria/Makefile +++ b/devel/cl-alexandria/Makefile @@ -20,7 +20,7 @@ OPTIONS_DEFINE= DOCS DOCS_BUILD_DEPENDS= sbcl:lang/sbcl \ texi2pdf:print/texinfo - +DOCS_USES= tex DOCS_USE= TEX=latex:build DOCS_INFO= doc/${PORTNAME} diff --git a/devel/doxygen/Makefile b/devel/doxygen/Makefile index 6ec8055a4458..3ad72d7641d8 100644 --- a/devel/doxygen/Makefile +++ b/devel/doxygen/Makefile @@ -29,7 +29,7 @@ OPTIONS_DEFAULT= GRAPHVIZ QT5_DESC= Install Doxywizard GUI with Qt5 SEARCH_DESC= Build external search tools (doxysearch and doxyindexer) -DOCS_USES= ghostscript:build +DOCS_USES= ghostscript:build tex DOCS_USE= TEX=base:build,dvipsk:build,pdftex:build DOCS_ALL_TARGET= docs DOCS_BUILD_DEPENDS= dot:graphics/graphviz @@ -45,6 +45,7 @@ PORTDOCS= * GRAPHVIZ_RUN_DEPENDS= dot:graphics/graphviz +LATEX_USES= tex LATEX_USE= TEX=base,dvipsk,pdftex QT5_USES= qt:5 diff --git a/devel/forge-devel/Makefile b/devel/forge-devel/Makefile index 9894955f4eeb..ffecddb9e066 100644 --- a/devel/forge-devel/Makefile +++ b/devel/forge-devel/Makefile @@ -57,6 +57,7 @@ DOCS_BUILD_DEPENDS= gsed:textproc/gsed DOCS_ALL_TARGET= html DOCS_BINARY_ALIAS= sed=gsed PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf diff --git a/devel/forge/Makefile b/devel/forge/Makefile index 37d7ba9dbd78..8feca75957c5 100644 --- a/devel/forge/Makefile +++ b/devel/forge/Makefile @@ -55,6 +55,7 @@ DOCS_BUILD_DEPENDS= gsed:textproc/gsed DOCS_ALL_TARGET= html DOCS_BINARY_ALIAS= sed=gsed PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf diff --git a/devel/gcc-arm-embedded/Makefile b/devel/gcc-arm-embedded/Makefile index 1f093b356517..ceb6685c82fe 100644 --- a/devel/gcc-arm-embedded/Makefile +++ b/devel/gcc-arm-embedded/Makefile @@ -33,6 +33,7 @@ PURE_LIB_DEPENDS_OFF= libexpat.so:textproc/expat2 \ libmpc.so:math/mpc \ libisl.so:devel/isl +PDF_USES= tex PDF_USE= TEX=base:build,tex:build,dvipsk:build PDF_BUILD_DEPENDS= texi2dvi:print/texinfo PYGDB_USES= python diff --git a/devel/ghub-devel/Makefile b/devel/ghub-devel/Makefile index c9c23029c890..3783d712ac6b 100644 --- a/devel/ghub-devel/Makefile +++ b/devel/ghub-devel/Makefile @@ -40,6 +40,7 @@ DOCS_BUILD_DEPENDS= gsed:textproc/gsed DOCS_ALL_TARGET= html DOCS_BINARY_ALIAS= sed=gsed PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf PDF_PLIST_FILES= ${DOCSDIR}/ghub.pdf diff --git a/devel/ghub/Makefile b/devel/ghub/Makefile index 28d1f144715a..07bfbeff7daf 100644 --- a/devel/ghub/Makefile +++ b/devel/ghub/Makefile @@ -37,6 +37,7 @@ DOCS_BUILD_DEPENDS= gsed:textproc/gsed DOCS_ALL_TARGET= html DOCS_BINARY_ALIAS= sed=gsed PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf PDF_PLIST_FILES= ${DOCSDIR}/ghub.pdf diff --git a/devel/magit-devel/Makefile b/devel/magit-devel/Makefile index b03de85329fe..2287db951725 100644 --- a/devel/magit-devel/Makefile +++ b/devel/magit-devel/Makefile @@ -58,6 +58,7 @@ LIBEGIT2_RUN_DEPENDS= libegit2${EMACS_PKGNAMESUFFIX}>=g20200515:devel/libegit2@ LIBEGIT2_RUN_DEPENDS_OFF= git:devel/git LIBEGIT2_VARS= MAKE_ENV+=BUILD_MAGIT_LIBGIT=true PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf diff --git a/devel/magit/Makefile b/devel/magit/Makefile index 356ce58b069b..3f0242aa6cec 100644 --- a/devel/magit/Makefile +++ b/devel/magit/Makefile @@ -56,6 +56,7 @@ LIBEGIT2_RUN_DEPENDS= libegit2${EMACS_PKGNAMESUFFIX}>=g20200515:devel/libegit2@ LIBEGIT2_RUN_DEPENDS_OFF= git:devel/git LIBEGIT2_VARS_OFF= MAKE_ENV+=BUILD_MAGIT_LIBGIT=false PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf diff --git a/devel/ragel/Makefile b/devel/ragel/Makefile index 6d898003ba4b..d28da5768397 100644 --- a/devel/ragel/Makefile +++ b/devel/ragel/Makefile @@ -18,6 +18,7 @@ OPTIONS_DEFINE= TEXDOCS EXAMPLES OPTIONS_SUB= yes TEXDOCS_CONFIGURE_ENABLE= manual TEXDOCS_DESC= Build pdf documentation (requires LaTeX) +TEXDOCS_USES= tex TEXDOCS_USE= TEX=latex:build TEXDOCS_BUILD_DEPENDS= fig2dev:print/transfig diff --git a/devel/tex-kpathsea/Makefile b/devel/tex-kpathsea/Makefile index 1c89ae9a8040..06dd5d76d70f 100644 --- a/devel/tex-kpathsea/Makefile +++ b/devel/tex-kpathsea/Makefile @@ -11,9 +11,8 @@ COMMENT= Path searching library for TeX LICENSE= LGPL21+ -USES= libtool pathfix tar:xz +USES= libtool pathfix tar:xz tex USE_LDCONFIG= yes -USE_TEX= yes GNU_CONFIGURE= yes diff --git a/devel/tex-libtexlua/Makefile b/devel/tex-libtexlua/Makefile index 9c80ae72aeea..b08794aa305e 100644 --- a/devel/tex-libtexlua/Makefile +++ b/devel/tex-libtexlua/Makefile @@ -12,9 +12,8 @@ COMMENT= Lua library for TeXLive LICENSE= MIT LICENSE_FILE= ${WRKDIR}/LICENSE.MIT -USES= libtool pathfix pkgconfig tar:xz +USES= libtool pathfix pkgconfig tar:xz tex USE_LDCONFIG= yes -USE_TEX= yes GNU_CONFIGURE= yes diff --git a/devel/tex-libtexluajit/Makefile b/devel/tex-libtexluajit/Makefile index 717aa32ad02b..d751bae68cc6 100644 --- a/devel/tex-libtexluajit/Makefile +++ b/devel/tex-libtexluajit/Makefile @@ -18,9 +18,8 @@ BROKEN_powerpc64= Does not build: uninitialized constant Config (NameError) BROKEN_riscv64= Does not configure: error: Sorry, cannot preprocess lj_arch.h BROKEN_sparc64= Does not configure: error: Sorry, cannot preprocess lj_arch.h -USES= libtool pathfix pkgconfig tar:xz +USES= libtool pathfix pkgconfig tar:xz tex USE_LDCONFIG= yes -USE_TEX= yes GNU_CONFIGURE= yes diff --git a/devel/tex-synctex/Makefile b/devel/tex-synctex/Makefile index 663e8b8d2ec6..b787334520cc 100644 --- a/devel/tex-synctex/Makefile +++ b/devel/tex-synctex/Makefile @@ -14,7 +14,7 @@ WWW= http://itexmac.sourceforge.net/SyncTeX.html LICENSE= MIT LICENSE_FILE= ${WRKSRC}/synctexdir/README.txt -USES= libtool localbase pathfix pkgconfig tar:xz +USES= libtool localbase pathfix pkgconfig tar:xz tex USE_LDCONFIG= yes USE_TEX= kpathsea diff --git a/devel/tex-web2c/Makefile b/devel/tex-web2c/Makefile index c89393aff2a6..1b3d068d0b0e 100644 --- a/devel/tex-web2c/Makefile +++ b/devel/tex-web2c/Makefile @@ -15,7 +15,7 @@ LIB_DEPENDS= libgmp.so:math/gmp \ libpng.so:graphics/png \ libzzip.so:devel/zziplib -USES= gnome libtool localbase pathfix pkgconfig tar:xz xorg +USES= gnome libtool localbase pathfix pkgconfig tar:xz tex xorg USE_GNOME= cairo USE_LDCONFIG= yes USE_TEX= kpathsea ptexenc diff --git a/devel/transient-devel/Makefile b/devel/transient-devel/Makefile index 179289b52e49..2df0805a11ac 100644 --- a/devel/transient-devel/Makefile +++ b/devel/transient-devel/Makefile @@ -39,6 +39,7 @@ DOCS_BUILD_DEPENDS= gsed:textproc/gsed DOCS_ALL_TARGET= html DOCS_BINARY_ALIAS= sed=gsed PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf PDF_PLIST_FILES= ${DOCSDIR}/transient.pdf diff --git a/devel/transient/Makefile b/devel/transient/Makefile index 11deddc4a3b1..ee47e0efd008 100644 --- a/devel/transient/Makefile +++ b/devel/transient/Makefile @@ -34,6 +34,7 @@ DOCS_BUILD_DEPENDS= gsed:textproc/gsed DOCS_ALL_TARGET= html DOCS_BINARY_ALIAS= sed=gsed PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf PDF_PLIST_FILES= ${DOCSDIR}/transient.pdf diff --git a/editors/gnome-latex/Makefile b/editors/gnome-latex/Makefile index d03067557b8d..4e3c760d346a 100644 --- a/editors/gnome-latex/Makefile +++ b/editors/gnome-latex/Makefile @@ -19,7 +19,7 @@ LIB_DEPENDS= libgee-0.8.so:devel/libgee \ libgspell-1.so:textproc/gspell USES= compiler:c11 desktop-file-utils gettext gmake gnome \ - pkgconfig tar:xz vala:build + pkgconfig tar:xz tex vala:build GNU_CONFIGURE= yes USE_GNOME= cairo dconf intltool gtksourceview4 USE_TEX= latex dvipsk diff --git a/editors/texmacs/Makefile b/editors/texmacs/Makefile index acc5b2f6a055..7e276b3463c4 100644 --- a/editors/texmacs/Makefile +++ b/editors/texmacs/Makefile @@ -24,7 +24,7 @@ BROKEN_armv6= fails to compile: call to min is ambiguous BROKEN_armv7= fails to compile: call to min is ambiguous USES= cpe desktop-file-utils gmake iconv localbase pkgconfig python \ - shared-mime-info shebangfix xorg + shared-mime-info shebangfix tex xorg USE_TEX= tex:run dvipsk:run USE_XORG= xext GNU_CONFIGURE= yes diff --git a/editors/texmaker/Makefile b/editors/texmaker/Makefile index ba3f688af3bb..2676de4cdf16 100644 --- a/editors/texmaker/Makefile +++ b/editors/texmaker/Makefile @@ -14,7 +14,7 @@ LICENSE= GPLv2+ LIB_DEPENDS= libhunspell-1.7.so:textproc/hunspell USES= compiler:c++11-lang desktop-file-utils ghostscript:x11,run \ - gl pkgconfig qmake qt:5 tar:bzip2 + gl pkgconfig qmake qt:5 tar:bzip2 tex USE_GL= gl USE_QT= concurrent core gui network printsupport script widgets \ xml buildtools:build diff --git a/editors/texstudio/Makefile b/editors/texstudio/Makefile index 940f42c3af07..568eddf3963e 100644 --- a/editors/texstudio/Makefile +++ b/editors/texstudio/Makefile @@ -17,7 +17,7 @@ LIB_DEPENDS= libhunspell-1.7.so:textproc/hunspell \ libquazip1-qt5.so:archivers/quazip USES= compiler:c++11-lang desktop-file-utils dos2unix \ - ghostscript:run gl pkgconfig qmake qt:5 xorg + ghostscript:run gl pkgconfig qmake qt:5 tex xorg USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME}-org diff --git a/editors/texworks/Makefile b/editors/texworks/Makefile index 842bb7e06d14..af8406f271e3 100644 --- a/editors/texworks/Makefile +++ b/editors/texworks/Makefile @@ -17,7 +17,7 @@ LIB_DEPENDS= libhunspell-1.7.so:textproc/hunspell \ libpoppler-qt5.so:graphics/poppler-qt5 USES= compiler:c++11-lang cmake desktop-file-utils pkgconfig \ - qt:5 + qt:5 tex USE_GITHUB= yes GH_ACCOUNT= TeXworks USE_QT= buildtools:build designer:build qmake:build \ diff --git a/editors/with-editor-devel/Makefile b/editors/with-editor-devel/Makefile index 66863787b8cd..30c1242564d1 100644 --- a/editors/with-editor-devel/Makefile +++ b/editors/with-editor-devel/Makefile @@ -41,6 +41,7 @@ DOCS_BUILD_DEPENDS= gsed:textproc/gsed DOCS_ALL_TARGET= html DOCS_BINARY_ALIAS= sed=gsed PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf PDF_PLIST_FILES= ${DOCSDIR}/with-editor.pdf diff --git a/editors/with-editor/Makefile b/editors/with-editor/Makefile index d3480496c4b8..ac532c910bcc 100644 --- a/editors/with-editor/Makefile +++ b/editors/with-editor/Makefile @@ -36,6 +36,7 @@ DOCS_BUILD_DEPENDS= gsed:textproc/gsed DOCS_ALL_TARGET= html DOCS_BINARY_ALIAS= sed=gsed PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USES= tex PDF_USE= TEX=dvipdfmx:build PDF_ALL_TARGET= pdf PDF_PLIST_FILES= ${DOCSDIR}/with-editor.pdf diff --git a/emulators/virtualbox-ose-legacy/Makefile b/emulators/virtualbox-ose-legacy/Makefile index 78e0d874e71b..52f7a0a7e456 100644 --- a/emulators/virtualbox-ose-legacy/Makefile +++ b/emulators/virtualbox-ose-legacy/Makefile @@ -141,6 +141,7 @@ LICENSE_DISTFILES_Additions= ${GUESTADDITIONS} .if ${PORT_OPTIONS:MMANUAL} DBKXMLDIR= ${LOCALBASE}/share/xml/docbook/4.4 DBKXSLDIR= ${LOCALBASE}/share/xsl/docbook +USES+= tex USE_TEX= dvipsk:build formats:build .endif diff --git a/emulators/virtualbox-ose/Makefile b/emulators/virtualbox-ose/Makefile index b82a3073f8be..b3653df75436 100644 --- a/emulators/virtualbox-ose/Makefile +++ b/emulators/virtualbox-ose/Makefile @@ -145,6 +145,7 @@ LICENSE_DISTFILES_Additions= ${GUESTADDITIONS} .if ${PORT_OPTIONS:MMANUAL} DBKXMLDIR= ${LOCALBASE}/share/xml/docbook/4.4 DBKXSLDIR= ${LOCALBASE}/share/xsl/docbook +USES+= tex USE_TEX= dvipsk:build formats:build .endif diff --git a/graphics/epix/Makefile b/graphics/epix/Makefile index cbf0088775c9..d9d3d54a4898 100644 --- a/graphics/epix/Makefile +++ b/graphics/epix/Makefile @@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= bash:shells/bash RUN_DEPENDS= bash:shells/bash -USES= gmake makeinfo tar:bzip2 +USES= gmake makeinfo tar:bzip2 tex USE_TEX= dvipsk:build latex texmf:build GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-bash=${LOCALBASE}/bin/bash \ diff --git a/graphics/evince/Makefile b/graphics/evince/Makefile index 802ee8cf7c63..02dc4fd87ff7 100644 --- a/graphics/evince/Makefile +++ b/graphics/evince/Makefile @@ -76,6 +76,7 @@ DBUS_MESON_TRUE= dbus DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus DVI_DESC= DVI viewer support +DVI_USES= tex DVI_USE= TEX=kpathsea,latex DVI_MESON_ENABLED= dvi diff --git a/graphics/ipe/Makefile b/graphics/ipe/Makefile index d842224d27fd..73108b33048a 100644 --- a/graphics/ipe/Makefile +++ b/graphics/ipe/Makefile @@ -18,8 +18,9 @@ LIB_DEPENDS= libcurl.so:ftp/curl \ libpng.so:graphics/png \ libspiro.so:graphics/libspiro -USES= compiler:c++11-lib gmake gnome jpeg lua:52 pkgconfig shebangfix qt:5 +USES= compiler:c++11-lib gmake gnome jpeg lua:52 pkgconfig shebangfix qt:5 tex USE_GNOME= cairo +USE_LDCONFIG= yes USE_QT= buildtools:build core gui qmake:build widgets USE_TEX= pdftex @@ -39,7 +40,6 @@ MAKE_ENV= DL_LIBS="" \ JPEG_LIBS="-L${LOCALBASE}/lib -ljpeg" \ LUA_PACKAGE="lua-${LUA_VER}" \ MOC="${MOC}" -USE_LDCONFIG= yes PLIST_SUB= VERSION="${PORTVERSION}" diff --git a/graphics/klatexformula/Makefile b/graphics/klatexformula/Makefile index e8a6a267933e..741629338198 100644 --- a/graphics/klatexformula/Makefile +++ b/graphics/klatexformula/Makefile @@ -13,7 +13,7 @@ LICENSE= GPLv2 BUILD_DEPENDS= help2man:misc/help2man USES= cmake compiler:c++11-lang desktop-file-utils ghostscript:run \ - gl qt:5 shared-mime-info tar:bzip2 localbase + gl qt:5 shared-mime-info tar:bzip2 localbase tex USE_GL= gl USE_QT= core dbus gui sql svg widgets x11extras xml \ buildtools:build designer:build linguisttools:build \ diff --git a/graphics/l2p/Makefile b/graphics/l2p/Makefile index 7d4937f24e4e..9d72e69f2d75 100644 --- a/graphics/l2p/Makefile +++ b/graphics/l2p/Makefile @@ -20,7 +20,7 @@ SHEBANG_FILES= ${WRKSRC}/${PORTNAME} USE_PERL5= run USE_TEX= latex dvipsk -USES= magick:6,run perl5 shebangfix zip +USES= magick:6,run perl5 shebangfix tex zip do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin diff --git a/graphics/py-pyx/Makefile b/graphics/py-pyx/Makefile index de14678a6b86..2d560abc241a 100644 --- a/graphics/py-pyx/Makefile +++ b/graphics/py-pyx/Makefile @@ -12,7 +12,7 @@ WWW= https://pyx-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python:3.4+ +USES= python:3.4+ tex USE_PYTHON= autoplist concurrent distutils USE_TEX= latex:build diff --git a/graphics/xournalpp/Makefile b/graphics/xournalpp/Makefile index 63df44957f78..818682f46e70 100644 --- a/graphics/xournalpp/Makefile +++ b/graphics/xournalpp/Makefile @@ -18,7 +18,7 @@ LIB_DEPENDS= libharfbuzz.so:print/harfbuzz \ libsndfile.so:audio/libsndfile \ libzip.so:archivers/libzip -USES= cmake compiler:c++11-lang gettext-tools gnome lua:53 pkgconfig xorg +USES= cmake compiler:c++11-lang gettext-tools gnome lua:53 pkgconfig tex xorg USE_GITHUB= yes USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk30 librsvg2 libxml2 pango USE_XORG= x11 xi diff --git a/japanese/ja-tex-xdvik/Makefile b/japanese/ja-tex-xdvik/Makefile index 25e62a3d3e6a..47d4e73bc174 100644 --- a/japanese/ja-tex-xdvik/Makefile +++ b/japanese/ja-tex-xdvik/Makefile @@ -13,7 +13,7 @@ LIB_DEPENDS= libfreetype.so:print/freetype2 \ libpaper.so:print/libpaper RUN_DEPENDS= tex-dvipsk>=5.995:print/tex-dvipsk -USES= iconv motif pkgconfig xorg +USES= iconv motif pkgconfig tex xorg USE_TEX= kpathsea texhash texmf web2c USE_XORG= ice sm x11 xi xmu xpm xt diff --git a/japanese/latex-jlisting/Makefile b/japanese/latex-jlisting/Makefile index c7de5d98c038..da728eee5729 100644 --- a/japanese/latex-jlisting/Makefile +++ b/japanese/latex-jlisting/Makefile @@ -9,6 +9,7 @@ MAINTAINER= hiroto.kagotani@gmail.com COMMENT= Support for Japanese text within lstlisting environment WWW= https://sourceforge.jp/projects/mytexpert/ +USES= tex NO_BUILD= yes USE_TEX= latex texhash JLDIR= ${TEXMFLOCALDIR}/tex/latex/jlisting diff --git a/japanese/tex-ptex/Makefile b/japanese/tex-ptex/Makefile index fd6f3c7695c4..29b4e97f25e8 100644 --- a/japanese/tex-ptex/Makefile +++ b/japanese/tex-ptex/Makefile @@ -14,7 +14,7 @@ MAINTAINER= tex@FreeBSD.org COMMENT= ASCII Japanese pTeX WWW= https://ctan.org/pkg/ptex -USES= localbase tar:xz perl5 pkgconfig +USES= localbase tar:xz perl5 pkgconfig tex USE_TEX= kpathsea web2c ptexenc texmf formats fmtutil TEXHASHDIRS= ${TEXMFDISTDIR} ${TEXMFVARDIR} EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${DISTNAME}/,} diff --git a/korean/ko.TeX-fonts-base/Makefile b/korean/ko.TeX-fonts-base/Makefile index 1cf723bdc18e..34cb45c5dbd4 100644 --- a/korean/ko.TeX-fonts-base/Makefile +++ b/korean/ko.TeX-fonts-base/Makefile @@ -9,6 +9,7 @@ MAINTAINER= hyogeollee@gmail.com COMMENT= Korean TeX base fonts WWW= http://project.ktug.or.kr/ko.TeX/ +USES= tex USE_TEX= dvipsk latex CONFLICTS= hlatex diff --git a/korean/ko.TeX-fonts-extra/Makefile b/korean/ko.TeX-fonts-extra/Makefile index fb3dd121bfd7..cdde83a504cc 100644 --- a/korean/ko.TeX-fonts-extra/Makefile +++ b/korean/ko.TeX-fonts-extra/Makefile @@ -10,6 +10,7 @@ MAINTAINER= hyogeollee@gmail.com COMMENT= Korean TeX extra fonts WWW= http://project.ktug.or.kr/ko.TeX/ +USES= tex USE_TEX= dvipsk latex CONFLICTS= hlatex diff --git a/korean/ko.TeX/Makefile b/korean/ko.TeX/Makefile index 8767b73df05b..dfff0b31efe9 100644 --- a/korean/ko.TeX/Makefile +++ b/korean/ko.TeX/Makefile @@ -11,7 +11,7 @@ WWW= http://project.ktug.or.kr/ko.TeX/ RUN_DEPENDS= ${BASE_MAP}:korean/ko.TeX-fonts-base -USES= shebangfix +USES= shebangfix tex SHEBANG_FILES= util/*.pl USE_TEX= latex CONFLICTS= hlatex diff --git a/lang/mlton/Makefile b/lang/mlton/Makefile index cf49b696640c..57a1c21cb16e 100644 --- a/lang/mlton/Makefile +++ b/lang/mlton/Makefile @@ -83,8 +83,9 @@ MAKE_ARGS= DESTDIR='' MLTON_VERSION=${PORTVERSION} \ .if ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= htmldoc:textproc/htmldoc MAKE_ARGS+= MLTON_BINARY_RELEASE_WITH_DOCS=true -#USE_TEX= latex:build -USE_TEX= latex:formats +USES+= tex +USE_TEX= latex:build +#USE_TEX= latex:formats INSTALL_TARGET= install-docs install ALL_TARGET= install-docs all .else diff --git a/lang/scheme48/Makefile b/lang/scheme48/Makefile index 1fbfd622fbff..1bfffd22711f 100644 --- a/lang/scheme48/Makefile +++ b/lang/scheme48/Makefile @@ -19,7 +19,8 @@ CPE_VENDOR= s48 OPTIONS_DEFINE= DOCS -.include <bsd.port.options.mk> +DOCS_USES= tex +DOCS_CONFIGURE_ON= --docdir="${DOCSDIR}" PLIST_SUB+= VER=${PORTVERSION} @@ -32,17 +33,14 @@ post-patch: @${REINPLACE_CMD} \ -e '/INSTALL.*COPYING/d' \ ${WRKSRC}/Makefile.in -.if ${PORT_OPTIONS:MDOCS} -USE_TEX= yes -CONFIGURE_ARGS+=--docdir="${DOCSDIR}" -.else + +post-patch-DOCS-off: @${REINPLACE_CMD} \ -e 's/install-doc$$//' \ -e 's/go doc$$/go/' \ ${WRKSRC}/Makefile.in -.endif -test: +do-test: ${MAKE} -C ${WRKSRC} check .include <bsd.port.mk> diff --git a/lang/twelf/Makefile b/lang/twelf/Makefile index b04efb9a2ab1..17803086a9ae 100644 --- a/lang/twelf/Makefile +++ b/lang/twelf/Makefile @@ -31,7 +31,7 @@ WRKSRC= ${WRKDIR}/twelf DOCS_INFO= twelf DOCS_USE= TEX=dvipsk:build,tex:build -DOCS_USES= makeinfo +DOCS_USES= makeinfo tex post-patch-DOCS-on: @${REINPLACE_CMD} 's|-number|-number-sections|g' \ diff --git a/lang/yap/Makefile b/lang/yap/Makefile index 33ab77eee6a9..77b44cbc9fca 100644 --- a/lang/yap/Makefile +++ b/lang/yap/Makefile @@ -26,6 +26,7 @@ OPTIONS_DEFINE= DOCS BUILDDOCS BUILDDOCS_DESC= Rebuild documentation (requires TeX) DOCS_DESC= Install documentation +BUILDDOCS_USES= tex BUILDDOCS_USE= TEX=formats:build,dvipsk:build BUILDDOCS_BUILD_DEPENDS=${LOCALBASE}/bin/texi2html:textproc/texi2html \ ${LOCALBASE}/bin/texi2pdf:print/texinfo diff --git a/math/R/Makefile b/math/R/Makefile index e39f9caf161d..540bc5beae44 100644 --- a/math/R/Makefile +++ b/math/R/Makefile @@ -106,6 +106,7 @@ TCLTK_IMPLIES= X11 TCLTK_USES= tcl tk TCLTK_CONFIGURE_WITH= tcltk tcl_config=${TCL_LIBDIR}/tclConfig.sh \ tk_config=${TK_LIBDIR}/tkConfig.sh +TEXDOCS_USES= tex TEXDOCS_USE= TEX=dvipsk:build,kpathsea:build,pdftex:build .for i in KPSEWHICH MAKEINDEX PDFLATEX PDFTEX TEX TEXI2DVI TEXDOCS_CONFIGURE_ENV_OFF+= ac_cv_path_${i}="" diff --git a/math/adept/Makefile b/math/adept/Makefile index b439014b83b9..3eb980c3bc99 100644 --- a/math/adept/Makefile +++ b/math/adept/Makefile @@ -20,6 +20,7 @@ OPTIONS_DEFINE= PDFTEXDOCS OPTIONS_SUB= yes PDFTEXDOCS_DESC= Build and install PDF documentation from LaTeX sources +PDFTEXDOCS_USES= tex PDFTEXDOCS_USE= TEX=pdftex:build,dvipsk:build post-build-PDFTEXDOCS-on: diff --git a/math/asymptote/Makefile b/math/asymptote/Makefile index f8e5ac1f491e..5ab3abfd08b7 100644 --- a/math/asymptote/Makefile +++ b/math/asymptote/Makefile @@ -25,7 +25,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cson>=0.8:devel/py-cson@${PY_FLAVOR} \ ${PY_PILLOW} USES= compiler:c++14-lang gettext-runtime ghostscript gl gmake gnome ncurses perl5 python:3.6+ \ - pyqt:5 shebangfix tar:tgz + pyqt:5 shebangfix tar:tgz tex SHEBANG_FILES= GUI/*.py USE_GL= gl glu glut USE_GNOME= librsvg2:run diff --git a/math/cadabra2/Makefile b/math/cadabra2/Makefile index ecdedc01c3d2..eb842f4ab1e6 100644 --- a/math/cadabra2/Makefile +++ b/math/cadabra2/Makefile @@ -20,7 +20,7 @@ LIB_DEPENDS= ${PY_BOOST} \ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/sympy/__init__.py:math/py-sympy@${PY_FLAVOR} \ ${PYTHON_SITELIBDIR}/matplotlib/__init__.py:math/py-matplotlib@${PY_FLAVOR} -USES= compiler:c++14-lang cmake:noninja dos2unix gettext-runtime gnome localbase:ldflags pkgconfig python:3.7+ sqlite # USES=python picks random python versions +USES= compiler:c++14-lang cmake:noninja dos2unix gettext-runtime gnome localbase:ldflags pkgconfig python:3.7+ sqlite tex # USES=python picks random python versions USE_GITHUB= yes GH_ACCOUNT= kpeeters DOS2UNIX_FILES= cmake/version.cmake diff --git a/math/coq/Makefile b/math/coq/Makefile index eafe58e358bb..b1c97cd9fa45 100644 --- a/math/coq/Makefile +++ b/math/coq/Makefile @@ -47,6 +47,7 @@ IDE_DESC= Include desktop environment (coqide) IDE_BUILD_DEPENDS= lablgtk2:x11-toolkits/ocaml-lablgtk2 IDE_RUN_DEPENDS= lablgtk2:x11-toolkits/ocaml-lablgtk2 IDE_CONFIGURE_OFF= -coqide no +DOCS_USES= tex DOCS_USE= TEX=latex:build,dvipsk:build,texmf:build DOCS_BUILD_DEPENDS= hevea:textproc/hevea DOCS_CONFIGURE_OFF= -with-doc no diff --git a/math/eukleides/Makefile b/math/eukleides/Makefile index ca322d1377e9..436c7a9ddcae 100644 --- a/math/eukleides/Makefile +++ b/math/eukleides/Makefile @@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= pstoedit:graphics/pstoedit \ getopt>=0:misc/getopt -USES= bison gettext iconv gmake readline tar:bzip2 +USES= bison gettext iconv gmake readline tar:bzip2 tex USE_TEX= latex INSTALL_TARGET= install PREFIX=${STAGEDIR}${PREFIX} diff --git a/math/giacxcas/Makefile b/math/giacxcas/Makefile index 5fabd7622c34..add892ead9d4 100644 --- a/math/giacxcas/Makefile +++ b/math/giacxcas/Makefile @@ -41,7 +41,7 @@ RUN_DEPENDS= xdg-open:devel/xdg-utils USES= blaslapack compiler:c++14-lang desktop-file-utils fortran \ gettext gl gmake gnome jpeg libtool localbase ncurses perl5 \ - python readline shebangfix xorg + python readline shebangfix tex xorg GNU_CONFIGURE= yes USE_GL= gl USE_XORG= x11 xcursor xext xft xi xinerama diff --git a/math/gnuplot-tex-extras/Makefile b/math/gnuplot-tex-extras/Makefile index b221e553bdf8..75221d69d81b 100644 --- a/math/gnuplot-tex-extras/Makefile +++ b/math/gnuplot-tex-extras/Makefile @@ -10,7 +10,7 @@ WWW= http://www.gnuplot.info/ RUN_DEPENDS= gnuplot:math/gnuplot -USES= cpe +USES= cpe tex USE_TEX= texmf NO_BUILD= yes PLIST_FILES= ${TEX_FILES:S,^,${TEX_DIR}/,} diff --git a/math/gnuplot/Makefile b/math/gnuplot/Makefile index a035787eebd9..b2f891a26300 100644 --- a/math/gnuplot/Makefile +++ b/math/gnuplot/Makefile @@ -43,7 +43,7 @@ CONFIGURE_ARGS+=--disable-x11-mbfonts \ --without-kpsexpand PLIST_SUB+= X11="@comment " .else -USES+= gnome jpeg lua:53 ncurses xorg +USES+= gnome jpeg lua:53 ncurses tex xorg USE_TEX= kpathsea USE_GNOME+= atk cairo gtk30 gdkpixbuf2 USE_WX= 3.0+ diff --git a/math/gretl/Makefile b/math/gretl/Makefile index da57208c3464..83b21010d7ec 100644 --- a/math/gretl/Makefile +++ b/math/gretl/Makefile @@ -36,7 +36,8 @@ OPTIONS_SUB= yes ADDONS_DESC= Build gretl addons ADDONS_CONFIGURE_ENABLE= build-addons -ADDONS_VARS= USE_TEX="formats dvipsk:build" +ADDONS_USES= tex +ADDONS_USE= TEX=formats,dvipsk:build ATLAS_DESC= Use ATLAS for BLAS and LAPACK ATLAS_LIB_DEPENDS= libatlas.so:math/atlas diff --git a/math/gri/Makefile b/math/gri/Makefile index c64642d026f8..fb237127cf8f 100644 --- a/math/gri/Makefile +++ b/math/gri/Makefile @@ -12,7 +12,7 @@ WWW= http://gri.sourceforge.net/ LIB_DEPENDS= libnetcdf.so:science/netcdf -USES= cpe gmake readline shebangfix makeinfo +USES= cpe gmake readline shebangfix makeinfo tex SHEBANG_FILES= doc/examples/FEM.pl src/gri_merge src/gri_unpage GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-FreeBSD diff --git a/math/octave/Makefile b/math/octave/Makefile index bad1d23b6d77..7b5ea199e7fa 100644 --- a/math/octave/Makefile +++ b/math/octave/Makefile @@ -105,6 +105,7 @@ QT5_CONFIGURE_WITH= qt=5 qscintilla QT5_LIB_DEPENDS= libqscintilla2_qt5.so:devel/qscintilla2-qt5 +DOCS_USES= tex DOCS_USE= TEX=dvipsk:build,formats:build JAVA_USE= JAVA=yes JAVA_CFLAGS= -I${JAVA_HOME}/include/${OPSYS:tl} diff --git a/math/py-plastex/Makefile b/math/py-plastex/Makefile index 148c6bc6804c..86bb20db5cf4 100644 --- a/math/py-plastex/Makefile +++ b/math/py-plastex/Makefile @@ -13,7 +13,7 @@ LICENSE= MIT RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} -USES= python:3.5+ +USES= python:3.5+ tex USE_PYTHON= autoplist concurrent distutils USE_TEX= base:run diff --git a/math/sage/Makefile b/math/sage/Makefile index 8629b9e8ff76..36e806de3dd8 100644 --- a/math/sage/Makefile +++ b/math/sage/Makefile @@ -340,7 +340,7 @@ RUN_DEPENDS= bash:shells/bash \ USES= autoreconf blaslapack:openblas compiler:c++11-lib fortran \ gettext gmake gnome iconv jpeg libtool localbase magick:6,build \ ncurses ninja:build perl5 pkgconfig python:3.7+ readline shebangfix \ - sqlite tk xorg + sqlite tex tk xorg USE_TEX= latex:build pdftex:build tex:build USE_XORG= x11 xext xscrnsaver USE_GNOME= cairo glib20 pango diff --git a/misc/latex-mk/Makefile b/misc/latex-mk/Makefile index 007347864268..de2995b27fe1 100644 --- a/misc/latex-mk/Makefile +++ b/misc/latex-mk/Makefile @@ -13,8 +13,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= texi2dvi:print/texinfo +USES= gmake tex USE_TEX= latex -USES= gmake GNU_CONFIGURE= yes INFO= latex-mk diff --git a/net-im/pidgin-latex/Makefile b/net-im/pidgin-latex/Makefile index b96fe890f1f2..0da24d7c9205 100644 --- a/net-im/pidgin-latex/Makefile +++ b/net-im/pidgin-latex/Makefile @@ -15,7 +15,7 @@ RUN_DEPENDS= pidgin:net-im/pidgin WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME} -USES= gmake gnome magick:6,run pkgconfig tar:bzip2 +USES= gmake gnome magick:6,run pkgconfig tar:bzip2 tex USE_TEX= latex USE_GNOME= gtk20 MAKE_ARGS= CC="${CC}" diff --git a/net-mgmt/netmagis-www/Makefile b/net-mgmt/netmagis-www/Makefile index 6606bc6bc6a7..c1e5966d3d83 100644 --- a/net-mgmt/netmagis-www/Makefile +++ b/net-mgmt/netmagis-www/Makefile @@ -17,6 +17,7 @@ RUN_DEPENDS= netmagis-config:net-mgmt/netmagis-common \ ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss NO_ARCH= # no +USES= tex USE_TEX= full MASTERDIR= ${.CURDIR}/../netmagis-common diff --git a/print/auctex/Makefile b/print/auctex/Makefile index 34ecdc6b763e..5b77190816c7 100644 --- a/print/auctex/Makefile +++ b/print/auctex/Makefile @@ -15,7 +15,7 @@ LICENSE= GPLv3 BROKEN= tex.el:0:0: error: wrong-type-argument: (stringp nil) .endif -USES= emacs ghostscript gmake +USES= emacs ghostscript gmake tex USE_TEX= latex texhash TEXHASHDIRS= ${TEXMFDIR} @@ -25,7 +25,6 @@ CONFIGURE_ARGS= --with-lispdir=${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} \ --with-texmf-dir=${PREFIX}/${TEXMFDIR} PORTDOCS= tex-ref.pdf INFO= auctex preview-latex -PLIST_SUB= TEXMFDIR=${TEXMFDIR} SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS diff --git a/print/catdvi/Makefile b/print/catdvi/Makefile index f2a367b53c01..82cfa1ab8097 100644 --- a/print/catdvi/Makefile +++ b/print/catdvi/Makefile @@ -10,8 +10,8 @@ WWW= http://catdvi.sourceforge.net/ LICENSE= GPLv2 +USES= gmake tex USE_TEX= latex -USES= gmake GNU_CONFIGURE= yes MAKEFILE= GNUmakefile ALL_TARGET= # empty diff --git a/print/dot2tex/Makefile b/print/dot2tex/Makefile index 9a7be57d6075..f2840890e156 100644 --- a/print/dot2tex/Makefile +++ b/print/dot2tex/Makefile @@ -14,13 +14,11 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyparsing>=1.4.8:devel/py-pyparsing@${PY_FLA dot:graphics/graphviz TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} -USES= python:3.6+ +USES= python:3.6+ tex USE_GITHUB= yes USE_PYTHON= distutils autoplist concurrent -# Enable this before running test target -# bsd.tex.mk doesnt support :test (only) depends -#USE_TEX= latex +USE_TEX= latex:test GH_ACCOUNT= kjellmf diff --git a/print/dvisvg/Makefile b/print/dvisvg/Makefile index 77f03811325e..9b68ad1b5de0 100644 --- a/print/dvisvg/Makefile +++ b/print/dvisvg/Makefile @@ -11,7 +11,7 @@ WWW= http://dvisvg.sourceforge.net/ LICENSE= GPLv2 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R} -USES= ghostscript:run +USES= ghostscript:run tex USE_TEX= base texmf texhash ALL_TARGET= # empty # workaround for svgfonts.c not including kpathsea/c-auto.h diff --git a/print/hyperlatex/Makefile b/print/hyperlatex/Makefile index 58c16c8465e8..bbbafc976b01 100644 --- a/print/hyperlatex/Makefile +++ b/print/hyperlatex/Makefile @@ -11,7 +11,7 @@ WWW= http://hyperlatex.sourceforge.net/ RUN_DEPENDS= ppmtogif:graphics/netpbm -USES= emacs +USES= emacs tex USE_TEX= latex CONFLICTS_INSTALL= Hyperlatex Hyperlatex-emacs_* diff --git a/print/latex-beamer/Makefile b/print/latex-beamer/Makefile index 30136319c8ad..474ae44168de 100644 --- a/print/latex-beamer/Makefile +++ b/print/latex-beamer/Makefile @@ -10,6 +10,7 @@ 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 diff --git a/print/latex-biber/Makefile b/print/latex-biber/Makefile index 1a35491301a8..3d270361a7f3 100644 --- a/print/latex-biber/Makefile +++ b/print/latex-biber/Makefile @@ -52,7 +52,7 @@ __DEPENDS= ja-p5-Encode-EUCJPASCII>0:japanese/p5-Encode-EUCJPASCII \ BUILD_DEPENDS= ${__DEPENDS} RUN_DEPENDS= ${__DEPENDS} -USES= perl5 +USES= perl5 tex USE_GITHUB= yes GH_ACCOUNT= plk USE_PERL5= modbuild diff --git a/print/latex-ltablex/Makefile b/print/latex-ltablex/Makefile index 8a0ac9c35e7d..c7fcb370b703 100644 --- a/print/latex-ltablex/Makefile +++ b/print/latex-ltablex/Makefile @@ -13,14 +13,13 @@ MAINTAINER= rakuco@FreeBSD.org COMMENT= Combines the features of both the tabularx and longtable packages WWW= https://ctan.org/tex-archive/macros/latex/contrib/ltablex/ -USES= zip +USES= tex zip USE_TEX= latex texhash NO_BUILD= yes PLIST_SUB= CLASSDIR=${CLASSDIR} OPTIONS_DEFINE= DOCS -TEXMFDIR= share/texmf CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME} CLASS_FILES= ltablex.sty PORTDOCS= ltablex.pdf ltablex.tex diff --git a/print/latex-resume/Makefile b/print/latex-resume/Makefile index 3ebc38607a2f..84e29bc867ab 100644 --- a/print/latex-resume/Makefile +++ b/print/latex-resume/Makefile @@ -11,6 +11,7 @@ DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Resume class for LaTeX +USES= tex USE_TEX= latex NO_BUILD= yes NO_WRKSUBDIR= yes @@ -18,7 +19,6 @@ EXTRACT_CMD= ${CP} EXTRACT_BEFORE_ARGS= # empty EXTRACT_AFTER_ARGS= . -TEXMFDIR= share/texmf MKTEXLSR= ${LOCALBASE}/bin/mktexlsr CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME} CLASS_FILES= ${DISTFILES} diff --git a/print/latex2rtf/Makefile b/print/latex2rtf/Makefile index 44d173cbaeb4..1917d8aee076 100644 --- a/print/latex2rtf/Makefile +++ b/print/latex2rtf/Makefile @@ -17,7 +17,7 @@ OPTIONS_DEFINE= LATEX2PNG LATEX2PNG_DESC= Install latex2png utility OPTIONS_SUB= yes -LATEX2PNG_USES= magick:6,run +LATEX2PNG_USES= magick:6,run tex LATEX2PNG_USE= TEX=dvipsk,latex,xetex MAKE_ARGS+= MANDIR=${PREFIX}/man/man1 CFGDIR=${DATADIR}/cfg \ diff --git a/print/lilypond/Makefile b/print/lilypond/Makefile index 3a78c1078592..3a89d76d7a02 100644 --- a/print/lilypond/Makefile +++ b/print/lilypond/Makefile @@ -29,7 +29,7 @@ RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans-Bold.ttf:x11-fonts/dejav mftrace:print/mftrace USES= bison:build compiler:c++11-lib cpe ghostscript gmake gnome \ - magick:7,build perl5 pkgconfig python:3.5+ + magick:7,build perl5 pkgconfig python:3.5+ tex USE_CXXSTD= c++11 USE_GNOME= pango USE_PERL5= build diff --git a/print/mftrace/Makefile b/print/mftrace/Makefile index 0ae813457223..a5ade679df62 100644 --- a/print/mftrace/Makefile +++ b/print/mftrace/Makefile @@ -21,9 +21,9 @@ RUN_DEPENDS+= potrace:graphics/potrace .endif # Python3 ready +USES= gmake python tex USE_TEX= base texmf GNU_CONFIGURE= yes -USES= gmake python MAKEFILE= GNUmakefile PLIST_FILES= \ diff --git a/print/muttprint/Makefile b/print/muttprint/Makefile index 4ccee9e8ea05..6620a42365a0 100644 --- a/print/muttprint/Makefile +++ b/print/muttprint/Makefile @@ -17,7 +17,7 @@ RUN_DEPENDS= psnup:print/psutils \ p5-Text-Iconv>=0:converters/p5-Text-Iconv GNU_CONFIGURE= yes -USES= autoreconf gmake perl5 +USES= autoreconf gmake perl5 tex USE_TEX= latex dvipsk NO_BUILD= yes diff --git a/print/sgf2tex/Makefile b/print/sgf2tex/Makefile index 2eafe2315124..78f293fc2ab2 100644 --- a/print/sgf2tex/Makefile +++ b/print/sgf2tex/Makefile @@ -8,7 +8,7 @@ MAINTAINER= spcoltri@omcl.org COMMENT= Convert a Go game record in SGF format into TeX and provide fonts to make a dvi WWW= http://match.stanford.edu/~bump/sgf2tex.html -USES= shebangfix +USES= shebangfix tex SHEBANG_FILES= sgf2tex USE_TEX= tex PLIST_SUB= MKTEXLSR=${MKTEXLSR} diff --git a/print/tex-basic-engines/Makefile b/print/tex-basic-engines/Makefile index 4f9669774855..ef57e961bceb 100644 --- a/print/tex-basic-engines/Makefile +++ b/print/tex-basic-engines/Makefile @@ -12,7 +12,7 @@ WWW= https://tug.org/texlive/ LIB_DEPENDS= libpng.so:graphics/png -USES= libtool localbase pkgconfig tar:xz +USES= libtool localbase pkgconfig tar:xz tex USE_TEX= kpathsea web2c GNU_CONFIGURE= yes diff --git a/print/tex-dvipdfmx/Makefile b/print/tex-dvipdfmx/Makefile index c1e4608535a1..28e62b1be43f 100644 --- a/print/tex-dvipdfmx/Makefile +++ b/print/tex-dvipdfmx/Makefile @@ -19,7 +19,7 @@ LIB_DEPENDS= libpng.so:graphics/png \ libpaper.so:print/libpaper RUN_DEPENDS= ${LOCALBASE}/share/fonts/adobe-cmaps/ai0/CMap/Identity-H:print/adobe-cmaps -USES= localbase:ldflags pkgconfig tar:xz +USES= localbase:ldflags pkgconfig tar:xz tex USE_TEX= kpathsea web2c texmf dvipsk luatex texhash TEXHASHDIRS= ${TEXMFDISTDIR} ${TEXMFDIR} EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${DISTNAME}/,} diff --git a/print/tex-dvipsk/Makefile b/print/tex-dvipsk/Makefile index d822c440205d..87fb526889fc 100644 --- a/print/tex-dvipsk/Makefile +++ b/print/tex-dvipsk/Makefile @@ -16,7 +16,7 @@ LICENSE= GPLv2 LIB_DEPENDS= libpaper.so:print/libpaper -USES= gmake localbase:ldflags pkgconfig tar:xz +USES= gmake localbase:ldflags pkgconfig tar:xz tex USE_TEX= kpathsea texhash texmf web2c GNU_CONFIGURE= yes diff --git a/print/tex-formats/Makefile b/print/tex-formats/Makefile index 86f962578189..3cca71cec4d9 100644 --- a/print/tex-formats/Makefile +++ b/print/tex-formats/Makefile @@ -11,6 +11,7 @@ MAINTAINER= tex@FreeBSD.org COMMENT= Formats for basic TeX engines and the 'latex' command WWW= https://tug.org/texlive/ +USES= tex USE_TEX= basic fmtutil texhash texmf web2c NO_ARCH= yes diff --git a/print/tex-jadetex/Makefile b/print/tex-jadetex/Makefile index 2b91b1121888..fd92fa5ec159 100644 --- a/print/tex-jadetex/Makefile +++ b/print/tex-jadetex/Makefile @@ -12,7 +12,7 @@ MAINTAINER= tex@FreeBSD.org COMMENT= TeX backend for Jade, DSSSL processor for SGML/XML documents WWW= http://jadetex.sourceforge.net/ -USES= tar:xz +USES= tar:xz tex USE_TEX= texmf pdftex xmltex fmtutil TEXHASHDIRS= ${TEXMFDISTDIR} ${TEXMFVARDIR} EXTRACT_AFTER_ARGS=| ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/share \ diff --git a/print/tex-luatex/Makefile b/print/tex-luatex/Makefile index 13973fc159bd..e072e78b3e7d 100644 --- a/print/tex-luatex/Makefile +++ b/print/tex-luatex/Makefile @@ -16,7 +16,7 @@ LIB_DEPENDS= libpng.so:graphics/png \ libmpfr.so:math/mpfr \ libzzip.so:devel/zziplib -USES= gnome libtool pkgconfig shebangfix tar:xz xorg +USES= gnome libtool pkgconfig shebangfix tar:xz tex xorg USE_TEX= kpathsea web2c texmf formats texlua texluajit fmtutil USE_XORG= pixman USE_GNOME= cairo diff --git a/print/tex-ptexenc/Makefile b/print/tex-ptexenc/Makefile index 17a1c1cf8c13..17dbb100e72f 100644 --- a/print/tex-ptexenc/Makefile +++ b/print/tex-ptexenc/Makefile @@ -12,9 +12,10 @@ COMMENT= Library for Japanese pTeX and its tools LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYRIGHT -USES= iconv libtool pathfix pkgconfig tar:xz +USES= iconv libtool pathfix pkgconfig tar:xz tex USE_TEX= kpathsea USE_LDCONFIG= yes + WRKSRC= ${WRKDIR}/${DISTNAME}/texk/ptexenc EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S/^/${DISTNAME}\//} EXTRACT_FILES= build-aux texk/ptexenc diff --git a/print/tex-xdvik/Makefile b/print/tex-xdvik/Makefile index 3f0434c4f513..25530754c828 100644 --- a/print/tex-xdvik/Makefile +++ b/print/tex-xdvik/Makefile @@ -14,7 +14,7 @@ LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libpaper.so:print/libpaper RUN_DEPENDS= tex-dvipsk>=5.995:print/tex-dvipsk -USES= iconv motif pkgconfig xorg +USES= iconv motif pkgconfig tex xorg USE_TEX= kpathsea texhash texmf web2c USE_XORG= ice sm x11 xext xi xmu xpm xt diff --git a/print/tex-xetex/Makefile b/print/tex-xetex/Makefile index 121e10ae05b0..65125e6ff5e3 100644 --- a/print/tex-xetex/Makefile +++ b/print/tex-xetex/Makefile @@ -22,7 +22,7 @@ LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libpng.so:graphics/png \ libTECkit.so:textproc/teckit -USES= compiler:c++11-lib gnome perl5 pkgconfig python:build tar:xz xorg +USES= compiler:c++11-lib gnome perl5 pkgconfig python:build tar:xz tex xorg USE_CXXSTD= gnu++11 USE_GNOME= cairo USE_PERL5= build diff --git a/print/tex-xmltex/Makefile b/print/tex-xmltex/Makefile index 284e31ae6a71..a3f9d881e701 100644 --- a/print/tex-xmltex/Makefile +++ b/print/tex-xmltex/Makefile @@ -11,7 +11,7 @@ EXTRACT_ONLY= MAINTAINER= tex@FreeBSD.org COMMENT= Non-validating XML parser, written in TeX -USES= tar:xz +USES= tar:xz tex USE_TEX= texmf pdftex fmtutil TEXHASHDIRS= ${TEXMFDISTDIR} EXTRACT_AFTER_ARGS=| ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/share \ diff --git a/print/texinfo/Makefile b/print/texinfo/Makefile index 4477799a6470..01cb7f28a985 100644 --- a/print/texinfo/Makefile +++ b/print/texinfo/Makefile @@ -28,7 +28,7 @@ RUN_DEPENDS= p5-Locale-libintl>=0:devel/p5-Locale-libintl \ OPTIONS_DEFINE= NLS OPTIONS_SUB= yes -USES= charsetfix cpe gmake iconv:wchar_t libtool ncurses perl5 tar:xz +USES= charsetfix cpe gmake iconv:wchar_t libtool ncurses perl5 tar:xz tex CONFIGURE_ARGS= --with-external-libintl-perl \ --with-external-Text-Unidecode \ @@ -38,7 +38,6 @@ GNU_CONFIGURE= yes INSTALL_TARGET= install-strip install-tex MAKE_ARGS= PERL=${PERL} TEXMF=${LOCALBASE}/${TEXMFDIR} PKGDEINSTALL= ${PKGINSTALL} -USE_TEX= yes INFO= info-stnd texinfo diff --git a/print/texlive-base/Makefile b/print/texlive-base/Makefile index 8678a0f793c0..b0d5988525ec 100644 --- a/print/texlive-base/Makefile +++ b/print/texlive-base/Makefile @@ -28,7 +28,7 @@ RUN_DEPENDS= p5-File-HomeDir>=0:devel/p5-File-HomeDir \ psbook:print/psutils USES= compiler:c++11-lib cpe ghostscript gnome localbase pkgconfig perl5 \ - python:run shebangfix tar:xz xorg + python:run shebangfix tar:xz tex xorg CPE_VENDOR= tug USE_CXXSTD= gnu++11 USE_GNOME= cairo diff --git a/print/texlive-docs/Makefile b/print/texlive-docs/Makefile index ea7016aa5778..80dfc4d40ec8 100644 --- a/print/texlive-docs/Makefile +++ b/print/texlive-docs/Makefile @@ -10,7 +10,7 @@ MAINTAINER= tex@FreeBSD.org COMMENT= TeX Live Typesetting System, documentation WWW= https://tug.org/texlive/ -USES= perl5 tar:xz +USES= perl5 tar:xz tex USE_TEX= texmf EXTRACT_AFTER_ARGS= | ${TAR} xf - \ diff --git a/print/texlive-full/Makefile b/print/texlive-full/Makefile index 1f396983dcdf..42ea07565b9b 100644 --- a/print/texlive-full/Makefile +++ b/print/texlive-full/Makefile @@ -7,8 +7,8 @@ MAINTAINER= tex@FreeBSD.org COMMENT= TeX Live, Full Version WWW= https://tug.org/texlive/ +USES= metaport tex USE_TEX= full texhash -USES= metaport OPTIONS_DEFINE= DOCS SOURCE diff --git a/print/texlive-texmf-source/Makefile b/print/texlive-texmf-source/Makefile index 1cdc80a9c7be..23966d841ca5 100644 --- a/print/texlive-texmf-source/Makefile +++ b/print/texlive-texmf-source/Makefile @@ -10,10 +10,10 @@ MAINTAINER= tex@FreeBSD.org COMMENT= TeX Live Typesetting System, texmf Tree (source) WWW= https://tug.org/texlive/ -USES= cpe perl5 python:build tar:xz +USES= cpe perl5 python:build tar:xz tex CPE_VENDOR= tug USE_PERL5= build -USE_TEX= texmf>=${PORTVERSION} +USE_TEX= texmf CONFLICTS_INSTALL= texlive-base-202[0-9]* diff --git a/print/texlive-texmf/Makefile b/print/texlive-texmf/Makefile index c934a36d7898..effaebcb9425 100644 --- a/print/texlive-texmf/Makefile +++ b/print/texlive-texmf/Makefile @@ -11,7 +11,7 @@ MAINTAINER= tex@FreeBSD.org COMMENT= TeX Live Typesetting System, texmf Tree WWW= https://tug.org/texlive/ -USES= cpe python:run shebangfix tar:xz +USES= cpe python:run shebangfix tar:xz tex CPE_VENDOR= tug USE_TEX= base basic:extract texhash tlmgr:run diff --git a/print/texlive-tlmgr/Makefile b/print/texlive-tlmgr/Makefile index aec9c80a26fa..e313be560d5c 100644 --- a/print/texlive-tlmgr/Makefile +++ b/print/texlive-tlmgr/Makefile @@ -13,9 +13,7 @@ EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-extra${EXTRACT_SUFX} MAINTAINER= tex@FreeBSD.org COMMENT= TeXLive manager modules -RUN_DEPENDS= tex-kpathsea>=6.3.3:devel/tex-kpathsea - -USES= cpe perl5 tar:xz +USES= cpe perl5 tar:xz tex CPE_VENDOR= tug USE_PERL5= run USE_TEX= kpathsea diff --git a/print/texvc/Makefile b/print/texvc/Makefile index 648648fdac93..7bbd7d208840 100644 --- a/print/texvc/Makefile +++ b/print/texvc/Makefile @@ -20,7 +20,7 @@ OPTIONS_DEFINE= RASTER OPTIONS_DEFAULT:= ${OPTIONS_DEFINE} RASTER_DESC= rasterization support -RASTER_USES= ghostscript:run magick:6,run +RASTER_USES= ghostscript:run magick:6,run tex RASTER_USE= TEX=latex,dvipsk MAKE_JOBS_UNSAFE= yes diff --git a/print/typetools/Makefile b/print/typetools/Makefile index 4e15b4b9a99d..eb0b432b893a 100644 --- a/print/typetools/Makefile +++ b/print/typetools/Makefile @@ -10,6 +10,7 @@ WWW= https://www.lcdf.org/type/ #typetools LICENSE= GPLv2 +USES= tex USE_TEX= kpathsea GNU_CONFIGURE= yes diff --git a/print/xpdfopen/Makefile b/print/xpdfopen/Makefile index 78e65f2e998c..90d40890f04e 100644 --- a/print/xpdfopen/Makefile +++ b/print/xpdfopen/Makefile @@ -9,8 +9,7 @@ DIST_SUBDIR= TeX MAINTAINER= tex@FreeBSD.org COMMENT= Command line utility for PDF viewers -USES= localbase:ldflags tar:xz xorg -USE_TEX= yes +USES= localbase:ldflags tar:xz tex xorg USE_XORG= x11 xmu EXTRACT_FILES= build-aux utils/xpdfopen diff --git a/print/xtexsh/Makefile b/print/xtexsh/Makefile index f4374b2658a1..dab3dc0d2250 100644 --- a/print/xtexsh/Makefile +++ b/print/xtexsh/Makefile @@ -11,7 +11,7 @@ WWW= https://www.mat.univie.ac.at/~gerald/ftp/xtexsh/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE -USES= desktop-file-utils gnome shebangfix tk +USES= desktop-file-utils gnome shebangfix tex tk USE_TEX= latex SHEBANG_FILES= xtexsh diff --git a/science/code_saturne/Makefile b/science/code_saturne/Makefile index f26fe6722f13..f4c0d88a3ffc 100644 --- a/science/code_saturne/Makefile +++ b/science/code_saturne/Makefile @@ -100,6 +100,7 @@ CONFIGURE_ARGS+= --disable-openmp .endif .if ${PORT_OPTIONS:MDOCS} +USES+= tex USE_TEX= tex:build BUILD_DEPENDS+= fig2dev:print/fig2dev \ doxygen:devel/doxygen \ diff --git a/science/dynare/Makefile b/science/dynare/Makefile index aeed27100f1e..03965b522b4e 100644 --- a/science/dynare/Makefile +++ b/science/dynare/Makefile @@ -23,7 +23,7 @@ RUN_DEPENDS= epstool:graphics/epstool \ pstoedit:graphics/pstoedit \ xfig:graphics/xfig # README says that these executables are required for the test suite -USES= bison compiler:c++17-lang fortran gmake localbase tar:xz +USES= bison compiler:c++17-lang fortran gmake localbase tar:xz tex USE_TEX= pdftex GNU_CONFIGURE= yes diff --git a/science/mpqc/Makefile b/science/mpqc/Makefile index 01343110d953..7373b6b3dc81 100644 --- a/science/mpqc/Makefile +++ b/science/mpqc/Makefile @@ -47,6 +47,7 @@ ATLAS_USES_OFF= blaslapack:netlib DOXYGEN_CONFIGURE_ENABLE= doxygen-man DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ dot:graphics/graphviz +DOXYGEN_USES= tex DOXYGEN_USE= TEX=base,dvipsk,pdftex ICC_BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:lang/icc diff --git a/textproc/bibtex2html/Makefile b/textproc/bibtex2html/Makefile index 55e341b73fb5..0dd8cd983514 100644 --- a/textproc/bibtex2html/Makefile +++ b/textproc/bibtex2html/Makefile @@ -18,6 +18,7 @@ OPTIONS_DEFINE= PDFDOCS PDFDOCS_DESC= ${DOCS_DESC} PDFDOCS_CONFIGURE_ENABLE= doc +PDFDOCS_USES= tex PDFDOCS_USE= TEX=latex:build PDFDOCS_BUILD_DEPENDS= hevea:textproc/hevea PDFDOCS_INSTALL_TARGET= install install-doc diff --git a/textproc/bibtool/Makefile b/textproc/bibtool/Makefile index 5dbaddb95f82..2f69d90c8055 100644 --- a/textproc/bibtool/Makefile +++ b/textproc/bibtool/Makefile @@ -12,6 +12,7 @@ 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 diff --git a/textproc/dblatex/Makefile b/textproc/dblatex/Makefile index d6b42199b50b..86e8f409c66f 100644 --- a/textproc/dblatex/Makefile +++ b/textproc/dblatex/Makefile @@ -15,7 +15,7 @@ BUILD_DEPENDS= ${LOCALBASE}/share/texmf-dist/tex/generic/iftex/ifxetex.sty:print RUN_DEPENDS= docbook-xml>0:textproc/docbook-xml \ xsltproc:textproc/libxslt -USES= python:3.5+ tar:bzip2 +USES= python:3.5+ tar:bzip2 tex USE_PYTHON= autoplist distutils noflavors PYDISTUTILS_INSTALLARGS+= --catalogs=${LOCALBASE}/share/xml/catalog.ports \ --prefix=${PREFIX} diff --git a/textproc/docbook-utils/Makefile b/textproc/docbook-utils/Makefile index 26bbe2782bb0..bcf5cd0a94ef 100644 --- a/textproc/docbook-utils/Makefile +++ b/textproc/docbook-utils/Makefile @@ -18,9 +18,10 @@ RUN_DEPENDS+= dsssl-docbook-modular>0:textproc/dsssl-docbook-modular \ CONFLICTS= docbook2X linux-j # bin/docbook2man bin/docbook2texi bin/jw -USES= perl5 gmake shebangfix +USES= perl5 gmake shebangfix tex USE_PERL5= run USE_TEX= jadetex + GNU_CONFIGURE= yes MAKE_ARGS+= docdir="${DOCSDIR}" htmldir="${DOCSDIR}/html" NO_ARCH= yes diff --git a/textproc/docproj-legacy/Makefile b/textproc/docproj-legacy/Makefile index d52cf626b1a7..fcd8f3db6783 100644 --- a/textproc/docproj-legacy/Makefile +++ b/textproc/docproj-legacy/Makefile @@ -38,6 +38,7 @@ TRANSLATOR_DESC= Tools for translators CJK_RUN_DEPENDS= html2text:textproc/html2text DBLATEX_RUN_DEPENDS= dblatex:textproc/dblatex +DBLATEX_USES= tex DBLATEX_USE= TEX=xetex FOP_RUN_DEPENDS= ${_FONTS} \ fop:textproc/fop diff --git a/textproc/eqe/Makefile b/textproc/eqe/Makefile index 2e0b47cb1e30..42dd523fdfe9 100644 --- a/textproc/eqe/Makefile +++ b/textproc/eqe/Makefile @@ -15,11 +15,13 @@ BUILD_DEPENDS= p5-Gtk2>=0:x11-toolkits/p5-Gtk2 \ p5-File-Slurp>=0:devel/p5-File-Slurp \ p5-Template-Toolkit>=0:www/p5-Template-Toolkit -USES= magick:6,build perl5 shebangfix tar:bzip2 -SHEBANG_FILES= src/eqe src/eqedit +USES= magick:6,build perl5 shebangfix tar:bzip2 tex USE_TEX= tex + NO_ARCH= yes +SHEBANG_FILES= src/eqe src/eqedit + OPTIONS_DEFINE= DOCS MAKE_ARGS= PREFIX=${PREFIX} diff --git a/textproc/foiltex/Makefile b/textproc/foiltex/Makefile index a2b39e4a7cc9..550c72f71942 100644 --- a/textproc/foiltex/Makefile +++ b/textproc/foiltex/Makefile @@ -15,6 +15,7 @@ LICENSE_NAME= foiltex LICENSE_TEXT= Redistribution on a not-for-profit basis only LICENSE_PERMS= dist-mirror pkg-mirror auto-accept +USES= tex USE_TEX= latex NO_WRKSUBDIR= yes NO_ARCH= yes diff --git a/textproc/gastex/Makefile b/textproc/gastex/Makefile index bb382a23ed85..1c9cd96850f8 100644 --- a/textproc/gastex/Makefile +++ b/textproc/gastex/Makefile @@ -10,13 +10,14 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Graphs and Automata Simplified in TeX WWW= https://www.lsv.ens-cachan.fr/~gastin/gastex/ -NO_ARCH= yes +USES= tex USE_TEX= latex:run + +NO_ARCH= yes NO_BUILD= yes EXAMPLES_DISTFILES= ex-gastex.tex -TEXMFDIR?= share/texmf GASTEXDIR= ${PREFIX}/${TEXMFDIR}/tex/latex/gastex GASDVIDIR= ${PREFIX}/${TEXMFDIR}/dvips/gastex diff --git a/textproc/gladtex/Makefile b/textproc/gladtex/Makefile index de33ceafdede..5cfa8d76753b 100644 --- a/textproc/gladtex/Makefile +++ b/textproc/gladtex/Makefile @@ -13,15 +13,15 @@ LICENSE= GPLv2 LIB_DEPENDS= libgif.so:graphics/giflib \ libpng.so:graphics/png +USES= perl5 tex USE_TEX= latex dvipsk + BINPATH= ${PREFIX}/bin INCPATH= "-I${LOCALBASE}/include" LIBPATH= "-L${LOCALBASE}/lib" MAKE_ENV+= BINPATH=${BINPATH} INCPATH="${INCPATH}" LIBPATH="${LIBPATH}" -USES= perl5 - do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${BINPATH}; \ ${INSTALL_PROGRAM} ${WRKSRC}/eqn2img ${STAGEDIR}${BINPATH} diff --git a/textproc/hs-lhs2tex/Makefile b/textproc/hs-lhs2tex/Makefile index 170e94e90ddc..2d173a4e6545 100644 --- a/textproc/hs-lhs2tex/Makefile +++ b/textproc/hs-lhs2tex/Makefile @@ -9,13 +9,11 @@ WWW= https://www.andres-loeh.de/lhs2tex/ LICENSE= GPLv2 -USES= cabal - -USE_TEX= latex dvipsk - +USES= cabal tex USE_CABAL= regex-base-0.94.0.2_1 \ regex-compat-0.95.2.1_2 \ regex-posix-0.96.0.1_1 +USE_TEX= latex dvipsk CABAL_EXECUTABLES= lhs2TeX diff --git a/textproc/latex2html/Makefile b/textproc/latex2html/Makefile index 6de790c91fde..08c004aa818e 100644 --- a/textproc/latex2html/Makefile +++ b/textproc/latex2html/Makefile @@ -16,7 +16,7 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} CONFLICTS= ja-latex2html -USES= ghostscript perl5 +USES= ghostscript perl5 tex USE_TEX= latex dvipsk texhash GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-perl=${PERL} \ @@ -25,7 +25,6 @@ CONFIGURE_ARGS= --with-perl=${PERL} \ --with-texpath=${PREFIX}/${TEXMFDIR}/tex/latex/html \ --without-mktexlsr SUB_FILES= pkg-message -PLIST_SUB= TEXMFDIR=${TEXMFDIR} TEXHASHDIRS= ${TEXMFDIR} PORTDOCS= FAQ INSTALL README diff --git a/textproc/metauml/Makefile b/textproc/metauml/Makefile index da2dcecd611a..a06867767ba6 100644 --- a/textproc/metauml/Makefile +++ b/textproc/metauml/Makefile @@ -18,10 +18,11 @@ WWW= http://metauml.sourceforge.net/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/thrunk/License +USES= tex USE_TEX= latex -PLIST_SUB= TEXMFDIR=${TEXMFDIR} MKTEXLSR=${MKTEXLSR} MPDIR=${MPDIR} -TEXMFDIR= share/texmf +PLIST_SUB= MKTEXLSR=${MKTEXLSR} MPDIR=${MPDIR} + MKTEXLSR= ${LOCALBASE}/bin/mktexlsr MPDIR= ${TEXMFDIR}/metapost/${PORTNAME} diff --git a/textproc/p5-LaTeX-Driver/Makefile b/textproc/p5-LaTeX-Driver/Makefile index 3d44ce7586ac..52017c54c91c 100644 --- a/textproc/p5-LaTeX-Driver/Makefile +++ b/textproc/p5-LaTeX-Driver/Makefile @@ -23,7 +23,7 @@ RUN_DEPENDS= p5-Capture-Tiny>=0:devel/p5-Capture-Tiny \ PORTSCOUT= skipv:0.2002 NO_ARCH= yes -USES= perl5 +USES= perl5 tex USE_PERL5= configure USE_TEX= latex diff --git a/textproc/ppower4/Makefile b/textproc/ppower4/Makefile index 3ec5f5fb36f5..c9da90b4af17 100644 --- a/textproc/ppower4/Makefile +++ b/textproc/ppower4/Makefile @@ -13,12 +13,16 @@ WWW= https://ctan.org/tex-archive/support/ppower4/ LICENSE= GPLv2 # version not really specified -USES= zip -USE_TEX= latex +USES= tex zip USE_JAVA= yes +USE_TEX= latex + +NO_ARCH= yes NO_BUILD= yes +SUB_FILES= ppower4.sh +SUB_LIST= JARFILE=${JAR_DIR}/pp4p.jar + NO_WRKSUBDIR= yes -NO_ARCH= yes JAR_DIR= ${JAVASHAREDIR}/${PORTNAME} STY_DIR= ${PREFIX}/share/texmf/tex/latex/${PORTNAME} @@ -31,9 +35,6 @@ EXAMPLE_FILES+= ${WRKSRC}/example.${i} PLIST_SUB= STY_DIR="${STY_DIR:S,^${PREFIX}/,,}" \ JAR_DIR="${JAR_DIR:S,^${PREFIX}/,,}" -SUB_FILES= ppower4.sh -SUB_LIST= JARFILE=${JAR_DIR}/pp4p.jar - OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_SUB= yes diff --git a/textproc/sowing/Makefile b/textproc/sowing/Makefile index 1d0233daff4a..d902f8901730 100644 --- a/textproc/sowing/Makefile +++ b/textproc/sowing/Makefile @@ -11,16 +11,16 @@ WWW= http://web.engr.illinois.edu/~wgropp/projects/software/sowing/ BUILD_DEPENDS= ppmtogif:graphics/netpbm RUN_DEPENDS= ppmtogif:graphics/netpbm -USES= ghostscript gmake perl5 +USES= ghostscript gmake perl5 tex USE_TEX= latex dvipsk + GNU_CONFIGURE= yes CONFIGURE_ARGS= --datadir=${DATADIR} -CONFLICTS_INSTALL= bib2html # bin/bib2html - +MAKE_JOBS_UNSAFE= yes ALL_TARGET= all-redirect -MAKE_JOBS_UNSAFE= yes +CONFLICTS_INSTALL= bib2html # bin/bib2html post-patch: @${REINPLACE_CMD} -e \ diff --git a/textproc/textogif/Makefile b/textproc/textogif/Makefile index 6fc9aa84101c..58a45089f750 100644 --- a/textproc/textogif/Makefile +++ b/textproc/textogif/Makefile @@ -12,14 +12,16 @@ WWW= https://www.fourmilab.ch/webtools/textogif/ RUN_DEPENDS= ppmtogif:graphics/netpbm -NO_BUILD= yes -USE_TEX= latex dvipsk -USES= perl5 shebangfix +USES= perl5 shebangfix tex USE_PERL5= run -NO_WRKSUBDIR= yes +USE_TEX= latex dvipsk SHEBANG_FILES= textogif +NO_BUILD= yes + +NO_WRKSUBDIR= yes + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin diff --git a/textproc/xmlto/Makefile b/textproc/xmlto/Makefile index a3976b083bd0..78dbd29ad44a 100644 --- a/textproc/xmlto/Makefile +++ b/textproc/xmlto/Makefile @@ -54,6 +54,7 @@ PORTDOCS= AUTHORS ChangeLog NEWS THANKS .include <bsd.port.pre.mk> .if ${PORT_OPTIONS:MPASSIVETEX} +USES+= tex USE_TEX+= xmltex .endif diff --git a/textproc/yodl/Makefile b/textproc/yodl/Makefile index 1792876ef943..d4aa70fb224f 100644 --- a/textproc/yodl/Makefile +++ b/textproc/yodl/Makefile @@ -50,6 +50,7 @@ PLIST_SUB+= PORTVERSION="${PORTVERSION}" WRKSRC_SUBDIR= ${PORTNAME} OPTIONS_DEFINE= DOCS +DOCS_USES= tex DOCS_USE= TEX=latex:build,dvipsk:build post-patch: diff --git a/www/twiki-MathModePlugin/Makefile b/www/twiki-MathModePlugin/Makefile index 07ab5d557b92..62b4956707e6 100644 --- a/www/twiki-MathModePlugin/Makefile +++ b/www/twiki-MathModePlugin/Makefile @@ -7,8 +7,7 @@ MASTER_SITES= http://protey.ru/freebsd/distfiles/ \ COMMENT= Include LaTeX formatted math in your TWiki pages WWW= https://twiki.org/cgi-bin/view/Plugins/MathModePlugin -USES= magick:6,run - +USES= magick:6,run tex USE_TEX= base latex post-patch: |