Date: Sat, 9 Jun 2018 08:34:28 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r472045 - head/security/cracklib Message-ID: <201806090834.w598YSmT044714@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806090834.w598YSmT044714>