py-nis: use libnsl if glibc is guaranteed to not have nis

master
Niclas Rosenvik 2023-12-07 21:14:15 +01:00
parent 98b71d6502
commit 475e245db9
1 changed files with 7 additions and 0 deletions

View File

@ -13,9 +13,16 @@ HOMEPAGE= https://github.com/niclasr/python-nis/
COMMENT= NIS python module
LICENSE= python-software-foundation
USE_TOOLS+= pkg-config
CMAKE_USE_GNU_INSTALL_DIRS= no
PY_PATCHPLIST= yes
.include "../../devel/cmake/build.mk"
.include "../../lang/python/extension.mk"
.if ${OPSYS} == "Linux"
. if ${GLIBC_VERSION:C/[0-9]\.//g} > 31
.include "../../wip/libnsl/buildlink3.mk"
. endif
.endif
.include "../../mk/bsd.pkg.mk"