1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00

- Fix tests for py-cracklib

- Specify PYTHONPATH
  - Specifying correct dictionary path
- Fix configure for py-cracklib by using USES=localbase
- Switch to new test framework
- Whitespace fix

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2018-06-09 08:34:27 +00:00
parent 00e68f0cf2
commit 6e0a07b7bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472045

View File

@ -28,7 +28,7 @@ USES= gettext libtool
USE_LDCONFIG= yes
.if defined(PYTHON_SLAVEPORT)
USES+= python:2.7
USES+= python:2.7 #localbase
USE_PYTHON= flavors
CONFIGURE_ARGS+=--with-python
PLIST_FILES= %%PYTHON_SITELIBDIR%%/_cracklib.a \
@ -101,10 +101,10 @@ PLIST_FILES= include/crack.h \
pre-build:
cd ${WRKSRC}/lib && ${MAKE_CMD} libcrack.la
regression-test: extract
@(cd ${BUILD_WKRSRC}; \
${PYTHON_CMD} -c \
"from test_${PORTNAME} import run; run(use_dictpath=\"${DICTFILE}\")")
do-test:
@(cd ${BUILD_WKRSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
${PYTHON_CMD} -c \
"from test_${PORTNAME} import run; run(use_dictpath=\"${DICTFILE:S|^${PREFIX}/|${LOCALBASE}/|}\")")
.else
post-install:
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/