svn commit: r472045 - head/security/cracklib
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Jun 9 08:34:29 UTC 2018
Author: amdmi3
Date: Sat Jun 9 08:34:27 2018
New Revision: 472045
URL: https://svnweb.freebsd.org/changeset/ports/472045
Log:
- 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
Modified:
head/security/cracklib/Makefile
Modified: head/security/cracklib/Makefile
==============================================================================
--- head/security/cracklib/Makefile Sat Jun 9 08:03:54 2018 (r472044)
+++ head/security/cracklib/Makefile Sat Jun 9 08:34:27 2018 (r472045)
@@ -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/
More information about the svn-ports-all
mailing list