diff options
Diffstat (limited to 'lang/python25')
-rw-r--r-- | lang/python25/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/python25/Makefile b/lang/python25/Makefile index b8b56a57a933..e67b7e3df38d 100644 --- a/lang/python25/Makefile +++ b/lang/python25/Makefile @@ -98,8 +98,10 @@ PLIST_SUB+= 32BIT_ONLY="" CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 .endif -.if !exists(/usr/bin/ypcat) # the world with NO_NIS +# See http://bugs.freebsd.org/115940 +.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) # the world with NO_NIS PLIST_SUB+= NO_NIS="@comment " +WITHOUT_NIS?= detected .else PLIST_SUB+= NO_NIS="" .endif @@ -146,6 +148,13 @@ pre-patch: ${ECHO} "fpectl fpectlmodule.c" >> ${WRKSRC}/Modules/Setup.dist .endif +post-patch: +.if defined(WITHOUT_NIS) + ${REINPLACE_CMD} -e \ + 's/disabled_module_list =[^]]*/&, "nis"/' \ + ${PATCH_WRKSRC}/setup.py +.endif + post-configure: ${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${SHARED_WRKSRC} -xf - ${LN} -sf ${PYTHON_WRKSRC}/Lib ${WRKSRC}/Lib |