svn commit: r420385 - head/devel/py-cffi

John Marino marino at FreeBSD.org
Thu Aug 18 05:41:52 UTC 2016


Author: marino
Date: Thu Aug 18 05:41:51 2016
New Revision: 420385
URL: https://svnweb.freebsd.org/changeset/ports/420385

Log:
  devel/py-cffi: Use OPSYS with OSVERSION, USES+= localbase
  
  r419747 introduced OSVERSION with a ">" comparison without using coupling
  with OPSYS, fix.
  
  It also removed CFLAGS and LDFLAGS as "unnecessary", but the fact is they
  are still required for non-standard localbases and compilers that don't
  search /usr/local/include by default.  Restore these flags with the
  equivalent USES+=localbase
  
  Approved by:	OPVERSION/OPSYS blanket, just-fix-it

Modified:
  head/devel/py-cffi/Makefile

Modified: head/devel/py-cffi/Makefile
==============================================================================
--- head/devel/py-cffi/Makefile	Thu Aug 18 03:47:20 2016	(r420384)
+++ head/devel/py-cffi/Makefile	Thu Aug 18 05:41:51 2016	(r420385)
@@ -18,12 +18,12 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycp
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest
 
 # Actually 2.6-2.7,3.2-3.5
-USES=		python
+USES=		localbase python
 USE_PYTHON=	autoplist distutils
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 1100000
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100000
 CFLAGS+=	-Wno-shift-negative-value
 .endif
 


More information about the svn-ports-all mailing list