1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/textproc/py-enchant/Makefile
Kurt Jaeger 94dbb4e47a textproc/py-enchant: if py3 is chosen to build, the WX option is disabled
- this allows multimedia/py-openlp to build with python 3.x

PR:		211665
Submitted by:	antoine
2018-02-14 18:39:24 +00:00

40 lines
845 B
Makefile

# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= enchant
PORTVERSION= 2.0.0
CATEGORIES= textproc devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Spellchecking library for Python based on the Enchant library
LICENSE= LGPL21
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
.if ${FLAVOR:U:Mpy3*}
OPTIONS_EXCLUDE= WX
.endif
USES= python
USE_PYTHON= distutils py3kplist
NO_ARCH= yes
WX_USE= WX=3.0+
WX_VARS= WX_COMPS=python:run
PLIST_SUB+= VER=${PORTVERSION}
post-install-WX-off:
${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/checker/wxSpellCheckerDialog*
.include <bsd.port.mk>