git: 44dd7f0d788f - main - textproc/docproj: Add option to install CJK fonts to build PDF files

From: Danilo G. Baio <dbaio_at_FreeBSD.org>
Date: Fri, 20 Jan 2023 19:44:52 UTC
The branch main has been updated by dbaio:

URL: https://cgit.FreeBSD.org/ports/commit/?id=44dd7f0d788f57fd82a5255c08ff35151260ad09

commit 44dd7f0d788f57fd82a5255c08ff35151260ad09
Author:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
AuthorDate: 2023-01-20 19:36:43 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2023-01-20 19:43:54 +0000

    textproc/docproj: Add option to install CJK fonts to build PDF files
    
    Not enabled by default.
    
    It uses the textproc/docproj-fonts-cjk port, which installs only the
    necessary fonts.  Thanks to sunpoet.
    
    Reviewed by:    dbaio
    Approved by:    doceng (implicit)
    Differential Revision:  https://reviews.freebsd.org/D37982
---
 textproc/docproj/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/textproc/docproj/Makefile b/textproc/docproj/Makefile
index 58ffcfa15b08..2229a43f6dfd 100644
--- a/textproc/docproj/Makefile
+++ b/textproc/docproj/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	docproj
-PORTVERSION=	4.1.5
+PORTVERSION=	4.1.6
 CATEGORIES=	textproc
 
 MAINTAINER=	doceng@FreeBSD.org
@@ -12,15 +12,17 @@ RUN_DEPENDS=	asciidoctor:textproc/rubygem-asciidoctor \
 
 USES=		metaport
 
-OPTIONS_DEFINE=	EPUB GIT IGOR PDF TRANSLATOR VALE
+OPTIONS_DEFINE=	EPUB FONTS-CJK GIT IGOR PDF TRANSLATOR VALE
 OPTIONS_DEFAULT=	GIT IGOR PDF TRANSLATOR VALE
 
 EPUB_DESC=	EPUB document support
+FONTS-CJK_DESC=	Required CJK fonts to build PDF files
 IGOR_DESC=		Igor automated proofreader for documentation
 TRANSLATOR_DESC=	Tools for translators
 VALE_DESC=	VALE Linting support
 
 EPUB_RUN_DEPENDS=	asciidoctor-epub3:textproc/rubygem-asciidoctor-epub3
+FONTS-CJK_RUN_DEPENDS=	docproj-fonts-cjk>0:textproc/docproj-fonts-cjk
 GIT_RUN_DEPENDS=	git:devel/git
 IGOR_RUN_DEPENDS=	igor:textproc/igor
 PDF_RUN_DEPENDS=	asciidoctor-pdf:textproc/rubygem-asciidoctor-pdf