Date: Thu, 8 Jun 2017 21:08:33 +0000 (UTC) From: Thierry Thomas <thierry@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r442959 - head/textproc/py-enchant Message-ID: <201706082108.v58L8Xwb087390@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thierry Date: Thu Jun 8 21:08:32 2017 New Revision: 442959 URL: https://svnweb.freebsd.org/changeset/ports/442959 Log: Make wxPython optional. Note: no PORTREVISION bump, because the default is not changed. PR: 219804 Submitted by: pete (at) nomadlogic.org Modified: head/textproc/py-enchant/Makefile head/textproc/py-enchant/pkg-plist Modified: head/textproc/py-enchant/Makefile ============================================================================== --- head/textproc/py-enchant/Makefile Thu Jun 8 20:37:18 2017 (r442958) +++ head/textproc/py-enchant/Makefile Thu Jun 8 21:08:32 2017 (r442959) @@ -16,11 +16,27 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libenchant.so:textproc/enchant +OPTIONS_DEFINE= WX +OPTIONS_DEFAULT=WX +WX_DESC= Provide a wxSpellCheckerDialog +OPTIONS_SUB= yes + USES= python USE_PYTHON= distutils -USE_WX= 3.0+ -WX_COMPS= python:run +WX_USE= WX=3.0+ + LDFLAGS+= -L${LOCALBASE}/lib + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MWX} +WX_COMPS= python:run +.endif + +post-install: +.if ! ${PORT_OPTIONS:MWX} + ${RM] ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/checker/wxSpellCheckerDialog* +.endif .include <bsd.port.mk> Modified: head/textproc/py-enchant/pkg-plist ============================================================================== --- head/textproc/py-enchant/pkg-plist Thu Jun 8 20:37:18 2017 (r442958) +++ head/textproc/py-enchant/pkg-plist Thu Jun 8 21:08:32 2017 (r442959) @@ -16,9 +16,9 @@ %%PYTHON_SITELIBDIR%%/enchant/checker/tests.py %%PYTHON_SITELIBDIR%%/enchant/checker/tests.pyc %%PYTHON_SITELIBDIR%%/enchant/checker/tests.pyo -%%PYTHON_SITELIBDIR%%/enchant/checker/wxSpellCheckerDialog.py -%%PYTHON_SITELIBDIR%%/enchant/checker/wxSpellCheckerDialog.pyc -%%PYTHON_SITELIBDIR%%/enchant/checker/wxSpellCheckerDialog.pyo +%%WX%%%%PYTHON_SITELIBDIR%%/enchant/checker/wxSpellCheckerDialog.py +%%WX%%%%PYTHON_SITELIBDIR%%/enchant/checker/wxSpellCheckerDialog.pyc +%%WX%%%%PYTHON_SITELIBDIR%%/enchant/checker/wxSpellCheckerDialog.pyo %%PYTHON_SITELIBDIR%%/enchant/errors.py %%PYTHON_SITELIBDIR%%/enchant/errors.pyc %%PYTHON_SITELIBDIR%%/enchant/errors.pyo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706082108.v58L8Xwb087390>