freebsd-ports/security/py-python-nss/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

42 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= python-nss
PORTVERSION= 1.0.1
PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= jhale@FreeBSD.org
COMMENT= Python bindings for NSS and NSPR
LICENSE= LGPL21+ GPLv2+ MPL20
LICENSE_COMB= dual
LICENSE_FILE_LGPL21+ = ${WRKSRC}/LICENSE.lgpl
LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENSE.gpl
LICENSE_FILE_MPL20= ${WRKSRC}/LICENSE.mpl
LIB_DEPENDS= libnspr4.so:devel/nspr \
libnss3.so:security/nss
USES= compiler:c11 python tar:bzip2
USE_PYTHON= autoplist distutils
PYDISTUTILS_CONFIGUREARGS= --include-root="${LOCALBASE}/include" \
--include-root="${LOCALBASE}/include/nss"
PYDISTUTILS_BUILDARGS= ${PYDISTUTILS_CONFIGUREARGS}
PYDISTUTILS_INSTALLARGS= -c -O1 --prefix=${PREFIX} ${PYDISTUTILS_CONFIGUREARGS}
LDFLAGS+= -L${LOCALBASE}/lib/nss
TEST_TARGET= # empty
TEST_WRKSRC= ${WRKSRC}/test
DO_MAKE_TEST= ${SETENV} ${TEST_ENV} ${PYTHON_CMD} run_tests -t
post-patch:
@(cd ${WRKSRC}/test && ${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|g' setup_certs.py test_pkcs12.py)
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/nss/*.so
.include <bsd.port.mk>