editors/enter-tex: DOCS option, tex-formats, fix URLs

Re-add the print/tex-formats RUN_DEPENDS from before the rename,
as a TeX editor without a distribution is nearly useless.

Upstream URLs were updated but only GL_ACCOUNT was accounted for,
so fix WWW and other places to match. Bump PORTREVISION mostly for
this metadata change.

While here, move the manual build step prior to the main build into
pre-build rather than overriding do-build.
This commit is contained in:
Charlie Li 2025-08-18 12:02:00 -04:00
parent dab754b5cd
commit 1704826f67
No known key found for this signature in database
GPG Key ID: CFFB5727EEC96A04
2 changed files with 60 additions and 14 deletions

View File

@ -1,11 +1,12 @@
PORTNAME= enter-tex
DISTVERSION= 3.48.0
PORTREVISION= 1
CATEGORIES= editors
DIST_SUBDIR= gnome
MAINTAINER= gnome@FreeBSD.org
COMMENT= Integrated TeX/LaTeX editor
WWW= https://gitlab.gnome.org/swilmet/enter-tex
WWW= https://gitlab.gnome.org/World/gedit/enter-tex
LICENSE= GPLv3+
@ -20,19 +21,23 @@ LIB_DEPENDS= libgee-0.8.so:devel/libgee \
USES= compiler:c11 desktop-file-utils gettext gnome meson \
pkgconfig tar:bz2 tex vala:build
USE_GNOME= dconf glib20 gtk30 introspection:build
USE_TEX= base
USE_TEX= formats
USE_GITLAB= yes
GL_SITE= https://gitlab.gnome.org
GL_ACCOUNT= World/gedit
MESON_ARGS= -Dgtk_doc=false \
-Dtests=false
MESON_ARGS= -Dtests=false
GLIB_SCHEMAS= org.gnome.enter_tex.gschema.xml
# https://gitlab.gnome.org/swilmet/enter-tex/-/issues/19
do-build:
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
DOCS_BUILD_DEPENDS= gtkdoc-scan:textproc/gtk-doc
DOCS_MESON_TRUE= gtk_doc
# https://gitlab.gnome.org/World/gedit/enter-tex/-/issues/19
pre-build:
@(cd ${BUILD_WRKSRC}; if ! ${DO_MAKE_BUILD} src/gtex/Gtex-1.gir; then \
if [ -n "${BUILD_FAIL_MESSAGE}" ]; then \
${ECHO_MSG} "===> Compilation failed unexpectedly." ;\
@ -40,11 +45,4 @@ do-build:
fi ;\
fi)
@(cd ${BUILD_WRKSRC}; if ! ${DO_MAKE_BUILD} src/enter-tex; then \
if [ -n "${BUILD_FAIL_MESSAGE}" ]; then \
${ECHO_MSG} "===> Compilation failed unexpectedly." ;\
(${ECHO_CMD} "${BUILD_FAIL_MESSAGE}") ;\
fi ;\
fi)
.include <bsd.port.mk>

View File

@ -10,6 +10,54 @@ share/dbus-1/services/org.gnome.enter_tex.service
%%DATADIR%%/templates/letter.tex
%%DATADIR%%/templates/report.tex
%%DATADIR%%/ui/ui.xml
%%DOCS%%share/gtk-doc/html/enter-tex/GtexApp.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexBuildJob.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexBuildTool.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexBuildTools.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexBuildToolsDefault.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexBuildToolsPersonal.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexBuildView.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexFactory.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexPostProcessor.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexPostProcessorAllOutput.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexPostProcessorLatex.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexPostProcessorLatexmk.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexSettings.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexStructure.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexSynctex.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexTemplatesDefault.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexTemplatesManageDialog.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexTemplatesPersonal.html
%%DOCS%%share/gtk-doc/html/enter-tex/GtexTreeModelNode.html
%%DOCS%%share/gtk-doc/html/enter-tex/annexes.html
%%DOCS%%share/gtk-doc/html/enter-tex/annotation-glossary.html
%%DOCS%%share/gtk-doc/html/enter-tex/api-reference.html
%%DOCS%%share/gtk-doc/html/enter-tex/ch01.html
%%DOCS%%share/gtk-doc/html/enter-tex/ch02.html
%%DOCS%%share/gtk-doc/html/enter-tex/ch03.html
%%DOCS%%share/gtk-doc/html/enter-tex/ch04.html
%%DOCS%%share/gtk-doc/html/enter-tex/ch05.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex-Gtex-Initialization-and-Finalization.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex-GtexBottomPanel.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex-GtexBuffer.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex-GtexCommands.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex-GtexDirs.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex-GtexPrefs.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex-GtexTemplatesDialogs.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex-GtexUtils.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex-GtexView.html
%%DOCS%%share/gtk-doc/html/enter-tex/enter-tex.devhelp2
%%DOCS%%share/gtk-doc/html/enter-tex/home.png
%%DOCS%%share/gtk-doc/html/enter-tex/index.html
%%DOCS%%share/gtk-doc/html/enter-tex/ix01.html
%%DOCS%%share/gtk-doc/html/enter-tex/left-insensitive.png
%%DOCS%%share/gtk-doc/html/enter-tex/left.png
%%DOCS%%share/gtk-doc/html/enter-tex/object-tree.html
%%DOCS%%share/gtk-doc/html/enter-tex/right-insensitive.png
%%DOCS%%share/gtk-doc/html/enter-tex/right.png
%%DOCS%%share/gtk-doc/html/enter-tex/style.css
%%DOCS%%share/gtk-doc/html/enter-tex/up-insensitive.png
%%DOCS%%share/gtk-doc/html/enter-tex/up.png
share/help/C/enter-tex/build_tools.page
share/help/C/enter-tex/completion.page
share/help/C/enter-tex/index.page