1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

- Convert to new options helper

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-10-23 17:22:27 +00:00
parent 981bc1102b
commit 02d82fe936
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331397

View File

@ -17,7 +17,9 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:${PORTSDIR}/textproc/py-sphinx
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=0:${PORTSDIR}/textproc/py-pygments
OPTIONS_DEFINE= EXAMPLES NLS
OPTIONS_SUB= yes
NO_STAGE= yes
USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
PYDISTUTILS_BUILD_TARGET= build bdist_egg
@ -26,15 +28,9 @@ MAN1= bpython.1
MAN5= bpython-config.5
PORTEXAMPLES= light.theme sample-config sample.theme
NO_STAGE= yes
.include <bsd.port.options.mk>
NLS_USES= gettext
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
.else
PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '/build\/man\/bpython/d; /data\/bpython.desktop/d' ${WRKSRC}/${PYSETUP}