git: 7894d2e3799f - main - Revert "textproc/google-translate-cli: drop option for expired audio/espeak"

From: Stefan Eßer <se_at_FreeBSD.org>
Date: Fri, 15 Jul 2022 14:37:17 UTC
The branch main has been updated by se:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7894d2e3799fad0512a3d1889596139410159db7

commit 7894d2e3799fad0512a3d1889596139410159db7
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2022-07-15 13:37:58 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2022-07-15 14:36:22 +0000

    Revert "textproc/google-translate-cli: drop option for expired audio/espeak"
    
    This reverts commit 0473faf0ddf86e6d1eaaf5f0e1f3d5c785de30c7.
---
 textproc/google-translate-cli/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/textproc/google-translate-cli/Makefile b/textproc/google-translate-cli/Makefile
index fbec58a48ae2..08fae882650a 100644
--- a/textproc/google-translate-cli/Makefile
+++ b/textproc/google-translate-cli/Makefile
@@ -31,12 +31,16 @@ NO_ARCH=	yes
 PLIST_FILES=	bin/trans \
 		man/man1/trans.1.gz
 
-OPTIONS_DEFINE=	FRIBIDI READLINE
+OPTIONS_DEFINE=	FRIBIDI READLINE TEXT2SPEECH
+
+TEXT2SPEECH_DESC=	Enable Text-to-Speech functionality via espeak
 
 FRIBIDI_RUN_DEPENDS=	fribidi:converters/fribidi
 
 READLINE_RUN_DEPENDS=	rlwrap:devel/rlwrap
 
+TEXT2SPEECH_RUN_DEPENDS=	espeak:audio/espeak
+
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/build/trans ${STAGEDIR}${PREFIX}/bin/trans
 	${INSTALL_MAN} ${WRKSRC}/man/trans.1 ${STAGEDIR}${MANPREFIX}/man/man1/trans.1