Changeset View
Changeset View
Standalone View
Standalone View
lang/python27/Makefile
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
# See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 | # See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 | ||||
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | ||||
PLIST_SUB+= NO_NIS="@comment " | PLIST_SUB+= NO_NIS="@comment " | ||||
.else | .else | ||||
PLIST_SUB+= NO_NIS="" | PLIST_SUB+= NO_NIS="" | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
# readline shared library is present on base before FreeBSD 11 - r268461 | |||||
# force setup.py ignore base and use readline from ports | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 | |||||
@${REINPLACE_CMD} -e \ | |||||
"s|lib_dirs,\ \'readline\'|[\'${LOCALBASE}/lib\',\ \'.\'],\ \'readline\'|" \ | |||||
${WRKSRC}/setup.py | |||||
.endif | |||||
@${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \ | @${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \ | ||||
${WRKSRC}/Lib/cgi.py | ${WRKSRC}/Lib/cgi.py | ||||
@${REINPLACE_CMD} -e \ | @${REINPLACE_CMD} -e \ | ||||
's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \ | 's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \ | ||||
${PATCH_WRKSRC}/Lib/pydoc.py | ${PATCH_WRKSRC}/Lib/pydoc.py | ||||
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | ||||
@${REINPLACE_CMD} -e 's/disabled_module_list =[^]]*/&, "nis"/' \ | @${REINPLACE_CMD} -e 's/disabled_module_list =[^]]*/&, "nis"/' \ | ||||
Show All 27 Lines |