svn commit: r442959 - head/textproc/py-enchant
Thierry Thomas
thierry at FreeBSD.org
Thu Jun 8 21:08:34 UTC 2017
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
More information about the svn-ports-all
mailing list