git: 1f5ddaadf57e - main - irc/epic5: add python knob, make it default

From: Mikhail Pchelin <misha_at_FreeBSD.org>
Date: Mon, 18 Apr 2022 06:48:41 UTC
The branch main has been updated by misha:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1f5ddaadf57e9ab992c5c03bd72d5685a2b58c67

commit 1f5ddaadf57e9ab992c5c03bd72d5685a2b58c67
Author:     Mikhail Pchelin <misha@FreeBSD.org>
AuthorDate: 2022-04-18 06:47:00 +0000
Commit:     Mikhail Pchelin <misha@FreeBSD.org>
CommitDate: 2022-04-18 06:47:00 +0000

    irc/epic5: add python knob, make it default
    
    Approved by:    maintainer
---
 irc/epic5/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/irc/epic5/Makefile b/irc/epic5/Makefile
index 3c9fe2a74a98..96e02e639c37 100644
--- a/irc/epic5/Makefile
+++ b/irc/epic5/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	epic5
 PORTVERSION=	2.1.7
+PORTREVISION=	1
 CATEGORIES=	irc
 MASTER_SITES=	http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/
 
@@ -11,17 +12,22 @@ COMMENT=	Enhanced Programmable IRC-II Client
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
+USES=		iconv libarchive ncurses ssl tar:xz
+
 GNU_CONFIGURE=	yes
 PLIST_SUB+=	PORTVERSION=${PORTVERSION}
 CFLAGS:=	${CFLAGS:C/-O2/-O/g}
 
-OPTIONS_DEFINE=	DOCS PERL RUBY TCL
+OPTIONS_DEFINE=	DOCS PERL PYTHON RUBY TCL
+OPTIONS_DEFAULT=	PYTHON
 
 CONFIGURE_ARGS+=--with-iconv=${ICONV_PREFIX}
-USES=		iconv libarchive ncurses ssl tar:xz
 
 PERL_USES=	perl5
 PERL_CONFIGURE_WITH=	perl
+PYTHON_USES=	python gettext-runtime
+PYTHON_CONFIGURE_ON=	--with-python=${PYTHON_CMD}-config
+PYTHON_CONFIGURE_OFF=	--without-python
 RUBY_USE=	ruby=yes
 RUBY_CONFIGURE_WITH=	ruby
 TCL_USES=	tcl