textproc/docproj: fix dependency check with groff

Make using groff from ports an option that's forced on if groff isn't
present in base. While here, sort options.

PR:		229566
Submitted by:	Dries Michiels <driesm.michiels@gmail.com>
This commit is contained in:
Steve Wills 2018-07-06 18:53:21 +00:00
parent fc1ec7a76a
commit 4bcc27222d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474031

View File

@ -3,7 +3,7 @@
PORTNAME= docproj PORTNAME= docproj
PORTVERSION= 2.0 PORTVERSION= 2.0
PORTREVISION= 10 PORTREVISION= 11
CATEGORIES= textproc CATEGORIES= textproc
MAINTAINER= doceng@FreeBSD.org MAINTAINER= doceng@FreeBSD.org
@ -21,32 +21,36 @@ RUN_DEPENDS= links:www/links1 \
docbook>0:textproc/docbook \ docbook>0:textproc/docbook \
${LOCALBASE}/share/xml/xmlcharent/catalog:textproc/xmlcharent \ ${LOCALBASE}/share/xml/xmlcharent/catalog:textproc/xmlcharent \
p5-XML-Parser>=2.41:textproc/p5-XML-Parser \ p5-XML-Parser>=2.41:textproc/p5-XML-Parser \
zip:archivers/zip \ zip:archivers/zip
groff:textproc/groff
USES= ghostscript:run metaport perl5 USES= ghostscript:run metaport perl5
USE_PERL5= run USE_PERL5= run
OPTIONS_DEFINE= DBLATEX CJK FOP IGOR JING SVN TRANSLATOR OPTIONS_DEFINE= CJK DBLATEX FOP GROFF IGOR JING SVN TRANSLATOR
OPTIONS_DEFAULT= CJK IGOR TRANSLATOR OPTIONS_DEFAULT= CJK IGOR TRANSLATOR
.if !exists(/usr/bin/groff)
OPTIONS_DEFAULT+= GROFF
.endif
.if !exists(/usr/bin/svnlite) .if !exists(/usr/bin/svnlite)
OPTIONS_DEFAULT+= SVN OPTIONS_DEFAULT+= SVN
.endif .endif
CJK_DESC= CJK support CJK_DESC= CJK support
CJK_RUN_DEPENDS= html2text:textproc/html2text CJK_RUN_DEPENDS= html2text:textproc/html2text
SVN_DESC= Subversion support (required to check out sources) DBLATEX_DESC= dblatex PDF renderer (experimental, requires TeXLive)
SVN_RUN_DEPENDS= svn:devel/subversion DBLATEX_RUN_DEPENDS= dblatex:textproc/dblatex \
IGOR_DESC= Igor automated proofreader for documentation DBLATEX_USE= TEX=xetex
IGOR_RUN_DEPENDS= igor:textproc/igor
FOP_DESC= FOP PDF renderer (requires Java) FOP_DESC= FOP PDF renderer (requires Java)
FOP_RUN_DEPENDS= fop:textproc/fop \ FOP_RUN_DEPENDS= fop:textproc/fop \
${FONTS} ${FONTS}
GROFF_DESC= Groff support from ports
GROFF_RUN_DEPENDS= ${LOCALBASE}/bin/groff:textproc/groff
IGOR_DESC= Igor automated proofreader for documentation
IGOR_RUN_DEPENDS= igor:textproc/igor
JING_DESC= Jing for advanced RELAX NG validation JING_DESC= Jing for advanced RELAX NG validation
JING_RUN_DEPENDS= jing:textproc/jing JING_RUN_DEPENDS= jing:textproc/jing
DBLATEX_DESC= dblatex PDF renderer (experimental, requires TeXLive) SVN_DESC= Subversion support from ports
DBLATEX_RUN_DEPENDS= dblatex:textproc/dblatex \ SVN_RUN_DEPENDS= svn:devel/subversion
${FONTS}
DBLATEX_USE= TEX=xetex
TRANSLATOR_DESC= Tools for translators TRANSLATOR_DESC= Tools for translators
TRANSLATOR_RUN_DEPENDS= itstool:textproc/itstool \ TRANSLATOR_RUN_DEPENDS= itstool:textproc/itstool \
msgcat:devel/gettext-tools msgcat:devel/gettext-tools