freebsd-ports/security/py-openssl/Makefile
Ben Woods 0463f581a8 [NEW] security/py3-openssl: Create Python 3.x version of port
The latest www/py-requests update [1] unbundled its dependencies, now
requiring chardet, idna, urllib3 and certifi from ports.

www/py3-requests port was not tested during QA, which would have highlighted
the need for many new py3-* ports (and their dependencies).

This change creates one of those ports.

[1] https://svnweb.freebsd.org/changeset/ports/442565

PR:		219833
2017-06-07 14:32:40 +00:00

38 lines
905 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= openssl
PORTVERSION= 16.2.0
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyOpenSSL-${PORTVERSION}
MAINTAINER= sbz@FreeBSD.org
COMMENT= Python interface to the OpenSSL library
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}cryptography>=0.2.1:security/py-cryptography \
${PYTHON_PKGNAMEPREFIX}six>=1.5.2:devel/py-six
OPTIONS_DEFINE= EXAMPLES
USES?= cpe python
USE_PYTHON= autoplist concurrent distutils pythonprefix
CPE_VENDOR= jean-paul_calderone
CPE_PRODUCT= py${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTEXAMPLES= *
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
do-test:
@(cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test)
.include <bsd.port.mk>