# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
set _n [string index ${_name} 0]
categories-append devel security
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description python wrapper around the OpenSSL library
This python module is a rather thin wrapper around (a subset of) the \
OpenSSL library. With thin wrapper a lot of the object methods do \
nothing more than calling a corresponding function in the OpenSSL library.
homepage https://github.com/pyca/pyopenssl
distname ${_name}-${version}
#master_sites pypi:${_n}/${_name}/
# use new pypi.python.org url scheme
master_sites pypi:3b/15/a5d90ab1a41075e8f0fae334f13452549528f82142b3b9d0c9d86ab7178c
checksums rmd160 2b46a05a02bd5b276abb0afc14e9e3cc900ca8c8 \
sha256 2c10cfba46a52c0b0950118981d61e72c1e5b1aac451ca1bc77de1a679456773
python.versions 27 34 35 36
if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools
depends_lib-append path:lib/libssl.dylib:openssl \
port:py${python.version}-cryptography \
port:py${python.version}-six
reinplace "s|#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/examples/proxy.py
xinstall -m 644 -W ${worksrcpath} \
${destroot}${prefix}/share/doc/${subport}
file delete ${destroot}${prefix}/share/doc/${subport}/examples
copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
variant doc description {build html documentation} {
depends_build-append port:py${python.version}-sphinx
#depends_build-append port:latex2html